I am added one new field(LastPice) in purchparmline in account payable and my requirement is after post the invoice and data flow to inventory transaction . in inventory transaction form already have costprice and date physical and batchnumber.so i want to update the lastprice based on datephysical and batch number. plz tell me how to update lastprice using classes
Do want to add a field to InventTrans table or just want to display the value on inventory transactions form using a display method?
Please always tag your AX version.
sir ax2012R3. alaready costprice in inventory transactions ,but i want to update cost price in product reciept form new field last price place
see above pics
tell me sir ,how write the logic and which classes are used .
1145 said:alaready costprice in inventory transactions
You mean LTCostPrice? That looks like a display method. Do you have a display method for that on InventTrans table or form?
If so implement similar approach. You can get related purchParmLine by using InventTransId and InventDimId values.
yes sir,that Ltcostprice i want to update purchparmline field in lastprice with out using display methods.how to get the last price by using classes based on datephysical and batchnumber .i dont know how to write the logic .tell me logic
Do you have a field in InventTrans table and wants to update it from PurchParmLine?
Please confirm this.
give me reply sir.