Replace the value or add the value in 2 fileds
/// <summary>
/// custom logic to merge the PurchaseOrderIntex_POR & PurchaseOrderLineIntex_POR
/// </summary>
/// <param name = "_purchaseOrderIntex_POR"> a <c>PurchaseOrderIntex_POR</c> record </param>
/// <param name = "_purchaseOrderLineIntex_POR"> a <c>PurchaseOrderLineIntex_POR</c> record </param>
static str mergePurchaseOrderIntex_POR(PurchaseOrderIntex_POR _purchaseOrderIntex_POR, PurchaseOrderLineIntex_POR _purchaseOrderLineIntex_POR)
{
const str Zero = '0';
int getLength;
str replaceValue;
str mergeValue;
bfpPILParameters bfpPILParameters = bfpPILParameters::find();
getLength = strlen(_purchaseOrderLineIntex_POR);
replaceValue = strRFix(_purchaseOrderLineIntex_POR, bfpPILParameters.IntexLineNumberDigits_POR, Zero);
mergeValue = strFmt("%1 %2", _purchaseOrderIntex_POR, replaceValue);
return mergeValue;
}
Examplr :- ABCDF 001
====================================================================
prodTable.PurchaseOrderIntex_POR = IntercompanyFinalOrderLinkHelper_POR::mergePurchaseOrderIntex_POR(prodTable.PurchaseOrderIntex_POR,
intexHelper.getIntercompanyOrderNetwork_Link(intexHelper.getIntercompanyOrderNetworkBuffer(intexHelper.buildQueryOrderNetwork(false))).PurchaseOrderLineIntex);
===================================================================
Comments
Post a Comment