Unfortunately it did not work
Can you show your code change?
void insert(boolean _skipMarkup = false)
{
SalesTableType salesTableType;
RetailEventNotificationSetting retailEventNotificationSetting;
#ISOCountryRegionCodes
if (!this.SalesId)
{
throw(error(strFmt("@SYS26332", fieldId2pname(tableNum(SalesTable), fieldNum(SalesTable, SalesId)))));
}
ttsbegin;
salesTableType = this.type();
salesTableType.insert(_skipMarkup);
this.custInvoiceid=this.Salesid;/////////////////////////////////////////////////////I added
this.SysExtensionSerializerMap::postInsert();
TradeBLWIJournalPurposeCodes::createRecord(TradeBLWICustVend::Customer, this.RecId, this.CustAccount, TradeBLWITypeOfForm::SalesTable);
if (isConfigurationkeyEnabled(configurationKeyNum(LedgerBasicSalesTax)) &&
SysCountryRegionCode::isLegalEntityInCountryRegion([#isoPL]))
{
if (CustTable::find(this.CustAccount).ExportSales_PL)
{
ExportSalesOrder::createFromSalesOrder(this.SalesId);
}
}
ttscommit;
Try writing it right after ttsBegin. If that doesn’t work, have it in salesTableType.insert()
salesTable.custInvoiceid= salesTable.Salesid;
i wrote after ttsbegin already? ttsbegin;
salesTableType = this.type();
salesTableType.insert(_skipMarkup);
this.custInvoiceid=this.Salesid;/////////////////////////////////////////////////////I added
I meant this,
ttsbegin;
this.custInvoiceid=this.Salesid;/////////////////////////////////////////////////////I added
salesTableType = this.type();
salesTableType.insert(_skipMarkup);
i did but i did not work it.
Try by adding the below line to salesTableType.insert(); after ttsbegin
salesTable.custInvoiceid= salesTable.Salesid;
i did already I wrote after ttsbegin line this but it did not work it.
Try debugging.
I figure out finally.thank you so much for your helps.