static void createSalesTable(CustAccount _custAccount)
{
SalesTable salesTable;
NumberSeq NumberSeq;
;
NumberSeq = NumberSeq::newGetNumFromCode( SalesParameters:: numRefSalesId(). numberSequence);
salesTable.SalesId = NumberSeq.num();
salesTable.initValue();
salesTable.CustAccount = _custAccount;
salesTable.initFromCustTable() ;
salesTable.insert();
}
Example: Create a Sales Line
static void createSalesLine(SalesId _salesId, ItemId _itemId)
{
SalesLine salesLine;
;
salesLine.clear();
salesLine.SalesId = _salesId;
salesLine.ItemId = _itemId;
salesLine.createLine(NoYes:: Yes, // Validate
NoYes::Yes, // initFromSalesTable
NoYes::Yes, // initFromInventTable
NoYes::Yes, // calcInventQty
NoYes::Yes, // searchMarkup
NoYes::Yes); // searchPrice
}
//Code for posting Sales order Invoice
static void createSalesOrder(Args _args)
{
SalesFormLetter formLetterObj;
formLetterObj = SalesFormLetter::construct( DocumentStatus::Invoice);
formLetterObj.update( SalesTable::find( gSO-101248 ));
}
Tuesday, 7 January 2014
Create and posting Sales order through X++ in ax 2012
Subscribe to:
Post Comments (Atom)
SQL/SSRS Interview questions I thought of blogging some SQL/SSRS interview questions.
Below are some. I will add more, when I complete the compilation 1. What is OLTP(Online Transaction Processing)? OLTP stands ...
-
Below are some. I will add more, when I complete the compilation 1. What is OLTP(Online Transaction Processing)? OLTP stands ...
-
static void WriteTextfile(Args _args) { CustTable custTable; BinData binData; TextBuffer textBuffer; ; ...
-
class ExcelExport { } and right click and select new method and type the code as follows public static void main(Args args) { Cust...
No comments:
Post a Comment