Custom fields:
Synchronization additional fields changes to get reflect on "Intercompany chain." as well.
Custom Fields from tables:
PurchTable , PurchLine, SalesTable, SalesLine
Method to override: interCompanyUpdateNow()
Sample method code:
/// <summary>
/// Determines whether an intercompany order line should be updated. COC
/// </summary>
/// <returns>
/// true if the intercompany order line should be updated; otherwise,
false.
/// </returns>
boolean interCompanyUpdateNow()
{
boolean sanReturn;
sanReturn= next interCompanyUpdateNow();
if(!sanReturn
&& (this.orig().san_RefTransId
!= this.san_RefTransId ))
{
sanReturn= true;
}
return sanReturn;
}
Then create COC extension method for class method
Class: InterCompanySyncPurchLineType, Method ->setSalesLineData
Class: PurchLineType, Method -> syncSalesLine
Class: InterCompanySyncSalesLineType , Method -> setPurchaseOrderLineData
Class: SalesLineType , Method -> syncPurchLine
Class: InterCompanySyncPurchTableType, Method -> setSalesTableData
Class: PurchTableType, Method -> SyncSalesTable
Class: InterCompanySyncSalesTableType, Method -> setPurchTableData
Class: SalesTableType, Method -> SyncPurchTable
Sample:
[ExtensionOf(classStr(InterCompanySyncPurchLineType))]
final
class InterCompanySyncPurchLineTypeCls_SAN_Extension
{
protected void setSalesLineData()
{
next setSalesLineData();
axSalesLine.san_RefTransId(purchLine.san_RefTransId);
}
}
No comments:
Post a Comment