Announcements
No record found.
[ExtensionOf(tableStr(SalesTable))] final class DTCustomerCodeSalesTable_Extension { void insert(boolean _skipMarkup) { this.custAccountModified(); next insert(_skipMarkup); } void custAccountModified() { CustParameters custParameters; SalesTable salesTable; select firstonly DTCustomerCode from custParameters where custParameters.DataAreaId == this.DataAreaId; if(this.ISLFOC == NoYes::Yes) { if(custParameters.DTCustomerCode != "") { if(custParameters.DTCustomerCode != this.CustAccount) { this.CustAccount = custParameters.DTCustomerCode; } } } } }
void custAccountModified() { if(this.ISLFOC == NoYes::Yes) { CustParameters custParameters; SalesTable salesTable; select firstonly DTCustomerCode from custParameters; //no need for DataArea where condition if(custParameters.DTCustomerCode != "" && custParameters.DTCustomerCode != this.CustAccount) { this.CustAccount = custParameters.DTCustomerCode; } } }
[ExtensionOf(tableStr(SalesTable))] final class DTCustomerCodeSalesTable_Extension { void insert(boolean _skipMarkup) { FieldId _fieldId; this.modifiedField(_fieldId); next insert(_skipMarkup); } public void modifiedField(FieldId _fieldId) { next modifiedField(_fieldId); if (_fieldId == fieldNum(SalesTable, CustAccount)) { this.custAccountModified(); } } void custAccountModified() { CustParameters custParameters; SalesTable salesTable; select firstonly DTCustomerCode from custParameters where custParameters.DataAreaId == this.DataAreaId; if(this.ISLFOC == NoYes::Yes && custParameters.DTCustomerCode != "" && custParameters.DTCustomerCode != this.CustAccount) { this.CustAccount = custParameters.DTCustomerCode; } } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 733
André Arnaud de Cal... 461 Super User 2026 Season 1
Syed Haris Shah 278 Super User 2026 Season 1