Add-on packages – system description
The package, item and store tables, save validation, the two kinds of deletion with the separate permanent-delete path, and the permission keys.
Overview
Separately priced add-on packages (quantities of functions, products, services) that can be ordered in the catalogue; ordering grants an allowance in the resource ledger (Dlbtresource). Table names carry the installation's own prefix in the database: package, package_item, package_to_store.
Saving
- Permission:
canSave($route, package_id)on the form, the item search (package.itemsearch, sharedDlbtbilling::searchItems) and the save. - Fields: code, name, description, list price (required, > 0), currency, VAT, validity (days), sort order, status, stores, items (type, id, quantity).
- Errors:
error_code,error_name,error_price.
Deletion
delete: if anorder_itemrefers to the package nothing is deleted (error_in_use); otherwise physical deletion. With onlydeletethe delete button deletes physically; with both permissions physical deletion runs only with thepurge=1parameter, as a separate icon.statusdelete:status = 9.- The bin (
Deletedfilter) is visible only withcanSeeDeleted(delete permission or super).
Permissions
Keys: list, add, edit, delete, statusdelete, debug; not classified in the seeds.