import{o as r,e as t,s as e,n}from"./schemas-BrV_YNaF.js";const a=r({invoice:n().min(1,"Invoice is required"),amount:e().min(1,"Amount is required")}),m=r({vendor_id:n().min(1,"Vendor is required"),payment_method:e().min(1,"Payment method is required"),payment_date:e().min(1,"Payment date is required"),entity_id:n().min(1,"Entity is required"),payment_amount:e().min(1,"Payment amount is required"),payment_currency_id:n().min(1,"Currency is required"),exchange_rate_id:n().optional(),bank_account_id:n().min(1,"Bank account is required"),cheque_number:e().optional(),cheque_date:e().optional(),reference:e().optional(),notes:e().optional(),allocations:t(a).min(1,"At least one allocation is required")}).refine(i=>i.payment_method==="CHEQUE"?!!i.cheque_number&&!!i.cheque_date:!0,{message:"Cheque number and date are required for cheque payments",path:["cheque_number"]});export{m as p};
