BYstudio
RU/EN

Purchase requests: approval and partial receipt

Keep an internal purchase request linked to its approved quantities, supplier order and actual receipts for each line. Ordered does not mean received. Start with one purchasing category, name the next owner and show what remains outstanding. A partial delivery should not close the whole request.

Separate demand, the order and payment

An internal request explains what a team needs and why. A supplier order records the chosen terms. A receipt confirms what was actually accepted. These events may happen on different days.

Internal demand
Record the requester, team, purpose, required date, receiving location, items, quantities and units of measure. Describe allowed substitutions where relevant. Do not require employees to select a supplier when that is the buyer's responsibility.
Approved quantity
A reviewer may approve only part of a request. Preserve requested and approved quantities separately, with the reason for the change. Approving demand does not itself authorise payment or contract signing.
First-stage boundary
One demand type, one approval route and one receipt-confirmation method make a useful first stage. Public tender procedures, legal terms and automatic purchasing are outside this scope.

ERPNext documents Material Request as demand upstream of subsequent purchasing documents [S1]. This illustrates an existing approach rather than prescribing a platform.

Give each transition an owner

A manager should be able to see the next action. A shared status without an owner and due date does not explain who must resolve a delay.

Requester and reviewer
The requester explains the need. The reviewer checks its purpose and permitted quantity under company policy. A return names a reason and the person who must revise it. Define substitution and self-approval restrictions explicitly.
Buyer
After approval, the buyer receives the item list and required date. An authorised person selects the supplier, agrees terms and places the order. Replaying a notification must not create a second order.
Receiver
The receiver confirms accepted quantities in the agreed unit and records discrepancies. Defects, substitutions and returns need separate decisions. Delivery to an address is not equivalent to acceptance.

A focused list of outstanding lines with owners is often more useful initially than a large dashboard covering every team.

Calculate outstanding quantities per line

One request may contain items with different suppliers and dates. An overall completion percentage hides the particular item that is still needed.

Three quantities
Show requested, approved and accepted quantities for each line. Add ordered and cancelled quantities where required. Do not mix individual units, packs and sets without an agreed conversion rule.
Open balance
In a simple route without returns or cancellations, outstanding quantity equals approved minus accepted quantity. For example, 10 approved and 4 accepted leaves 6. These are fictional explanatory numbers, not customer metrics.
Partial completion
Receiving every unit of one line does not close the others. Complete the request only when every approved line is fulfilled or its remainder is explicitly cancelled. Preserve the reason and decision owner for cancellation.

ERPNext Purchase Order documentation distinguishes receiving from billing, including partial operations [S2]. Verify tolerances and links to source demand in the version and configuration in use.

Make delays, substitutions and quantity changes visible

Exceptions belong in acceptance checks. If people resolve them outside the system, the request record stops explaining the actual purchasing state.

Post-approval changes
Additional quantities or a different item need the agreed decision. Editing a line must not silently increase the approved quantity. Preserve who changed the request and whether another review is required.
Receipt discrepancies
Record shortages, defects and substitutions separately from accepted quantities. A delivery note alone should not close demand without confirmation of the actual result. Define how returns reopen an outstanding balance.
No response or supplier
Keep the remaining quantity, reason and next owner visible. Escalation is useful after an agreed delay. Sending a notification does not establish that purchasing has been completed.

If the existing stock system already records receipts, it can remain their source of truth. A separate independent stock ledger in the CRM is usually unnecessary for displaying request progress.

Synthetic exercise: partial receipt and replay

The ZIP contains fictional request DEMO-PR-01 and a local Python 3 check. It reads two adjacent files, makes no network calls, places no orders and writes no files.

Approval
The employee requests 12 units of item A and 3 of B. The fictional reviewer approves 10 and 3. Receipt before approval and self-approval are rejected. The original request remains visible.
First receipt
REC-1 accepts 4 units of A and all 3 of B. Outstanding quantities are 6 and 0. The request remains partially fulfilled. Replaying REC-1 with the same lines does not change the result.
Validation and completion
Reusing the event identifier with a changed quantity is rejected as a conflict. Exceeding the outstanding quantity is also rejected. REC-2 accepts the remaining 6 units of A and completes both lines.

The exercise checks only these rules against fixed synthetic inputs. It is not evidence of production security, accounting suitability or a customer implementation. Returns, prices and real stock documents are outside its scope.

Download the synthetic request and receipt exercise, ZIP

Check existing tools first

Reproduce one request in the current ERP, accounting system or CRM. An existing workflow with configured roles may solve the problem sooner than custom software.

Simple shared register
For low volume and one responsible owner, a register of approved, accepted and outstanding quantities may be enough. It still needs change history, access control and an update rule rather than colour coding alone.
Configured product
Check returns for revision, partial approval, links between orders and receipts, role permissions and outstanding lines. A module named Purchasing does not guarantee the required workflow.
Focused extension
Custom development can address a demonstrated gap: cross-system requests, unusual substitution rules or partial-fulfilment reconciliation. Include roles, migration of open requests, training, handover and support in the estimate.

AI may help draft a description using permitted information. Quantity accounting, states and replay handling generally use ordinary rules and do not require AI.

Accept one request through its exceptions

The stage is ready when assigned participants can complete the route and explain each outstanding line from retained events.

Normal route
A request is approved, a buyer receives the task and a receiver confirms delivery. The requester sees accepted quantities, remaining demand and the owner of the next action.
Exceptions
Test a return for revision, reduced approval, partial receipt, substitution and cancellation of a remainder. Invalid events must leave totals unchanged; corrections retain their history.
Handover and failure
A replay does not double received quantities. A data conflict is visible to its owner. An unavailable stock system leaves a record awaiting reconciliation. Check permissions, open-line migration, a backup and training.

A workflow sketch and fictional request are enough for a free initial review. A full audit, pilot and development each have a separately agreed scope and price. Production documents and access are handled under agreed rules.

Review one purchase-request workflow

Describe who requests a purchase, who approves quantities and where receipt is recorded. Start with one demand type and a check of outstanding quantities.

Download the acceptance checklist, TXT

The case demonstrates another operational task. It is not presented as an implementation of the internal purchasing route described here.

Sources and boundaries

Official guidance checked 22 November 2026. It illustrates an existing approach rather than BYstudio delivery results. The exercise rules and fictional quantities were defined separately for this guide.

Tell us what
you need to build.

The initial task discussion is free. Describe it in your own words. A BYstudio specialist or Yan Bunin will respond.

For example: @username, a phone number or name@company.com

Where does it start and what needs to happen next?

Add a detail (optional)

Please do not send passwords, tokens, customer databases or bank files.

What happens after you send it

We read the description, clarify the goal and suggest a first-phase scope. A few sentences are enough to start.