Hi guys,
First of all, can we create Sales Order with zero ( 0 ) sales price ? It was mean for free of charge.
Secondly, I'm using this method from SalesLine --> Salesline.CalcLineAmount(Qty), and it turns out when sales price = 0 it will always look at the item base sales price in item master.
I'm using it like this example :
SalesLine.SalesQty = myTableLine.Qty;
SalesLine.SalesUnit = myTableLine.unit;
salesLine.SalesPrice = myTableLine.Price;
salesLine.TaxGroup = myTableLine.taxGroup;
salesLine.TaxItemGroup = myTableLine.TaxItemGroup;
salesLine.LineDisc = myTableLine.discAmount;
salesLine.LineAmount = salesLine.calcLineAmount();
Is there something missing or incorrect with the way I'm calling that method ? Because as mentioned, if I trace this, it will look at item master base sell price ->

Is there something I need to add with the statement or I need to do some extension to make modification ?
Thanks,