- Client
- AMRONEC Limited
- Default commission
- Projects 2%, maintenance 5%, supply 1%
- Payouts
- Twice a month: on the 1st and the 16th
- Tests
- About 120 tests, plus PostgreSQL race tests for payouts
From the project



Registering a new deal: the first to register a customer earns the commission (demo data) 
The marketer’s deals by stage, each with its locked commission rate (demo data) 
Requesting a commission payout and tracking requests, with the bank receipt for a paid one (demo data) 
Managing field marketers: approved profiles and one awaiting approval (demo data) 
Everyone’s commission: recorded per marketer and employee, and what each can request (demo data)
The marketer’s dashboard
- What is available to pay out, and the commission recorded, payable and paid out.
- The latest updates on their deals, never showing staff notes or the customer name on file.
- The portal’s pages: home, deals, register a deal, payouts, profile, updates, the commission policy, and how it works.
Registering a deal: the first to register a customer earns the commission
- The marketer enters the company name, a way to identify the customer (a phone number or other), the contact person, the city, the type of work (project, maintenance or supply), the needs and details, and the expected value, with up to 3 files (images or PDF, 8 MB each).
- The commission rate is locked on the deal when it is registered.
- If the customer already has an open deal, the commission goes to whoever registered it first. A second marketer is told it is registered, but never by whom.
- Registrations are handled one at a time, so two at the same moment can never both win.
When commission is earned, and when it is paid
- Commission is recorded when an invoice is issued, and becomes payable as the customer pays.
- A credit note takes the matching commission back.
- Commission earned before the marketer is approved is recorded, but not payable until they are.
- Payouts go out in batches on the 1st and the 16th of each month.
- Whoever requests a payout cannot approve it, and it is marked paid only with a bank receipt.
- A floor on each deal’s margin that only a manager can override, and commission splits that need approval.
Invitation and joining
- Only staff with the commission-approval permission can invite a marketer. The link lasts 7 days and works once.
- To join: a password of at least 12 characters, accepting the commission policy, and a profile with a phone number, a national ID, iqama or commercial registration number, and an IBAN checked by its check digits.
- A marketer goes from invited to pending to approved, and can be suspended.
- A password reset link lasts 60 minutes, and attempts are rate-limited.
How I checked
About 120 tests across the agents and commission modules, plus race tests on PostgreSQL for payout requests that arrive at the same moment.
Built with
PostgreSQL
Services in this work
- CRM systemsIn a custom CRM, every customer has a file: their orders, their quotes, who looks after them and where things stand. Every request from your site or WhatsApp becomes a deal with an owner, instead of getting lost in an inbox.
- Web platform developmentA custom web app your customers and team use from the browser on any device: a customer portal, a subscription platform you sell to companies, or a company site with quote requests, tracking and calculators. In Arabic and English from day one.
Related work
- AMRONECAn engineering and industrial company in Saudi Arabia. I built its website in Arabic and English with a hub of engineering tools, and I am building its ERP in phases, covering accounts, sales, contracts and billing.
- Blue WingA sourcing and shipping company working from China to the Arab world. I built its site, Arabic first: customers ask for a quote and follow their shipment by one number, and the company runs quotes, shipments and customers from one admin.
- Our own productA3malakA platform of our own for shops that sell on WhatsApp: your whole team on one number, the order and the payment link from inside the chat, and an AI assistant that answers only from your store’s data.
Tell me what you want built.
I reply within one working day, with questions or a first idea of scope and price.
Send me your idea
or write to me at hello@muhandis.online
