X++ Code to Create Purchase Order and Post the Invoice. Following code will create the Purchase order from code and post the invoice as well by making use of "PurchFormLetter" class. static void TheaxaptaCreatePOInvoice(Args _args) { NumberSeq numberSeq; Purchtable Purchtable; PurchLine PurchLine; PurchFormLetter purchFormLetter; ; ttsbegin; numberSeq = NumberSeq::newGetNumFromCode(purchParameters::numRefPurchaseOrderId().NumberSequence,true); // Initialize Purchase order values Purchtable...(read more)
↧