P4 Software / aduanasHQ EN

Add these docs to Claude

Ask Claude questions about these docs. Claude reads the published pages and links you back to them. Copy this address:

https://docs.p4software.cloud/mcp

In claude.ai or Claude Desktop: open Settings, then Connectors, choose Add custom connector and paste the address.

In Claude Code, run:

claude mcp add --transport http docs https://docs.p4software.cloud/mcp

🔄 Contracts: the life cycle

Contracts: the life cycle

A contract goes through four states. The state shows as a badge in the header and as dated steps in the side panel.

StateMeaningWhat can be done
DraftBeing entered.Edit the whole header and the lines; Release; delete (administrator).
Pending ApprovalReleased, waiting for sign-off.Approve (or process the workflow), To draft to correct. Only the cost adjustment is editable.
ApprovedFirm: the warehouse already has the purchase order and can receive.Invoice, record actual costs, authorization number and date; To draft only while there are no Receipts and the warehouse has not started receiving.
ClosedEverything received has left.Read only. Listed under History > Contracts.

What triggers each change

  • Release (Draft → Pending Approval): requires a freighter and at least one line. If the company requires an approval workflow, the default one is assigned. Approvers are emailed.
  • Approve (Pending → Approved): done by an approver with the Approve button, or by the workflow itself when it reaches its end. On approval, aduanasHQ sends the Products and the purchase order to the warehouse (P4W) and emails the importer's contact.
  • Receipt (no state change): every time the warehouse receives against the purchase order, a receipt is created and the Received counter of each line goes up.
  • Invoice (no state change): every proforma invoice raises the Committed counter of the lines it includes.
  • Shipment (no state change): every shipment raises the Shipped counter.
  • Close (Approved → Closed): automatic after a shipment when, on every line, received reached ordered and shipped reached received; or manual, by an administrator, with the Close button (see Closing a contract).

Each line's counters

Every contract line carries four quantities, shown in the lines table once the contract is no longer a draft:

ColumnWhat it counts
QuantityWhat the contract orders.
ReceivedWhat the warehouse received (sum of the Receipts).
CommittedWhat is already on proforma invoices (sum of the Invoice lines).
ShippedWhat left (sum of the Shipments).

Two figures the application uses everywhere derive from them:

  • On hand = Received − Shipped: what is physically in custody.
  • Available = Received − Committed: what can still be put on an invoice.

The counters are compared every night with the documents behind them; if any differ, an alert appears and an administrator can fix it in one click (see Alerts).

Was this page helpful?