askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
dbbasic-package.json · 3.0 KB · 37 lines
| 1 | { |
| 2 | "id": "app-bills", |
| 3 | "name": "Supplier Bills", |
| 4 | "version": "0.3.0", |
| 5 | "description": "What the business owes its suppliers (the payable side; app-invoices is what customers owe). supplier_bills and their lines, typed in by hand or made by app-exchange from a partner's signed invoice or credit note. A bill is received, approved and paid by people: nothing pays one automatically, and a bill that came through the exchange is the supplier's document, frozen from creation, so a disagreement is a dispute or a credit note. Approved bills are frozen but for their payment. Marking a bill paid is what lets app-exchange send the supplier a remittance. Three-way match against the purchase order and goods receipt, and posting bills to the books, are not built yet (docs/box-to-box-exchange.md, phase 1). 0.2.0: supplier_bill_lines.unit_code, the unit the supplier billed in. 0.3.0: part payments and credits. A payment (supplier_payments) is one transfer spread over one or more bills by its lines, each any amount; a supplier credit note is applied by a supplier_bill_credits row (to the bill it credits, or on account). A bill's paid_cents, credited_cents and outstanding_cents are derived from those rows, and a credit note's own outstanding is zero once applied. Sending a payment through app-exchange tells the supplier exactly what was paid on each bill; from then the payment and its lines are frozen and can take no new line.", |
| 6 | "compatibility": {"dbbasic_object_server": ">=0.1.0"}, |
| 7 | "dependencies": ["app-views", "app-nav"], |
| 8 | "objects": [], |
| 9 | "schemas": [ |
| 10 | {"collection": "supplier_bills", "path": "schemas/supplier_bills.json"}, |
| 11 | {"collection": "supplier_bill_lines", "path": "schemas/supplier_bill_lines.json"}, |
| 12 | {"collection": "supplier_payments", "path": "schemas/supplier_payments.json"}, |
| 13 | {"collection": "supplier_payment_lines", "path": "schemas/supplier_payment_lines.json"}, |
| 14 | {"collection": "supplier_bill_credits", "path": "schemas/supplier_bill_credits.json"} |
| 15 | ], |
| 16 | "permissions": [{"path": "permissions/rules.json"}], |
| 17 | "seed": [ |
| 18 | {"collection": "views", "path": "seed/views.tsv"}, |
| 19 | {"collection": "site_routes", "path": "seed/site_routes.tsv"} |
| 20 | ], |
| 21 | "migrations": [], |
| 22 | "nav": [ |
| 23 | {"id": "bills", "label": "Bills", "path": "/bills", |
| 24 | "blurb": "What suppliers have billed us, waiting to be approved and paid", |
| 25 | "surface": "member", "group": "Money", "order": 305} |
| 26 | ], |
| 27 | "attention": [ |
| 28 | {"id": "credits_on_account", "collection": "supplier_bill_credits", "where": {"bill_id": ""}, |
| 29 | "detail": {"op": "sum", "field": "amount_cents", "format": "cents", "text": "{value} to apply"}, |
| 30 | "label": "Supplier credits waiting to be applied", "path": "/bills", "nav_id": "bills", |
| 31 | "group": "Money", "severity": "normal"}, |
| 32 | {"id": "bills_to_approve", "collection": "supplier_bills", "where": {"status": "received"}, |
| 33 | "detail": {"op": "sum", "field": "total_cents", "format": "cents", "text": "{value} to approve"}, |
| 34 | "label": "Supplier bills to approve", "path": "/bills", "nav_id": "bills", "group": "Money", |
| 35 | "severity": "normal"} |
| 36 | ] |
| 37 | } |