put https://open-api.stag-v2.paper.id/api/v2/purchase-invoices/:id
Update existing Purchase Invoice Document
When update on a Purchase Document, some behavior below is applied in the process
Changes on the Item
- Adding item will make the document with payment status paid changed to partially paid
- Removing item on paid document is prohibited, since the paid bill amount can't be more than total invoice amount
Changes on document status
- You can't change the document status from other status to draft