sactowngirl
Programmer
- May 30, 2008
- 18
Hello all,
I'm been using MAS BOI to create sales orders by code, but now I'm facing this issue, I can't set any value to the FreightAmt column. All of the values are saved correctly but for some reason at the end the FreightAmt is $0.00. I used to have this problem with the ItemPrice but I solved using the PriceOverride column. Is there something that I'm missing for the FreightAmt? This is the code I'm using:
//These lines are saved correctly
retVal = oSalesOrderEntry.InvokeMethodByRef("nSetValue", new object[] { "TermsCode$", masSalesOrder.TermsCode });
retVal = oSalesOrderEntry.InvokeMethodByRef("nSetValue", new object[] { "TaxSchedule$", taxSchedule.ToUpper() });
//This line is not doing anything
retVal = oSalesOrderEntry.InvokeMethodByRef("nSetValue", new object[] { "FreightAmt", masSalesOrder.FreightAmt });
retVal is not returning any error so I'm guessing that I inserted the value correctly but there must be a rule I'm missing.
Thanks for your help,
Ale.
I'm been using MAS BOI to create sales orders by code, but now I'm facing this issue, I can't set any value to the FreightAmt column. All of the values are saved correctly but for some reason at the end the FreightAmt is $0.00. I used to have this problem with the ItemPrice but I solved using the PriceOverride column. Is there something that I'm missing for the FreightAmt? This is the code I'm using:
//These lines are saved correctly
retVal = oSalesOrderEntry.InvokeMethodByRef("nSetValue", new object[] { "TermsCode$", masSalesOrder.TermsCode });
retVal = oSalesOrderEntry.InvokeMethodByRef("nSetValue", new object[] { "TaxSchedule$", taxSchedule.ToUpper() });
//This line is not doing anything
retVal = oSalesOrderEntry.InvokeMethodByRef("nSetValue", new object[] { "FreightAmt", masSalesOrder.FreightAmt });
retVal is not returning any error so I'm guessing that I inserted the value correctly but there must be a rule I'm missing.
Thanks for your help,
Ale.