Enable copying of purchase orders to bills
Currently the Xero UI allows users to copy a purchase order to a bill which is useful for tracking an order through to payment. This functionality however is not present in the API. The API also does not provide any reference between a bill created in this way and the original PO, so it is impossible to determine whether or not a Bill was created in this way.
I propose that the API enables a few things:
- Provide the bill/invoice/purchase order ID with the original purchase order. This ID would be the newly created records ID and allows us to know where a purchase order was copied
- Provide the original purchase order ID in the newly created record so we know which purchase order was copied
- Allow purchase orders to be copied. This could be done very simply by adding a purchase order ID property to the creation of a bill/invoice/purchase order.
This is crucial for us to implement a feature we're working on. The only way around this is either to force the users to perform the action within Xero directly, or have them void a purchase order a create a new bill. Neither solution is suitable, as they either completely lose the trail of the purchase, or they have a poor user experience and we then have no way of correctly tracking the data which causes issues on our end