How to know whether this is an invoice or packing slip from d365fo x++
How to know whether this is an invoice or packing slip from d365fo x++
Code:
void init()
{
next init();
boolean documentStatus = this.documentStatus == DocumentStatus::Invoice;
boolean EnableCustomization = DSProposedCustomizations::isValid(DSProposedCustomization::AQMAccountStatementReportsDescription);
SalesParmTable_DS.object(fieldNum(SalesParmTable, ALF_InvoiceDescriptionInEnglish)).mandatory(documentStatus && EnableCustomization);
SalesParmTable_DS.object(fieldNum(SalesParmTable, ALF_InvoiceDescriptionInArabic)).mandatory(documentStatus && EnableCustomization);
}
Comments
Post a Comment