New Introducing inventory in LightInventory in Light Read the announcementRead more

API/Getting started

Deprecations

Bill, purchase order and purchase request states Light has retired, what replaced them, and how filters that still name them behave.

Section
Getting started
Reading
2 min read
On this page
  1. 01Retired bill states
  2. 02Retired purchase order states
  3. 03Retired purchase request status

Values Light has retired, and what replaced them.

Retired bill states

No bill is in these states any more, and none can enter them:

Retired state What happens now
PAID A fully paid bill is COMPLETED.
RESET_PENDING A reset bill goes straight back to IN_DRAFT.
CANCELLATION_PENDING A canceled bill goes straight to CANCELLED.
APPROVED_ACCOUNTING_ENTRY_PENDING An approved bill goes straight to the state its payment starts from: READY_FOR_PAYMENT_RELEASE, SCHEDULED or UNPAID, or to COMPLETED when linked credit notes clear it in full. If posting it fails, it goes back to IN_DRAFT with the failure reason ERP_ENTRY_FAILED.

A state filter still accepts the four names, so nothing breaks: in and eq on one of them match no bills, and not_in and ne leave none out. There is no removal date. To find paid bills, filter on COMPLETED.

Retired purchase order states

No purchase order is in these states any more, and none can enter them:

Retired state What happens now
APPROVED_ACCOUNTING_ENTRY_PENDING A locked purchase order goes straight to OPEN.
RESET_PENDING A reset purchase order goes straight back to IN_DRAFT.
CLOSE_PENDING A closed purchase order goes straight to CLOSED.
CANCEL_PENDING A canceled purchase order goes straight to CANCELLED.

A state filter still accepts the four names, so nothing breaks: in and eq on one of them match no purchase orders, and not_in and ne leave none out. There is no removal date.

Retired purchase request status

No purchase request is in this status any more, and none can enter it:

Retired status What happens now
CANCEL_PENDING A canceled purchase request goes straight to CANCELLED, and so does its purchase order if it has one.

A status filter still accepts the name, so nothing breaks: in and eq on it match no purchase requests, and not_in and ne leave none out. There is no removal date.