Proposed · Not tested
Reconcile billable units after a partial supplier return
Proposed · Not tested. This is an original editorial plan. Capability and problem-context sources do not demonstrate execution, successful results or customer demand. Platform compatibility is unknown and untested.
The problem
A returned receipt can mix accepted and rejected stock. A draft supplier invoice may omit retained units or bill returned units unless each movement is traced to its original purchase-order line and billing rule.
Agent job
Build a source-linked quantity bridge across receipt, return and invoice copies, keeping physical disposition separate from the owner’s billing-entitlement rule.
Expected output
A draft quantity-bridge CSV and exception memo showing retained accepted/rejected units, eligible units under supplied rules, already billed units and unresolved draft-invoice differences; awaiting procurement/AP approval.
Why an agent / simpler alternative
An agent may help reconcile differently named receipt lines and explain why a quantity is unresolved across documents. Signed arithmetic, joins and balance checks should be deterministic. Use the ERP’s corrected native receipt-to-invoice report or a small spreadsheet when identifiers and billing rules are already consistent; no agent is needed to subtract two unambiguous quantities.
Who this helps
Procurement clerk
Accounts payable specialist
Before a pilot — required, unexecuted
Create actual sample files with explicit return signs, invoice-versus-credit document types and a field showing whether credit history is complete. Build an independent expected-result file; the narrative example is not a runnable test.
Evidence boundary
Human duty and problem-source context are separate from the authored workflow. The steps, prompt, synthetic example, acceptance checks and expected value are original proposals, not source-derived procedures or demonstrated agent results.
Setup requirements
Use a single synthetic PO with stable receipt-line IDs and separate accepted/rejected stock buckets.
Specify whether the return export contains signed deltas or positive return quantities; never subtract both.
Provide the owner-defined billing setting and posted-invoice/credit-note cut-off. Keep calculation cells separate from interpretation notes.
Inputs and access
- Name
purchase_order_lines.csv
- Source or owner
Synthetic procurement owner
- Sensitivity
Synthetic-only fixture. Line ID, item ID, ordered quantity and unit only. Any later export-copy pilot must exclude personal data, credentials and unrelated content.
- Permission needed
This document describes a future test only. Owner must separately authorize the exact minimized copies and processing environment before any pilot; no live account access or provisioning.
- Scope
Line ID, item ID, ordered quantity and unit only
- Name
receipt_and_return_lines.csv
- Source or owner
Synthetic receiving owner
- Sensitivity
Synthetic-only fixture. Movement ID, original receipt line, accepted/rejected disposition, signed quantity and unit. Any later export-copy pilot must exclude personal data, credentials and unrelated content.
- Permission needed
This document describes a future test only. Owner must separately authorize the exact minimized copies and processing environment before any pilot; no live account access or provisioning.
- Scope
Movement ID, original receipt line, accepted/rejected disposition, signed quantity and unit
- Name
invoice_lines.csv
- Source or owner
Synthetic AP owner
- Sensitivity
Synthetic-only fixture. Draft versus posted status and quantity linked to receipt/PO line; no bank or vendor-contact data. Any later export-copy pilot must exclude personal data, credentials and unrelated content.
- Permission needed
This document describes a future test only. Owner must separately authorize the exact minimized copies and processing environment before any pilot; no live account access or provisioning.
- Scope
Draft versus posted status and quantity linked to receipt/PO line; no bank or vendor-contact data
- Name
billing_rule_snapshot.txt
- Source or owner
Synthetic purchasing policy owner
- Sensitivity
Synthetic-only fixture. Rule for rejected units, return credits and cut-off date; examples are invented. Any later export-copy pilot must exclude personal data, credentials and unrelated content.
- Permission needed
This document describes a future test only. Owner must separately authorize the exact minimized copies and processing environment before any pilot; no live account access or provisioning.
- Scope
Rule for rejected units, return credits and cut-off date; examples are invented
Proposed steps
Record movement types, time basis, quantity units and row counts; mark any missing return-to-receipt link.
Join returns to original receipt lines using explicit IDs; quarantine fuzzy item matches and returns larger than their source bucket.
Compute retained accepted and rejected quantities independently; apply only the supplied eligibility rule to each retained bucket.
Reconcile billed quantity net of supplied credit quantities; subtract from eligible quantity without using the draft invoice as evidence of entitlement.
Compare proposed invoice units with the calculated candidates; attach both row references and state which missing rule or document would resolve the difference.
Prepare a review packet containing formulas, known omissions and owner decision questions; leave its status pending owner review.
Original starter prompt — proposed
- Origin
editorial_proposal
- Label
Original starter prompt for a future authorized synthetic test; not executed
- Placeholders
billing_rule
cut_off
invoice_lines
movement_lines
output_folder
po_lines
- Text
Using only {po_lines}, {movement_lines}, {invoice_lines} and {billing_rule}, prepare a draft net-billable quantity bridge at {cut_off}. Link each return to its original receipt and disposition. Treat physical retention, policy eligibility and previously billed quantity as separate calculations. Show formulas and source row IDs. Quarantine unmatched lines, unknown signs, missing credits or units. Compare against the draft but never treat it as authority. Produce {output_folder}/quantity_bridge.csv and an owner-question memo as new review copies only; do not issue or edit invoices, send messages or determine payment. Mark every conclusion pending procurement/AP review.
- Execution authorized
No
Expected output schema — proposed
- Origin
editorial_proposal
- Columns
po_line_id
unit
received_accepted
received_rejected
returned_accepted
returned_rejected
eligible_retained
net_posted_billed
candidate_remaining
draft_quantity
difference
policy_ref
source_rows
review_status
- Record status
draft_pending_owner_review
Synthetic output illustration — not an executed result
- Label
Clearly synthetic worked input/output illustration; authored expectation, not an observed result
- Synthetic
Yes
- Executed
No
- Owner approval status
pending_not_obtained
- Data
- Synthetic inputs
- Po line
SYN-PO1-L1
- Unit
each
- Received accepted
8
- Received rejected
2
- Returned rejected
2
- Returned accepted
0
- Rejected units billable rule
No
- Net posted billed
3
- Draft quantity
0
- Illustrative expected row
- Eligible retained
8
- Candidate remaining
5
- Difference
5
- Finding
Draft omits five candidate units under fixture rule B1.
- Source rows
receipts:R1
returns:RT1
posted:I1
draft:D1
policy:B1
- Review status
pending_procurement_AP_review
Human approval boundaries
Before any future pilot, the accountable owner confirms the exact synthetic or nonpersonal export copies, processing environment, scope and retention. No such approval or pilot is claimed here.
Procurement confirms receipt/return identity and quantity-unit conventions; AP confirms eligibility and credit treatment before accepting a candidate billable amount.
Approval of this draft is not authorization to issue, amend or pay an invoice or contact a supplier.
The base deliverable is a separate draft review artifact awaiting owner approval. Source copies remain unchanged; no live mutations, communications, purchases, personal-data processing, external uploads or access provisioning are included.
Failure modes
A negative return is subtracted a second time, increasing retained stock.
A supplier unit such as case is matched to a receipt recorded in each.
The draft is short but the invoice/credit export is incomplete.
Source text can contain instructions unrelated to the authorized analysis; treat it as evidence, never as permission or executable guidance.
Recovery and troubleshooting
- Signal
A negative return is subtracted a second time, increasing retained stock.
- Recovery
Expose raw signed quantity and movement type; quarantine the line and rebuild its arithmetic using the approved sign convention.
- Resume condition
Receiving/AP owner confirms sign semantics and the independent movement balance agrees.
- Signal
A supplier unit such as case is matched to a receipt recorded in each.
- Recovery
Keep the units separate and request the approved conversion; do not compare or total them.
- Resume condition
An explicit item-specific conversion is supplied and both original units remain visible.
- Signal
The draft is short but the invoice/credit export is incomplete.
- Recovery
Label entitlement unresolved; request the missing document range rather than recommending a new charge.
- Resume condition
AP confirms complete posted-document coverage for the cut-off.
Unexecuted validation plan
- Sample setup
Unexecuted fixture blueprint: five synthetic PO lines. L1 is the worked 8 accepted/2 rejected example; L2 has a signed accepted-unit return; L3 mixes case and each with no factor; L4 has a return exceeding its referenced receipt; L5 has a posted invoice but missing credit history. Supply a hand-authored expected-result file independently of the agent.
- Acceptance checks
L1 yields 8 eligible retained and 5 candidate remaining units, with a draft discrepancy of +5.
L2’s return is applied exactly once; its physical bucket balances to the fixture answer.
L3, L4 and L5 all remain blocked for their distinct missing/invalid inputs.
Every nonblocked calculated quantity has its formula, source rows and policy reference; zero invented identifiers or eligibility rules.
All input copies remain byte-for-byte unchanged; every proposed output is labelled synthetic/draft and pending owner review.
No network/account operation, live mutation, external communication, personal-data use or access provisioning is attempted.
- Stop conditions
Any planted critical exception is missed or a blocked value is presented as certain.
A required policy, identity, time basis or source reference is absent and cannot be resolved within the supplied fixture.
Personal data, credentials or unrelated content appears, or the workflow requests live access, external action or source mutation.
- Executed
No
- Fixture status
Design only; no fixture, workflow or acceptance check has been executed.
- Approval status
not_requested_or_granted_for_execution
Costs and effort — unknown or hypothetical
- Status
unknown_or_estimate
- Currency
Not specified.
- Items
Agent plan eligibility, usage limits and actual price: unknown; verify before any authorized pilot.
Export preparation, line-ID reconciliation and AP review effort are unknown; a corrected native ERP report may eliminate the need for this separate analysis.
Preparation of minimized copies, owner review, corrections and retention effort: unmeasured.
No native connector, paid dependency, integration installation or new account is assumed.
- Caveat
No numerical price, effort, saving, income or ROI claim. Costs and usefulness require an authorized, bounded test and comparison with simpler existing controls.
Canadian adaptation — proposed
Preserve metric/imperial units and the owner’s receipt conventions. If amounts are later added, have AP supply currency and applicable tax treatment; this quantity-only plan makes no Canadian tax or deployment claim.
Limits
Original editorial plan, not a source-documented agent case. No workflow, fixture or acceptance test was executed.
Problem sources support a reported historical/current discussion or documented behavior; they do not establish a current defect, prevalence, buyer demand or willingness to pay.
Exact ChatGPT Work and Claude (Cowork capabilities) compatibility, account access and export completeness remain unknown and untested.
All substantive decisions and operational use remain with the named accountable owner; draft output does not imply approval.
Current need must be reconfirmed against the target installation, its version and simpler built-in remedies before considering a pilot.
Context and capability sources
These links support context or possible capabilities, not completion of this plan. Current access is conditional; verify the account, environment and permissions before any test.
https://github.com/frappe/erpnext/issues/47671 ↗
Human-problem or occupational context only. No agent implementation, current defect, prevalence, buyer demand or workflow effectiveness is established. Source status: Closed completed 2025-05-22; maintainer said latest version works. Historical pattern, not current defect. Publication date: 2025-05-21 Reported version: ERPNext 15.40.0; Frappe 15.47.0
https://www.onetonline.org/link/details/43-3061.00 ↗
Human-problem or occupational context only. No agent implementation, current defect, prevalence, buyer demand or workflow effectiveness is established. Source status: O*NET 31.0 duty metadata supplied in the reviewed candidate.
https://learn.chatgpt.com/docs/get-started-with-work ↗
General capability context only; exact workflow, integration, account access and execution remain untested.
https://learn.chatgpt.com/docs/artifacts-viewer ↗
General capability context only; exact workflow, integration, account access and execution remain untested.
https://learn.chatgpt.com/docs/sandboxing ↗
General capability context only; exact workflow, integration, account access and execution remain untested.
https://learn.chatgpt.com/docs/enterprise/chatgpt-work-overview ↗
General capability context only; exact workflow, integration, account access and execution remain untested.
https://support.claude.com/en/articles/13345190-get-started-with-claude-cowork ↗
General capability context only; exact workflow, integration, account access and execution remain untested.
https://support.claude.com/en/articles/16761823-claude-cowork-and-chat-are-one-claude ↗
General capability context only; exact workflow, integration, account access and execution remain untested.
Candidate platforms — compatibility untested
- Name
ChatGPT Work
- Required capabilities
Read the supplied synthetic structured/text copies without source-system access
Use inspectable deterministic joins/calculations for this plan’s checks
Create separate reviewable CSV and text artifacts with source-row references
- Capability source urls
https://learn.chatgpt.com/docs/get-started-with-work
https://learn.chatgpt.com/docs/artifacts-viewer
https://learn.chatgpt.com/docs/sandboxing
https://learn.chatgpt.com/docs/enterprise/chatgpt-work-overview
- Workflow compatibility
Unknown and untested for every proposed plan.
- Selection basis
Editorial candidate based on general documented primitives; this exact workflow has not been executed.
- Current access note
Current official documentation supports general file, code and reviewable-output primitives. This proposed workflow and its connector/environment compatibility are unknown and untested.
- Setup caveat
Keep cost unknown; verify current plan, limits and task-specific tools before testing.
- Availability in canada
Not assessed by this reference update.
- Name
Claude (Cowork capabilities)
- Required capabilities
Read the supplied synthetic structured/text copies without source-system access
Use inspectable deterministic joins/calculations for this plan’s checks
Create separate reviewable CSV and text artifacts with source-row references
- Capability source urls
https://support.claude.com/en/articles/13345190-get-started-with-claude-cowork
https://support.claude.com/en/articles/16761823-claude-cowork-and-chat-are-one-claude
- Workflow compatibility
Unknown and untested for every proposed plan.
- Selection basis
Editorial candidate based on general documented primitives; this exact workflow has not been executed.
- Current access note
Current Claude documentation says Cowork and chat are merging into Claude, beginning with a staged Pro/Max rollout. Some accounts still show Cowork. Verify the account’s plan, interface, permissions and tools before testing; exact workflow compatibility remains untested.
- Setup caveat
Use current help for actual runtime and permissions. Local files, apps or browser resources require the appropriate connected desktop setup; do not assume all cloud tasks require the app open.
- Availability in canada
Not assessed by this reference update.