PageSourceSearch

https://www.newwallcovering.com/build/assets/Print-CdNKCD8h.js

js newwallcovering.com collected 2026-10-07 23:47:58 UTC 7,555 bytes, 1 lines download raw bytes

1import{a8 as _,W as v,A as a,F as r,M as t,L as i,C as p,D as l,ai as n,R as s,au as u,an as w,af as h,az as k,I as y,G as C,ag as N,J as j}from"./app-DUyLq842.js";import{r as b}from"./rialFormat-BN1wuMeL.js";import{P as z}from"./printer-CKh_Cwm8.js";const B={class:"min-h-screen bg-slate-50 dark:bg-slate-950 p-4 sm:p-8 print:p-0 print:bg-white text-foreground"},F={class:"max-w-5xl mx-auto mb-6 flex items-center justify-between print:hidden bg-white dark:bg-slate-900 p-4 rounded-xl border shadow-sm"},P={class:"flex items-center gap-2"},V={class:"max-w-5xl mx-auto bg-white text-black p-8 rounded-xl border shadow-sm print:border-none print:shadow-none print:p-0 print:max-w-full"},$={class:"border-b-2 border-slate-900 pb-4 mb-5"},A={class:"flex items-start justify-between"},D={class:"text-center"},L={class:"inline-block border border-slate-400 rounded px-3 py-1 text-xs font-semibold"},M={class:"text-2xs text-slate-500 mt-1"},R={class:"text-end space-y-1 text-xs"},T={class:"font-mono text-sm"},E={key:0},G={class:"font-mono"},I={class:"border border-slate-900 rounded-lg overflow-hidden mb-5"},J={class:"w-full text-xs text-start"},S={class:"divide-y divide-slate-300"},W={class:"p-2 text-center text-slate-500 border-e border-slate-300"},q={class:"p-2 text-center font-mono font-medium border-e border-slate-300"},H={class:"p-2 font-medium text-slate-900 border-e border-slate-300"},K={class:"p-2 text-slate-700 border-e border-slate-300"},O={key:0},Q={key:1,class:"text-slate-400"},U={class:"p-2 text-slate-800 border-e border-slate-300 leading-relaxed"},X={class:"p-2 text-end font-mono border-e border-slate-300 tabular-nums"},Y={class:"p-2 text-end font-mono tabular-nums"},Z={class:"bg-slate-100 font-bold border-t-2 border-slate-900"},tt={class:"p-2.5 text-end font-mono border-e border-slate-300 tabular-nums text-sm"},et={class:"p-2.5 text-end font-mono tabular-nums text-sm"},st={class:"border rounded-lg p-3 bg-slate-50/50 text-xs mb-8"},ot={class:"flex items-start justify-between"},dt={class:"flex-1"},lt={class:"text-slate-800 mt-1 leading-relaxed"},at={class:"text-end ps-4 border-s border-slate-300"},rt={class:"grid grid-cols-4 gap-4 pt-4 border-t border-slate-300 text-center text-xs"},nt={class:"border rounded-lg p-3 bg-slate-50/30 flex flex-col justify-between h-32"},it={class:"text-2xs text-slate-600 font-medium"},bt={class:"border rounded-lg p-3 bg-slate-50/30 flex flex-col justify-between h-32"},mt={class:"text-2xs text-slate-600 font-medium"},ct=_({__name:"Print",props:{model:{}},setup(c){const m=c,x=v(()=>{const o=Number(m.model?.total_debit??0),e=Number(m.model?.total_credit??0);return Math.abs(o-e)<.01}),f=()=>{window.print()};return(o,e)=>(a(),r("div",B,[t("div",F,[t("div",P,[i(l(u),{size:"sm",onClick:f},{default:p(()=>[i(l(z),{class:"w-4 h-4 me-1.5"}),n(" "+s(o.$t("admin.general.print")||"چاپ سند حسابداری"),1)]),_:1}),i(l(u),{size:"sm",variant:"outline",onClick:e[0]||(e[0]=d=>l(h).get(o.route("admin.accounting.documents.show",o.model?.id)))},{default:p(()=>[i(l(w),{class:"w-4 h-4 rtl:rotate-180 me-1.5"}),n(" "+s(o.$t("admin.general.back")),1)]),_:1})]),e[1]||(e[1]=t("div",{class:"flex items-center gap-2"},[t("span",{class:"text-xs text-muted-foreground"},"اندازه کاغذ استاندارد: A4 افقی / عمودی")],-1))]),t("div",V,[t("div",$,[t("div",A,[e[10]||(e[10]=t("div",{class:"text-start"},[t("h1",{class:"text-xl font-bold tracking-tight text-slate-900"},"سند حسابداری"),t("p",{class:"text-xs text-slate-600 mt-1"},"سامانه جامع حسابداری بینا")],-1)),t("div",D,[t("span",L,s(o.model?.type_label||"سند عمومی"),1),t("p",M,"وضعیت: "+s(o.model?.status_label||o.model?.status),1)]),t("div",R,[t("div",null,[e[2]||(e[2]=t("span",{class:"text-slate-500"},"شماره سند:",-1)),e[3]||(e[3]=n()),t("strong",T,"#"+s(o.model?.document_number||o.model?.id),1)]),t("div",null,[e[4]||(e[4]=t("span",{class:"text-slate-500"},"تاریخ سند:",-1)),e[5]||(e[5]=n()),t("strong",null,s(l(k)(o.model?.document_date,"date")),1)]),o.model?.reference_number?(a(),r("div",E,[e[6]||(e[6]=t("span",{class:"text-slate-500"},"شماره عطف / پیگیری:",-1)),e[7]||(e[7]=n()),t("strong",G,s(o.model.reference_number),1)])):y("",!0),t("div",null,[e[8]||(e[8]=t("span",{class:"text-slate-500"},"دوره مالی:",-1)),e[9]||(e[9]=n()),t("span",null,s(o.model?.fiscal_period?.name||"-"),1)])])])]),t("div",I,[t("table",J,[e[12]||(e[12]=t("thead",{class:"bg-slate-100 text-slate-900 font-bold border-b border-slate-900"},[t("tr",null,[t("th",{class:"p-2 text-center w-10 border-e border-slate-300"},"#"),t("th",{class:"p-2 text-center w-24 border-e border-slate-300"},"کد معین"),t("th",{class:"p-2 text-start w-48 border-e border-slate-300"},"نام حساب معین"),t("th",{class:"p-2 text-start w-40 border-e border-slate-300"},"تفصیلی"),t("th",{class:"p-2 text-start border-e border-slate-300"},"شرح آرتیکل"),t("th",{class:"p-2 text-end w-32 border-e border-slate-300"},"بدهکار (ریال)"),t("th",{class:"p-2 text-end w-32"},"بستانکار (ریال)")])],-1)),t("tbody",S,[(a(!0),r(C,null,N(o.model?.entries,(d,g)=>(a(),r("tr",{key:d.id,class:"hover:bg-slate-50/50"},[t("td",W,s(g+1),1),t("td",q,s(d?.account?.code||"-"),1),t("td",H,s(d?.account?.name||"-"),1),t("td",K,[d?.subsidiary?(a(),r("span",O,s(d.subsidiary.code?d.subsidiary.code+" - ":"")+s(d.subsidiary.name),1)):(a(),r("span",Q,"-"))]),t("td",U,s(d?.description||"-"),1),t("td",X,s(Number(d?.debit)>0?l(b)(d.debit):"-"),1),t("td",Y,s(Number(d?.credit)>0?l(b)(d.credit):"-"),1)]))),128))]),t("tfoot",Z,[t("tr",null,[e[11]||(e[11]=t("td",{colspan:"5",class:"p-2.5 ps-4 text-start"},"جمع کل سند (ریال):",-1)),t("td",tt,s(l(b)(o.model?.total_debit)),1),t("td",et,s(l(b)(o.model?.total_credit)),1)])])])]),t("div",st,[t("div",ot,[t("div",dt,[e[13]||(e[13]=t("span",{class:"font-bold text-slate-700"},"شرح کلی سند:",-1)),t("p",lt,s(o.model?.description||"توضیحات کلی برای این سند ثبت نشده است."),1)]),t("div",at,[e[14]||(e[14]=t("span",{class:"text-slate-500"},"کنترل توازن:",-1)),t("p",{class:j(x.value?"text-emerald-700 font-bold":"text-red-600 font-bold")},s(x.value?"سند متوازن است":"اختلاف در سند وجود دارد"),3)])])]),t("div",rt,[t("div",nt,[e[15]||(e[15]=t("p",{class:"font-semibold text-slate-800"},"تنظیم‌کننده",-1)),t("p",it,s(o.model?.created_by?.name||"-"),1),e[16]||(e[16]=t("p",{class:"text-2xs text-slate-400 border-t pt-1"},"امضاء و تاریخ",-1))]),e[19]||(e[19]=t("div",{class:"border rounded-lg p-3 bg-slate-50/30 flex flex-col justify-between h-32"},[t("p",{class:"font-semibold text-slate-800"},"حسابدار / کارشناس مالی"),t("p",{class:"text-2xs text-slate-600 font-medium"},"-"),t("p",{class:"text-2xs text-slate-400 border-t pt-1"},"امضاء و تاریخ")],-1)),t("div",bt,[e[17]||(e[17]=t("p",{class:"font-semibold text-slate-800"},"مدیر امور مالی",-1)),t("p",mt,s(o.model?.confirmed_by?.name||"-"),1),e[18]||(e[18]=t("p",{class:"text-2xs text-slate-400 border-t pt-1"},"امضاء و تاریخ",-1))]),e[20]||(e[20]=t("div",{class:"border rounded-lg p-3 bg-slate-50/30 flex flex-col justify-between h-32"},[t("p",{class:"font-semibold text-slate-800"},"مدیرعامل / مقام مجاز"),t("p",{class:"text-2xs text-slate-600 font-medium"},"-"),t("p",{class:"text-2xs text-slate-400 border-t pt-1"},"امضاء و تاریخ")],-1))])])]))}});
1export{ct as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.