import{b as r}from"./app-DTeOhhdM.js";import{R as l}from"./ReceiptTemplate-Bt7rhbMW.js";function i({due:t}){const s={"Payment Type":(t==null?void 0:t.payment_type)??"N/A","Paid Amount":`৳ ${(t==null?void 0:t.payment)??"0"}`,"Collection No":(t==null?void 0:t.order_no)??"N/A",Note:(t==null?void 0:t.note)??"N/A"};(t==null?void 0:t.payment_type)!=="cash"&&(t!=null&&t.account)&&(s["Bank/Account"]=t.account);const o={"Total Purchase":`৳ ${(t==null?void 0:t.total_sales)??0}`,"Previous Payments":`৳ ${(t==null?void 0:t.prev_payment)??0}`,"Current Payment":`৳ ${(t==null?void 0:t.payment)??0}`};return r.jsxs(l,{title:"Supplier Payment Voucher",receiptNumber:`#VS-${(t==null?void 0:t.collection_reference)??"N/A"}`,date:(t==null?void 0:t.date)??"N/A",party:t==null?void 0:t.supplier,summary:o,titleColor:"text-blue-700",showSignatures:!0,children:[r.jsxs("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-5 mb-4",children:[r.jsx("h4",{className:"text-md font-semibold text-gray-800 mb-3",children:"Payment Details"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm text-gray-700",children:Object.keys(s).map((a,n)=>r.jsxs("p",{children:[r.jsxs("strong",{children:[a,":"]})," ",s[a]]},n))})]}),(t==null?void 0:t.note)&&r.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:[r.jsx("h4",{className:"text-md font-semibold text-yellow-800 mb-2",children:"Special Notes"}),r.jsx("p",{className:"text-sm text-yellow-700",children:t.note})]})]})}export{i as default};
