I want to insert information in the tax field, in the invoice line detail, using a function.
The following code is executed to update the field information, however, when executed, the update is not performed.
The function has no syntax or compilation errors. When the function is executed, a successful response is returned.
bool outBool = false;
bool updateRan = true;
decimal outDecimal = 0;
string outString = "";
decimal dTotalCharges = 319413.85m;
decimal grpTotalInvAmt = 319413.85m;
this.CallService<Erp.Contracts.ARInvoiceSvcContract>(invoiceSvc => {
invoiceSvc.GetByID(100066);
foreach(var row in this.TsARInvoice.InvcDtl)
{
row.TaxRegionCode = "GC13";
row.TaxRegionDescription = "VENTAS CONTRIB 13%";
row.RowMod = "U";
}
invoiceSvc.CheckCustomerTaxID("CL996", out outString);
invoiceSvc.CheckShipToTaxID(1504, "", out outString);
invoiceSvc.UpdateMasterUsingPasteInsertRowMod(
ref this.TsARInvoice,
"21",
"InvcDtl",
false,
false,
ref outBool,
false,
100066,
1,
"",
false,
dTotalCharges,
false,
out grpTotalInvAmt,
out outString,
out outString,
out updateRan,
""
);
});