# PO adding up cancelled good receipts

**URL:** <https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503>\
**Category:** Bug Reports\
**Created:** [December 11, 2019, 10:28pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503 "2019-12-11T22:28:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [December 11, 2019, 10:28pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/1 "2019-12-11T22:28:41Z")

</div>

Hello,

I noticed that a call like `...@api.ordoro.com/purchase_order/3015/`  
will show something like this for the items:

```auto
...
  {
            "id": 906813,
            "quantity": 4,
            "unit_price": 0.0,
            "_link": "/purchase_order/3015/line/906813/",
            "product": {
                ....},
            "to_be_shipped": 3,
            "available_on_hand": -2,
            **"quantity_received": 8**....

```

As you can see, the quantity\_received is greater than the quantity.

Checking the good\_receipts, I found that this product has tow good receipts, each one with receiving 4 products, thus 8 received.

However, one of the good\_receipts ( “goods\_receipt\_id”: “20191121-122809716”) has status = deleted.

```auto
 {
            "status": "deleted",
            "updated": "2019-11-21T19:25:49.101391+00:00",
            "goods_receipt_id": "20191121-122809716",
            "created": "2019-11-21T18:28:09.718513+00:00",
            "received": null,
            "_link": "/goods_receipt/20191121-122809716/",
            "po_id": "3015",
            "po_status": "partial",
            "items": [
                   {
                    "id": 1646554,
                    **"po_item_id": 906813,**
                    "quantity": 4,
                    "product": {
                          etc..

```

If the good receipts was deleted, shouldn’t the respective quantity be deducted from the ‘quantity\_received’ field?

Regards,

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [December 13, 2019, 2:20am UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/2 "2019-12-13T02:20:00Z")

</div>

Hello!  
Any update?  
Thanks!

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [December 13, 2019, 4:50pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/3 "2019-12-13T16:50:16Z")

</div>

Hi,

> [@sergio.nader](#):
>
> If the good receipts was deleted, shouldn’t the respective quantity be deducted from the ‘quantity\_received’ field?

Based on the information you gave us, I would say that the `quantity_received` field should only include the amount from the non-deleted goods receipt. Thank you for the bug report.

Sophie

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [December 13, 2019, 4:55pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/4 "2019-12-13T16:55:36Z")

</div>

Thanks, Sophie!

Is there any time frame to have it fixed?

I know we can loop from the goods receipt to make the calculation right, but it will significantly increase the time to process the POs – not to mention the increase of the CPU use.

Regards,

Sergio

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [December 13, 2019, 5:10pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/5 "2019-12-13T17:10:22Z")

</div>

We are in a code freeze through the end of the year and will begin planning in the next year. We might expect to begin to work on this in the first half of 2020.

Has this just come up or have you just started to use the PO and GR part of the API?

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [December 13, 2019, 10:29pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/6 "2019-12-13T22:29:38Z")

</div>

Hello, Sophie.

I’ve been using the PO/GR API for a while now and it was yesterday that someone noticed it.  
If you want, I can try to check if it was like this since we start using it.

Thanks!

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [December 16, 2019, 8:43pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/7 "2019-12-16T20:43:32Z")

</div>

Thank you again for the heads up.

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [January 8, 2020, 5:34pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/8 "2020-01-08T17:34:05Z")

</div>

Hello!

Any ETA for this one?

Thanks!

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [January 15, 2020, 3:50pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/9 "2020-01-15T15:50:05Z")

</div>

Good morning?

Any idea when it will be fixed?

Thanks

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [January 15, 2020, 4:06pm UTC](https://forums.ordoro.com/t/po-adding-up-cancelled-good-receipts/503/10 "2020-01-15T16:06:34Z")

</div>

Thank you for checking in, but we do not have an eta on this. We will update when we are looking into it.
