Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

Get SalesPrice for specific Item and Customer

$
0
0

I want to find the SalesPrice for item that is in the SalesPrice Agreements for the customer.

I am trying this way:

priceDisc = new PriceDisc(ModuleInventPurchSales::Sales,

inventJournalTrans.ItemId,

inventJournalTrans.inventDim(),

inventJournalTrans.UnitId(),

systemdateget(),

inventJournalTrans.Qty,

custTable.AccountNum);

if (priceDisc.findPrice(custTable.PriceGroup))

price = priceDisc.price();

else if (priceDisc.findItemPrice())

price = priceDisc.price();

 

And I think that its not finding any price and returning default price for the item.

 


Viewing all articles
Browse latest Browse all 9880

Trending Articles