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

🔒 Closing a contract

Closing a contract

A contract closes when all the goods that came in under it have gone out. A closed contract is not edited, not invoiced, and moves to Inbound > History > Contracts.

Automatic close

After every shipment, aduanasHQ re-evaluates the contract of the shipped invoice and closes it when, on every line:

  • received is equal to or greater than ordered, and
  • shipped is equal to or greater than received.

In other words: everything ordered arrived and everything that arrived left. The close date is the last shipment's. The invoiced quantity plays no part: an invoice edited after its shipment does not keep a finished contract open.

Manual close (administrators)

When the warehouse received less than ordered and that balance will not arrive, the automatic close never happens because received never reaches ordered. For those cases there is the Close button, visible to an administrator on an Approved contract that already had Receipts.

Pressing it says how much of the order never arrived and asks for confirmation. The close is refused if:

  • there are still goods on hand (received greater than shipped), or
  • there is committed quantity on invoices not yet shipped.

In both cases the message says so and the contract stays open: ship what is left first.

The rule, in short

A contract does not close while goods received under it remain in the warehouse. If a contract shows as closed and you believe goods of yours are still in the warehouse, check under Analytics > Stock position or Analytics > Detailed inventory which contract (lot) those goods belong to: it is often another contract of the same importer with the same product. See also the FAQ.

Reopening a contract

There is no reopen button. A closed contract reopens in one case only: when the counter check finds that, once the counters are rewritten from the documents, there are goods on hand again (for example because a shipment was deleted). Then, on applying Rewrite the counters from the documents under Alerts, the contract goes back to Approved so the goods can leave.

Was this page helpful?