common _target; //Declaration
_target = dictTable.makeRecord();// here now common buffer is converted to VendInvoiceInfoLine
//below I'm using VendInvoiceInfoLine .initfrompurchline() through _target
_target.initFromPurchLine(purchline);
_target.(fieldnum(VendInvoiceInfoLine,defaultdimension))
= purchline.DefaultDimension;
if(entity.ReceiveNow)
{
//Assigning value on dixf insert update methoad
_target.(fieldnum(VendInvoiceInfoLine,
Receivenow)) = entity.ReceiveNow;
_target.(fieldnum(VendInvoiceInfoLine,
LineAmount)) = entity.ReceiveNow * _target.(fieldnum(VendInvoiceInfoLine,PurchPrice));
}
No comments:
Post a Comment