Hi good folks,
I'd like to create a supplier pending invoice using the PurchFormLetter module without attempting to post it.
it seems that PurchFormLetter.StartOperation() && purchFormLEtter.update() will attempt to post the pending invoice after creating it.
I have thought about adding a parameter to the data contract and checking against that in the posting process but i am wondering if there is an existing parameter that will do that !
code looks like:
Purchformletter = purchformletter::construct(DocumentStatus::Invoice); purchformletter.parmParmTableNum("InvoiceId"); Purchformletter.purchTable(purchtable); purchParmUpdate = purchformletter.purchParmUpdate(); purchParmUpdate.SumNum = "IGU + 20147856434-11"; purchformletter.initParameters(purchParmUpdate, Printout::Current); // Printout purchformletter.chooseLines(true); Purchformletter.selectFromJournal(selectedList.pack()); purchformletter.sumBy(AccountOrder::None); purchformletter.reArrangeNow(true); purchformletter.reArrange(); purchformletter.specQty(purchupdate::PackingSlip); purchformletter.startOperation();
thanks for your help.
*This post is locked for comments