Page 1 of 1

Which price value to set on non-stock item.

PostPosted: Thu May 05, 2022 3:37 pm
by pricerc
I've added non-stock item for a surcharge that is dependent on the value of all the other lines on the order.

When I add the line in, I can just set the SellPriceExGST and the cost to the same, and that's fine.

Which value do I update if I want to change the price because the order has changed?

If I just change SellPriceExGST, it applies a discount instead of changing the price?

Re: Which price value to set on non-stock item.  Topic is solved

PostPosted: Thu May 05, 2022 5:41 pm
by SBarnes
Hi Ryan

The code below is how I set the price on the line and avoid Jiwa trying to apply its prcing

Code: Select all
                            salesorder.SalesOrderLines[(KeyToGetBackHere as string)].FixPrice = true;
                            salesorder.SalesOrderLines[(KeyToGetBackHere as string)].FixSellPrice = true;
                            salesorder.SalesOrderLines[(KeyToGetBackHere as string)].DiscountedPrice = (decimal)DiscountValue;