Quantcast
Channel: Microsoft Dynamics NAV Forum - Recent Threads
Viewing all articles
Browse latest Browse all 19332

Update Unit Price on Sales Line when changing Sales Type in Sales header

$
0
0

In Sales Header, we have included a new field Sales Type(Datatype: Option, Values: Normal, Tender, Special Order).  On the item card besides the current Unit Price field (i.e., Normal) we have added two new unit price fields for Tender and Special Order.

THE ITEM CARD

THE SALES INVOICE

How can we update the unit price on the Sales Line when changing the Sales Type:

1) when adding a new item on the sales line, and

2) for existing lines when changing the sales type.

I've verified through the code unit 7000 Sales Price Calc Mgt which includes the function CalcBestUnitPrice.

The following changes were done (code between ME01-START & END) but the correct price is not being displayed:

Does anyone has any idea how same can be done.

Nav version: 2013R2

Thanks & regards


Viewing all articles
Browse latest Browse all 19332


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>