Skip to content

Bravo Asphalt — Stock and Business Flow

Bravo Asphalt business flow and stock integration

Section titled “Bravo Asphalt business flow and stock integration”

[REQ-DOCS-ASPHALT-04]

Bravo Hub Asphalt uses the standard Bravo Inventory transaction chain for purchasing, stock, production, sales, and invoicing. Asphalt-owned documents capture the plant context and operational controls; Bravo Inventory documents remain the accounting and stock ledger source of truth.

flowchart LR
setup["Plant, silos, vehicles, mix designs"] --> purchase["Purchase Order"]
purchase --> inward["Inward Weighment"]
inward --> receipt["Purchase Receipt"]
receipt --> rawStock["Raw material silo Warehouse / Bin"]
rawStock --> batch["Asphalt Batch"]
batch --> manufacture["Stock Entry: Manufacture"]
manufacture --> finishedStock["Finished asphalt Warehouse / Bin"]
batch --> quality["Asphalt Quality Test"]
quality -->|"Pass"| outward["Outward Weighment"]
quality -->|"Fail"| reject["Reject Stock Entry"]
reject --> rejectStock["Rejected Warehouse"]
outward --> ticket["Delivery Ticket"]
contract["Sales Order / supply contract"] --> ticket
ticket --> note["Delivery Note"]
note --> invoice["Sales Invoice"]
note --> finishedStock

Create or confirm the Asphalt masters before entering transactions:

  • Asphalt Plant identifies the company, capacity, and default fuel item.
  • Asphalt Silo maps each physical silo to one Bravo Inventory Warehouse. The warehouse Bin.actual_qty is the silo balance; Asphalt does not maintain a second silo quantity.
  • Asphalt Settings stores the raw-material, finished-goods, and reject warehouses, naming series, currency, temperature window, and over-delivery tolerance.
  • Asphalt Mix Design defines the recipe. It must be submitted and Approved before an Asphalt Batch can use it.
  • Sales Order is the supply contract. The Asphalt custom fields identify the Project Site and delivery deadline; ordered and delivered quantities remain Bravo Inventory Sales Order values.

See Setup and Dispatch for the master and contract details.

The supplier transaction starts as an Bravo Inventory Purchase Order, with the material and its target silo warehouse on the item row. The truck is recorded through an Asphalt Inward Weighment linked to that Purchase Order.

When the inward weighment is submitted, the Weighment controller creates and submits the Bravo Inventory Purchase Receipt. The receipt posts the received quantity into the material’s silo Warehouse and therefore updates its Bin and Stock Ledger entries. Do not create a second manual stock receipt for the same truck.

The weighbridge records gross and tare weights; net weight is derived as gross minus tare. Gross must be greater than tare, and a completed weighment cannot be reused.

See Weighbridge for the weighment rules.

An Asphalt Batch takes its recipe from an Approved Mix Design and checks the plant temperature window and raw-material availability before submission. On submit, it creates an Bravo Inventory Stock Entry of type Manufacture:

  • raw materials are consumed from their silo Warehouses;
  • the produced asphalt item is added to the finished-goods Warehouse;
  • actual material cost is read back from the posted Stock Entry.

The resulting Stock Ledger entries, not a manually maintained production total, define the inventory movement. Cancelling a batch reverses its Stock Entry and must happen after any submitted Quality Test for that batch is cancelled.

An Asphalt Quality Test stores parameter results and derives the overall Pass/Fail result. A failed test rejects the batch and posts a second Bravo Inventory Stock Entry that moves the produced tonnage from finished goods to the configured reject Warehouse.

This is a status-and-stock-move control rather than a separate Bravo Inventory Batch number. A rejected batch is excluded from dispatch, and the Delivery Ticket checks the batch status again at ticket time. The reject Warehouse therefore remains visible in Bravo Inventory stock reports while rejected material is kept out of available finished goods.

See Production and Quality for the quality lifecycle.

The dispatcher records an Outward Weighment for the truck and links it to the Sales Order. A Delivery Ticket then links the Sales Order, vehicle, weighment, and produced batch. Its quantity comes from the weighment net weight.

Before submission, the ticket validates:

  • the Sales Order balance, including the configured over-delivery tolerance;
  • the vehicle’s rated capacity;
  • gross weight greater than tare weight;
  • that the weighment has not already been consumed;
  • that the selected batch is not Rejected.

On submit, the ticket creates an Bravo Inventory Delivery Note and Sales Invoice. The Delivery Note is the stock-moving document: it consumes finished asphalt from the finished-goods Warehouse and posts the Stock Ledger movement. The Sales Invoice is created with stock update disabled, so invoicing does not consume the same asphalt a second time.

Cancelling a ticket reverses the invoice and Delivery Note, subject to Bravo Inventory payment and cancellation rules. The printed ticket includes the QR data and is available in A4 and 80mm formats.

See Dispatch for the contract and ticket controls.

Business questionSource of truth
How much raw material is in a silo?Bravo Inventory Warehouse Bin and Stock Ledger
What was physically received?Submitted Inward Weighment and its Purchase Receipt
What was consumed and produced?Submitted Asphalt Batch and its Manufacture Stock Entry
What quantity passed or failed quality?Submitted Asphalt Quality Test and batch status
How much finished asphalt remains?Finished-goods Warehouse Bin and Stock Ledger
How much was delivered and invoiced?Delivery Note, Sales Invoice, and Sales Order balance
Is a truck load already used?Weighment status and Delivery Ticket link

Reports should reconcile to Bravo Inventory stock ledger data rather than adding a second inventory ledger in Asphalt.

The demo builder creates one realistic month through the same chain: parties, Purchase Orders and inward weighments, Sales Orders, batches, quality tests, delivery tickets, plant logs, and breakdowns. Run it from the bench with:

Terminal window
bench --site <site> execute asphalt.setup.demo.build

The builder is safe to run again while the demo already exists; it does not append a duplicate month. To replace the dataset, a System Manager can open Asphalt Settings → Actions → Reset Demo Data and confirm the operation. The server method calls reset_all() and cancels/deletes the demo transactions in stock-safe dependency order, including related Delivery Notes, Sales Invoices, Purchase Receipts, Stock Entries, weighments, batches, and logs. Asphalt masters (company, warehouses, items, silos, mix designs, and settings) remain in place.

Because this app is designed as a single-tenant demo site and does not add a separate demo marker to every Bravo Inventory transaction, the reset action is restricted to System Manager and must not be exposed as a general production cleanup tool.