cancel
Showing results for 
Search instead for 
Did you mean: 

price not updated

lars_jnsson
Active Participant
0 Kudos

Hi!

When confirming a Purchase Order with quantity, price, weight and shipdate, all values gets updated in the PO line except for the price, it will not change. No error occurs, B1 out message is posted successfully.

Any clue?

<Documents>

     <row>

          <DocEntry>1632</DocEntry>

          <DocCurrency>EUR</DocCurrency>

          <PaymentGroupCode>20</PaymentGroupCode>

     </row>

</Documents>

<Document_Lines>

     <row>

          <LineNum>0</LineNum>

               <Quantity>10.0</Quantity>

               <ShipDate>2014-03-15</ShipDate>

               <Price>106.5</Price>

               <Weight1>227.73</Weight1>

               <Weight1Unit>3</Weight1Unit>

     </row>

</Document_Lines>

Regards

Lars

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lars

Try to use 'UnitPrice' instead.

Kind regards,

Radek

lars_jnsson
Active Participant
0 Kudos

Hi Radoslaw!

Yes, I now set all three values in the price formula: UnitPrice, DiscountPercent and Price.

Then it works.

This behaviour is not the same as when using DI directly in an addon. When you only set the price, the discount will be recalculated.

Regards

Lars

Answers (0)