insert into Ap_CloseBill(cvouchtype,cvouchid,dvouchdate,cdwcode,cdeptcode,cperson,citem_class,
citemcode,csscode,cdigest,cbankaccount,cexch_name,iexchrate,iamount,iamount_f,
coperator,corderno,iid,citemname,cFlag,iPeriod,iramount,iramount_f )
values (
#{cvouchtype},
#{cvouchid},
#{dvouchdate},
#{cdwcode},
#{cdeptcode},
#{cperson},
#{citemclass},
#{citemcode},
#{csscode},
#{cdigest},
#{cbankaccount},
#{cexchname},
#{iexchrate},
#{iamount},
#{iamount},
#{coperator},
#{corderno},
#{iid},
#{citemname},
'AR',
'10',
#{iamount},
#{iamount}
)
insert into ap_closebills(ID, iid,iamt,cxmclass,cxm,cdepcode,cpersoncode,corderid,
citemname,iType,cCusVen,iamt_f,iramt_f,iramt)
values (
#{iid},
#{iid},
#{iamount},
#{citemclass},
#{citemcode},
#{cdeptcode},
#{cperson},
#{corderno},
#{citemname},
'0',
#{cdwcode},
#{iamount},
#{iamount},
#{iamount}
)