Forum Discussion

John_Dinning's avatar
John_Dinning
Trusted User
7 years ago

ItemPurchaseOrderService returning Orders converted to Bills

The ItemPurchaseOrderService seems to be returning Orders that have converted to Bills.

I don't think it should.

 

Example:

I create Order No. 00000010 in AccountRight.

I change it to a Bill
It now has a new order number of 00000016 (I don't know if this is a good idea, but anyway.. )

When viewing it in Purchases Register, it appears under Open Bills as 00000016
and no longer appears as an Order with no. 00000010

This is all as you would expect.


However, if I retrieve all orders using the ItemPurchaseOrderService API
Order No. 00000010 still appears as an Order with Status set to Open (not ConvertedToBill)
and Order No. 00000016 also appears as an open bill.

Once it is converted to a Bill, I presume that it should not be returned by the ItemPurchaseOrderService.
I can't see any field that I could filter on to exclude Orders that have been converted to Bills.

 

Any suggestions wecome.

 

2 Replies

Replies have been turned off for this discussion
  • John_Dinning's avatar
    John_Dinning
    Trusted User
    7 years ago

    The short answer is no.

    What I wanted to do was receive items against an order. 

    However, I later found that there are no API functions to allow to receive goods against an order.

    Also there is no backorder functionality so we can only receive against an existing Bill or create a new Bill.

    So .. there was no point in getting the Orders and this became a non-issue for me.