Hi All,
I am trying to confirm a PO from the code using the below snipet
private void actionConfirmPO(PurchId purchId)
{
PurchFormLetter purchFormLetter;
PurchTable purchTable;
purchTable = PurchTable::find(purchId);
purchFormLetter = PurchFormLetter::construct(DocumentStatus::PurchaseOrder);
purchFormLetter.update(purchTable,'',systemDateGet(),PurchUpdate::All,AccountOrder::None,NoYes::No,NoYes::No);
}
It works fine in terms of confirming the PO, however when I am checking Purchase Order Confirmations in the Journal section, in the overview tab - instead of one entry I am getting all lines from the PO and Purchase Journal suffix is not incrementing (PO-XXX-1, PO-XXX-2...etc).
Surely I am missing something. Could you please advise.
Best Regards
*This post is locked for comments
I have the same question (0)