Skip to main content
Solved

PO receipt quantities are doubled

  • July 14, 2025
  • 4 replies
  • 69 views

I am creating a PO receipt through the REST API, and for lines that are sent to a different warehouse or location than the default, the quantities are doubled.  The client has separate virtual warehouses set up for damaged goods, if if received products are received to the damaged warehouse, the resulting quantity shown in the UI is always double the quantity that I sent in the HTTP body.  Anyone have any ideas what is causing this, and how to avoid it?


Jim

 

Best answer by Dmitrii Naumov

@CSync It’d be helpful to see the request body. I’d guess that you send quantity both in the line quantity and Allocation quantity. 

 

If you send the explicit allocation details with e.g. serial numbers or warehouse location, you should only include quantity there and not on the detail level.

Here is an example for sales order, but it works the same way for other documents

 

4 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • July 15, 2025

@CSync It’d be helpful to see the request body. I’d guess that you send quantity both in the line quantity and Allocation quantity. 

 

If you send the explicit allocation details with e.g. serial numbers or warehouse location, you should only include quantity there and not on the detail level.

Here is an example for sales order, but it works the same way for other documents

 


  • Author
  • Freshman I
  • July 15, 2025

Dmitrii,

 

That sounds like it should fix it!  However, when I send it without a quantity at the line level (just at the Allocation level), I get the error below.

An error occurred during processing of the field Ext. Cost value -222.5 A value for the Ext. Cost must not be negative for Stock Items.

I am not sending in any cost or extended cost info, so Acumatica must be calculating that negative value.  I have attached a sample payload.

 

 


  • Author
  • Freshman I
  • July 21, 2025

Can anyone provide any help or tips on this new error?


Jim


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • July 23, 2025

@CSync I’ve tried your request (with replaced data) and it seems to work fine on my side. There may be something with the cost calculation, but it’s really hard to say without the specific data. 

It does seem the request itself is correct though.