DeletionBlocker
enum
Reasons why an item can't be deleted
Empty array means the item is deletable.
Values
Fields
| Name | Description |
|---|---|
DOCUMENT_HAS_RELATED | Closed document referenced by another document (relatedIn) |
DOCUMENT_TYPE_NOT_CLOSEDDELETABLE | Document type forbids deleting closed documents |
DOCUMENT_COMMISSION_PAID | Salesperson commission for this document has already been reconciled/paid |
PRODUCT_HAS_DOCUMENT | Product is referenced by a document |
PRODUCT_HAS_STOCK_MOVEMENT | Product is stock-tracked and has stock movements |
STORE_HAS_AREA | Store has an area |
TAX_HAS_DOCUMENT_PRODUCT_TAX | Tax is referenced by a document product's tax |
TAX_HAS_PRODUCT_TAX | Tax is referenced by a product's tax |
TABLE_IS_OCCUPIED | Table is currently occupied |
AREA_HAS_OCCUPIED_TABLE | Area has an occupied table |
AGENT_COMMISSION_PAYMENT_NOT_REQUESTED | Agent commission payment has not been requested |
AGENT_TYPE_HAS_AGENT | Agent type has an agent |
POS_REQUEST_PRODUCT_HAS_PAID_QUANTITY | POS request product has a paid quantity |
PROMOCODE_HAS_USAGE | Promocode has usage |
PROMOTIONAL_MEDIUM_CATEGORY_HAS_MEDIA | Promotional medium category has media |
COMPANY_USER_IS_SUPPORT | Company user is a support user |
COMPANY_USER_IS_SELF | Company user is the requesting user themselves |
COMPANY_USER_IS_LAST_ADMIN | Company user is the last admin of the company |