Catalogue
Every supplier’s own list matched onto one product record, so a buyer searches once and sees who actually has it.
A catalogue and a basket are the first fortnight. What takes the rest of the build is everything after checkout: one basket becomes an order per supplier, priced on that supplier’s own terms, shipped and invoiced on its own clock. At the end of the month it has to add up three ways — for the buyer, for each supplier, and for the platform taking a commission in between.
صيدلية النخبة، الرياض
Account 2231, six branches, 30-day terms
Rawabi Pharma Supply
Riyadh · Confirmed, shipped in full
Tax invoice raised on despatch
Sadeem Medical Depot
Jeddah · Partly shipped
Invoiced for what shipped, second invoice to follow
Mishkat Distribution
Dammam · Confirmed, picking
Not yet raised
Saudi riyal. Each figure resolves once its part of the order does
9,420.00 + 6,180.00 + 3,040.00 = 18,640.00
Three, from one basket
730.40, accrued per consignment
Consignments to order, to the halala
A simulated order, drawn in code in this palette and played once. Press Try now and change the order: split it, ship part of it, add a supplier, apply the contract discount, and watch the money re-reconcile. The figures are invented and no client record is real — they add up because that is the whole point.
Every supplier’s own list matched onto one product record, so a buyer searches once and sees who actually has it.
Contract price, tier, promotion and minimum order resolved per buyer and per supplier at the moment the item is added.
At checkout the basket becomes one order per supplier, each with its own minimum, lead time and delivery charge.
Confirmation, despatch and partial shipment tracked per consignment — a short-supplied line is a case, not an exception.
A tax invoice per supplier for what actually shipped, and the buyer’s view of the whole order alongside it.
Commission per consignment, a statement per supplier, and a ledger where the parts still sum to the order.
Who sets the price, who bears delivery, what happens when one supplier is short, when commission is earned and when it is paid — those are commercial decisions, and they are the ones we write down before any of this is built. The platform is then built to exactly those rules, which is what keeps the arithmetic defensible when a supplier queries a statement.
Nothing reconciles by itself. A marketplace balances only if discounts, returns and short supply were decided before the first invoice was raised, so that is the conversation we start with rather than the one we defer.
The one with the exceptions in it — the contract prices, the tiers, the account that does not pay delivery. That file decides more about how a platform like this is built than any brief, and we will scope a build against it.