Purchase Return (Internal)
Send goods back to a supplier. Finalising takes the quantity out of stock and lowers the supplier’s balance, but it leaves a balance that finance still has to close, by contra against the supplier’s invoices or by a settlement when the supplier refunds cash.
Your job, and the screen for it
| The job | Screen or tab | Read |
|---|---|---|
| Return goods to a supplier from the invoice or GRN they came in on — leave the over-return guard on, and still compare the Lines tab with the source before FINAL, because the guard does not cover every path | Purchase Return › create, Search tab (Search By Invoice, Search By GRN) | Create screen |
| Take the stock out where it really is — every line leaves from the header’s Delivery Location (or its Location when no delivery location is set); saving replaces whatever location a line carried, including one copied from the source invoice or GRN | Main Details tab (Location, Delivery Location) | Create screen; Troubleshooting |
| Post the return — key a price on any zero-priced line first, because the return price re-prices the stock you keep | FINAL | Lifecycle and effects |
| Close the balance the return leaves — contra it against the supplier’s invoices, or record the supplier’s cash refund | Contra tab; Settlement tab — its method needs a cashbook with a GL code, or the return goes FINAL with no journal | Settlement, Contra, Delivery Details, Department Hdr |
| Submit a return to LHDN as a self-billed credit note — on a DRAFT SELF-BILLED only sets the flag; on a FINAL return it queues submission, refused unless e-Invoice is Enabled | SELF-BILLED on the listing | Document behaviour settings |
| Set up locations, the creditor and purchase-return GL codes, and return reasons | Organisation and Chart of Account applets; Settings › Return Reasons Settings (a tenant-wide list: an edit reaches every screen that uses it) | Before you can use it |
Overview
The Purchase Return (Internal) applet records goods going back to a supplier. Finalising one does three things at once: it takes the returned quantity out of stock at the chosen location, posts Dr Creditor / Cr Purchase Return so the supplier’s balance falls, and leaves a positive ARAP balance that finance closes by contra against the supplier’s invoices or by a settlement when the supplier refunds cash. Warehouse and procurement staff create it, usually by pulling lines from the original purchase invoice or GRN; finance closes it.
Engine document type INTERNAL_PURCHASE_RETURN, amount signum +1, quantity signum −1. It is the stock-moving counterpart of the Purchase Debit Note (Internal), which has the same amount sign but never touches stock.
Where it fits
| Position | Document / applet | Why |
|---|---|---|
| Module | Purchasing, Inventory, Financial Accounting, E-Invoice | Stock out, GL posting, and an e-Invoice purchase document type. |
| Upstream | Purchase Invoice (Internal), Purchase Invoice No Stock In (Internal), Purchase GRN (Internal) | The Search tab (Search By Supplier / By Invoice / By GRN / By Purchase Invoice No Stock In) copies their lines, links the documents, and — with WARN_EXCESS_RETURN_QUANTITY on — caps the return quantity at the source line on every grid but one (see Create screen). |
| Upstream (knock-off) | Purchase GRN (Internal), Purchase Order (Internal), Purchase Requisition, Supplier Delivery Order, Purchase Invoice (Internal) | The create screen’s KO For tab, one sub-tab for each. |
| Downstream | Payment Voucher (Internal), the Contra and Settlement tabs | Close the return’s ARAP balance. |
| Downstream | Purchase Refund Note (Internal) | Cash refund from the supplier recorded as its own document. |
| Downstream | Creditor Report | Shows the return’s balance against the supplier. |
| Downstream | My E-Invoice Admin | INTERNAL_PURCHASE_RETURN is in the e-Invoice purchase-document set. An ordinary FINAL return, in a company whose e-Invoice status is Enabled and for a supplier with a tax ID, goes to the purchase-document matching queue, to be matched with the e-Invoice the supplier issues. |
| Intercompany | Sales Return (Internal) | Intercompany processing pairs INTERNAL_PURCHASE_RETURN → INTERNAL_SALES_RETURN (and the reverse); the Intercompany menu is the manual confirmation queue. |
| External | Purchase Return Supplier Access (Internal) | Supplier-facing view. |
Screens and menus
| Menu | Route | What it is |
|---|---|---|
| Purchase Return | purchase-return | Listing, create, edit. Bulk FINAL, DISCARD, VOID, SINGLE/MULTIPLE PRINT and SELF-BILLED (sets the return’s self-billed flag). The listing’s Linked Doc No (Tenant / Company / Branch) columns name the source documents linked to each return, such as the invoice or GRN its lines were copied from (HIDE_DOCUMENT_LINKS hides them, except from a user holding SHOW_DOCUMENT_LINKS). |
| Line Items | line-items | Cross-document line grid. Opening a line shows Item Details (with its Doc Link sub-tab of related documents), the Serial Number, Batch Number or Bin Number tab for the item’s type, Costing Details, Pricing Details and Issue Link; in the stacked-panel layout most of them can be hidden by their own HIDE_* setting, while Doc Link can be hidden in either layout. |
| File Export | file-export | Generate CSV exports the returns of a transaction-date range, not the listing’s filter; the file arrives in the list below (one file per 1,000 lines) — refresh, then download from Actions. While an earlier export is still running a new request is not queued, though the screen still says it is being generated: check that the new file appears. Hidden only when HIDE_FILE_EXPORT_MENU is on and the user lacks SHOW_FILE_EXPORT_MENU, and no screen of this applet offers that switch (see Applet settings), so unless the hide was stored another way (through the API, say) everyone who can open the applet sees the menu. The permission, which is not seeded here, only lets a user past the hide. |
| Intercompany | intercompany | Manual intercompany transaction queue. |
| Audit Trail | audit-trail | Change log. |
| Settings | settings/… | Opens on Feature Visibility. The side menu lists Application Settings, Default Selection, Printable Format Settings, Return Reasons Settings, Branch Settings, Workflow Settings and Custom Resource Bundle Configuration; Permission Wizard, Permission Set, User Permission and Role Permission; and Release Notes. Webhook, Client Side Permission, Team Permission, Role Pricing Scheme Link and Applet Log are screens of this applet with no menu entry — they open only by their address. |
| Personalization | personalization/… | Per-user Default Selection. (A Sidebar screen exists but has no menu entry.) |
There is no File Import menu in this applet, and the backend has no file importer of its own for purchase returns (sales returns, purchase credit notes and purchase debit notes have one). Key returns on screen.


Create screen
Tabs: Search, Main Details, Account, Lines, Delivery Details, Settlement, KO For (hidden by HIDE_KO_FOR_TAB), Department Hdr. There is no Contra tab until the return is saved — contra it from the edit screen. CREATE saves a DRAFT.
The Search tab is the recommended starting point. Its sub-tabs are Search By Supplier, Search By Invoice, Search By GRN (HIDE_SEARCH_BY_GRN), Search By Purchase Invoice No Stock In (shown only with SHOW_SEARCH_BY_PURCHASE_INVOICE_NO_STOCK_IN). There is no Search By Serial Number: it was taken out of the build, so find a serialised unit’s invoice first and search by that. Selecting a source line copies it and creates a document link.
The over-return guard, WARN_EXCESS_RETURN_QUANTITY, refuses a return quantity above what is left on the source line (Total return quantity is greater that the invoice qty). Leave it on unless you deliberately return goods beyond one invoice. It does not cover every path, and the server does not check the quantity at all:
- Checked with the switch on: lines selected on Search By Invoice, Search By GRN and Search By Supplier’s all-lines grids.
- Never checked: the lines of a single invoice opened from Search By Supplier (its check is switched off in the code) — compare the quantity with the invoice yourself, or pick the line from Search By Invoice instead.
- Checked whatever the switch: Search By Invoice (and Search By Purchase Invoice No Stock In, which opens the same grid) drops any selected line whose quantity, added to the lines for that item already on the return (hand-added ones included), is more than its invoice line has outstanding (Cannot add more than available quantity …), and adds the rest (a line with no return quantity stops the whole selection), so check which lines landed. Lines ticked together in one selection are each checked against what is already on the return, not against each other.
- Add All adds lines at their full outstanding quantity without the check. On Search By Invoice it skips an item this session already covers in full, but after a partial selection it adds the whole outstanding quantity again; on Search By GRN it has no session check, so a second press duplicates the lines. Check the Lines tab before you save.
- A quantity you change later on the line is not checked against the source again (only that it is at least 1, and FINAL’s stock checks).
A batch-tracked line now arrives with its batches filled from the source line, after the quantities earlier returns already took from each batch (returns saved before this change recorded no batches, so they are not subtracted).
FINAL then checks only that a line’s batch quantities add up to its quantity and that at least one of its batches has stock at the location — not that each batch holds enough — and skips a line that carries no batches at all. Check every chosen batch’s balance yourself, even when the line uses one.
A line pulled through Search By Invoice or Search By GRN shows that source line’s delivery branch and location — where the goods were received. Saving does not keep that location: the server sets every line’s location and delivery location to the header’s, so the whole return takes stock out of the header’s Delivery Location on Main Details, or its Location when no delivery location is set. Choosing a header Location also fills the Delivery Location (unless HIDE_DELIVERY_LOCATION hides that field), and a note appears when the two differ. Set the Delivery Location to where the goods really are before you save (see Lifecycle and effects).




Edit screen
Header buttons SAVE, FINAL, VOID and CLONE; DISCARD sits on the Main Details tab. On a FINAL foreign-currency return a BASE button also appears; it opens the return’s base-currency copy (when one was made), where FOREX leads back. On a tenant set to skip base-currency copies the button still shows but has no copy to open. VOID is not offered here at all while the company’s e-Invoice status is Enabled — the listing’s VOID still is, and the server decides (see On VOID). CLONE is always shown (HIDE_CLONE_BUTTON is read but nothing applies it) and creates a new draft from this return, waiting up to about six seconds for it to appear.
Tabs, ordered by Default Selection → Details Tab Ordering: Search, Main Details, E-Invoice, Account, Lines, ARAP, Delivery Details, Settlement, Department Hdr, Trace Document, Contra, Doc Link, Export, Attachments. ARAP, Contra, Doc Link, Export and Attachments each have a hide key on the edit screen’s gear (shown once Enable Inline Applet Config is on); the Contra hide also hides Trace Document.





Configuration
Before you can use it
| Prerequisite | Where | Why |
|---|---|---|
| Company, branch, location | Organisation | Branch and location are required. Stock is deducted at the header’s Delivery Location, or at its Location when no delivery location is set: on every save the server overwrites each line’s location and delivery location with the header’s (a document-level switch can let lines differ, but this applet never sets it), so a location copied onto a line from an invoice or GRN does not survive. Use a dedicated returns location if you want returned stock separated, and set it as the return’s Delivery Location. |
| Supplier entity | Supplier | The AR/AP object type selects CREDITOR or CREDITOR_NON_TRADE (an employee or merchant payable type posts to the employee or merchant payable code instead). With ENABLE_BRANCH_FILTER on, lines taken from Search By Supplier’s all-lines grid are refused (Supplier not linked to branch: …) when the supplier is not linked to the invoice’s branch. |
| Stock on hand at the location | Inventory Item Maintenance and the receiving documents | FINAL checks the item’s stock balance at the location the return takes stock from (the header’s Delivery Location, else its Location); There’s not enough stock for item … stops it. Batch and bin balances are not checked one by one (see Create screen): check them yourself. |
| Company default GL codes | Chart of Account → company GL-code links | CREDITOR / CREDITOR_NON_TRADE (mandatory), PURCHASE_RETURN for lines without their own GL code, INPUT_TAX. A goods line for which no purchase-return code resolves, or a line’s tax when no INPUT_TAX code with a sub-ledger is linked, is left out of the journal without an error, and the creditor entry is worked out from the lines that remain — compare the first return’s journal with its total. |
| Items with purchase-return GL links | Doc Item Maintenance | Line GL code: header GL code → item-company PURCHASE_RETURN link → company default. An Account Code or GL Code item gets no company default: with no GL code on the line or linked to the item, the server refuses the save and FINAL (Item … has no linked GL Code. Link a GL Code in Doc Item Maintenance …). |
| Return reasons | This applet → Settings → Return Reasons Settings (Reason Code, Reason Name) | The Reason field on Main Details. |
| Tax codes | Tax Configuration | Line tax and WHT. |
| Cashbook / settlement methods | Cashbook | Only for Settlement-tab refunds. A settlement line with no GL code of its own, whose method has no sub-ledger and no cashbook (or a cashbook with no GL code), does not stop FINAL: the journal posting that runs after it fails (MISSING_CASHBOOK / MISSING_GL_CODE: STL_MTHD) and the return is FINAL with no journal. |
| Fiscal period open | Ledger And Journal | FINAL refused in a locked period. |
| Workflow (optional) | Settings → Workflow Settings (Process Code, Server Doc Type, Company) and WORKFLOW_PROCESS_GUID | Attaches a workflow process and status to new documents. |
| e-Invoice setup | My E-Invoice Admin | Only if returns must be submitted. Skip flags (document, branch, supplier) stop automatic submission only: an ordinary return still enters the matching queue, and SELF-BILLED on a FINAL return queues it regardless (with e-Invoice Enabled). |
| Permissions | Permission Wizard / Set; Client Side Permission (a screen with no menu entry in this applet) | Server-side create / read / update / delete on INTERNAL_PURCHASE_RETURN with targets. |
Applet settings
Settings → Default Selection:
| Setting | What it controls | Default | Effect when changed | Who can change it |
|---|---|---|---|---|
DEFAULT_BRANCH, DEFAULT_LOCATION (derived DEFAULT_COMPANY) | Branch and location pre-selected on new returns. | none | New returns open with them; personal defaults override. | Tenant admin with the applet’s Settings menu |
DEFAULT_PURCHASE_RETURN_PRICING_OPTION — “Purchase Return Pricing Option” | The price a line added by hand starts with: LAST_PURCHASE_PRICE (the net unit price on this company’s latest purchase invoice line for the item, by transaction date — the lookup does not check the invoice’s posting status, so a later draft or voided invoice can supply the price; read the pre-filled price before you save), MA_COST (the moving-average cost recorded on that same invoice line), PURCHASE_INVOICE_PRICE, or REPLACEMENT_UNIT_PRICE (see below the table). None does not mean the user chooses per line: it hands the decision to the supplier’s own return-pricing option, then the company’s, and falls back to LAST_PURCHASE_PRICE if neither is set. | none | Applies only when a line is first added by hand; editing a line never re-prices it, and the price stays editable. If no purchase invoice for the item is found, nothing is filled and you type the price. Read the two cautions below the table before you rely on a pre-filled price. PURCHASE_INVOICE_PRICE fills nothing on this path, because a hand-added line has no invoice to take a price from. Lines brought in through the invoice search ignore this setting and carry the invoice line’s own price. | Same |
PURCHASE_RETURN_PRICE_FILTER_BY_SUPPLIER | When looking up the last purchase price or moving-average cost for a hand-added line, restrict to invoices of the same supplier. | on (unset = filter) | Off: any supplier’s last price is used. | Same |
DATE_TXN_LOGIC — “Transaction Date Logic” | Which date becomes the transaction date at FINAL: USE_FINAL (Finalized Date), USE_CREATED, USE_UPDATED, USE_DATE_TXN (keep the keyed date). | ADJUSTED (stored default; behaves as keyed date) | Sent with the FINAL request; only applies when the header’s use transaction date flag is off. | Same |
PURCHASE_RETURN_DETAILS_TAB_ORDER | Drag-and-drop order of the 14 edit tabs. | code order | Re-orders for everyone. | Same |
Two cautions on a pre-filled return price. REPLACEMENT_UNIT_PRICE takes the replacement unit price, before tax, from the pricing scheme the line selects, and follows it when you pick another scheme; a scheme with no replacement price leaves the scheme’s ordinary price in place. Whichever option fills the price:
- It is not converted. The lookup takes the number in whatever currency that invoice was in, so check a pre-filled price on a foreign-currency return.
- It is written in as the line’s total including tax (price × quantity). For one unit with a 6% tax code already on the line, a RM 100 price gives a total of RM 100, a net of about RM 94.34 and a discount for the difference. With
DISABLE_EDITING_AMOUNT_TXNon, the price and total are still written in, but net, tax and discount are not worked out again from them, so they can disagree with the total. Check net, tax and total before you save.

Application Settings
Settings → Application Settings (shared field-configuration screen; toggles labelled by key, default off). Keys this applet reads:
Nine of them have no switch on that screen for this applet: HIDE_FILE_EXPORT_MENU, HIDE_CURRENCY, HIDE_BASE_CURRENCY, HIDE_CREDIT_TERMS, HIDE_REFERENCE, HIDE_REMARKS, MANDATORY_REMARKS_FIELD, and the two price-column hides on the source-line grids, HIDE_PRICE_LISTING and HIDE_RETURN_PRICE_LISTING. The first seven’s switches are drawn only for a differently spelled applet code that no installed applet carries; the two price hides sit in the screen’s Search section, which it does not draw for this applet at all. So you will look for them in vain. Five of the nine — the currency, base currency, credit terms, reference and remarks hides — can still be set from the gear on Main Details, which appears once Enable Inline Applet Config is on (an owner or admin changes the tenant-wide value there). HIDE_FILE_EXPORT_MENU, MANDATORY_REMARKS_FIELD and the two price hides cannot be set from this applet at all: accept that File Export is open to every user of the applet unless the hide was stored some other way, such as through the API (the SHOW_FILE_EXPORT_MENU permission can only re-open a hidden menu, never close it), make remarks a working rule rather than a field rule, and accept that the source-line grids show prices to anyone who can open the search — no gear on those grids offers the hides either.
| Group | Keys | What they control |
|---|---|---|
| Listing | DEFAULT_POSTING_STATUS, DEFAULT_STATUS, DEFAULT_TRANSACTION_DATE, SORT_ORDER, FUZZY_SEARCH_COLUMNS, DISABLE_GEN_DOC_LISTING, PRINTABLE, ENABLE_AUTO_POPUP | Default filters, sort, fuzzy search, default printable format, PDF pop-up on FINAL. In the document the pop-up opens when the save that precedes the posting succeeds, so it can open even when FINAL is then refused; from the listing, bulk FINAL starts the PDF straight after sending the requests, without waiting for their result — check the posting status, not the PDF. |
| Menus and buttons | HIDE_FILE_EXPORT_MENU, HIDE_GENDOC_FINAL_BUTTON, HIDE_GENDOC_VOID_BUTTON, HIDE_GENDOC_DISCARD_BUTTON, HIDE_GENDOC_SAVE_BUTTON | Restored per user by SHOW_FILE_EXPORT_MENU, SHOW_GENDOC_FINAL_BUTTON, SHOW_GENDOC_VOID_BUTTON, SHOW_GENDOC_DISCARD_BUTTON. |
| Search tab | HIDE_SEARCH_BY_SUPPLIER, HIDE_SEARCH_BY_GRN, SHOW_SEARCH_BY_PURCHASE_INVOICE_NO_STOCK_IN, SHOW_INVOICES_FROM, HIDE_PRICE_LISTING, HIDE_RETURN_PRICE_LISTING, WARN_EXCESS_RETURN_QUANTITY | Which search sub-tabs appear, how far back invoices are listed, whether price columns show in the source-line grids (the two price hides have no switch in this applet — see above), and whether over-returning is blocked. |
| Header fields | HIDE_SERVER_DOC_1..3, HIDE_CLIENT_DOC_TYPE, HIDE_CLIENT_DOC_1..5, HIDE_LOCATION, HIDE_CREDIT_TERMS, HIDE_REASON, HIDE_REFERENCE, HIDE_REMARKS, MANDATORY_REMARKS_FIELD, HIDE_CURRENCY, HIDE_BASE_CURRENCY, SHOW_FOREX_DATA_SOURCE, CANNOT_EDIT_CURRENCY_RATE, HIDE_CREATED_BY_DETAILS, HIDE_EXTERNAL_QUOTATION, HIDE_EXTERNAL_ORDER, HIDE_EXTERNAL_DELIVERY_ORDER, HIDE_EXTERNAL_INVOICE, HIDE_EXTERNAL_OTHERS, ENABLE_EMPLOYEE_LOGIN_AUTO_DETECTION, WORKFLOW_PROCESS_GUID, DEFAULT_CURRENCY, DEFAULT_DECIMAL_PRECISION | Main Details visibility; mandatory remarks; purchaser auto-fill; workflow attached to new documents. HIDE_SERVER_DOC_1..3 hide the matching Doc No field on Main Details and the matching Doc No (Tenant / Company / Branch) column on the listing; a user holding the matching SHOW_DOC_NO_* permission still sees both. |
| Account tab | ENABLE_SELECT_MODE, ENABLE_BRANCH_FILTER, HIDE_SUPPLIER_CODE, HIDE_PHONE_NUMBER, HIDE_EMAIL, HIDE_SIC_CODE_AND_BUSINESS_ACTIVITY_DESCRIPTION, HIDE_E_INVOICE_TAB | Supplier picker (create/edit inline needs ALLOW_TO_CREATE_EDIT_ACCOUNT) and supplier sub-tabs. |
| Lines | HIDE_QTY_BASE, HIDE_QTY_UOM, HIDE_UOM_TO_BASE_RATIO, HIDE_UNIT_PRICE_STD_*, HIDE_UNIT_PRICE_NET_*, HIDE_UNIT_PRICE_TXN, HIDE_UNIT_PRICE_TXN_UOM_INCL_TAX, HIDE_UNIT_DISCOUNT, HIDE_UNIT_DISCOUNT_UOM_EXCL_TAX, HIDE_AMOUNT_STD_EXCL_TAX, HIDE_DISCOUNT_AMOUNT_EXCL_TAX, HIDE_AMOUNT_NET_EXCL_TAX, HIDE_AMOUNT_TXN, HIDE_SST_VAT_GST_AMOUNT, HIDE_TOTAL_SST_VAT_GST_AMOUNT, HIDE_TOTAL_TXN_AMOUNT, HIDE_TAX_CONFIG_SELECTION, HIDE_WHT_CONFIG_SELECTION, HIDE_COSTING_DETAILS, HIDE_PRICING_DETAILS, HIDE_DELIVERY_DETAILS, HIDE_DELIVERY_INSTRUCTION, HIDE_ISSUE_LINK, HIDE_RELATED_DOCUMENTS, HIDE_BATCH_NUMBER, HIDE_BATCH_EXPIRY_DATE, HIDE_BATCH_ISSUE_DATE, HIDE_BIN_NUMBER, HIDE_SERIAL_NUMBER, HIDE_DEPARTMENT, ENABLE_EDITING_UNIT_PRICE_STD, DISABLE_EDITING_AMOUNT_TXN, ENABLE_ITEM_NAME_MAX_LIMIT + ITEM_NAME_MAX_LIMIT, DISABLE_ITEM_LISTING, SHOW_ITEM_STOCK_BALANCE | Line grid columns and sub-panels; stock balance column in the item picker. |
| Delivery / settlement / tabs | HIDE_DELIVERY_DETAILS_TAB, HIDE_DELIVERY_BRANCH, HIDE_DELIVERY_LOCATION, HIDE_SETTLEMENT_TAB, ENABLE_EDIT_SETTLEMENT_DATE, HIDE_KO_FOR_TAB, HIDE_DEPARTMENT_HDR_TAB, HIDE_ARAP_PNS, HIDE_ARAP_SETTLEMENT, HIDE_ARAP_DOC_OPEN, HIDE_ARAP_CONTRA, HIDE_ARAP_BAL | Tab and ARAP-figure visibility; settlement date editable. |
| Layout | VERTICAL_ORIENTATION, DEFAULT_ORIENTATION | Tabs vs stacked panels. |



Document behaviour settings
| Behaviour | Where it is set | Notes |
|---|---|---|
| Return pricing | DEFAULT_PURCHASE_RETURN_PRICING_OPTION, PURCHASE_RETURN_PRICE_FILTER_BY_SUPPLIER. | Lines pulled from an invoice carry the invoice price; a known rounding case (unit price × quantity ≠ invoice line amount) can make Add All post a few sen less than the invoice — check the total against the source. |
| Over-return guard | WARN_EXCESS_RETURN_QUANTITY. | Blocks a return line whose quantity, added to what earlier returns took from the source line, exceeds it — on Search By Invoice, Search By GRN and Search By Supplier’s all-lines grids. Lines picked from one invoice opened under Search By Supplier are never checked, and neither the server nor FINAL checks the quantity. Off, only Search By Invoice’s own outstanding-quantity check is left (see Create screen). |
| Transaction date | DATE_TXN_LOGIC. | See Default Selection. |
| Return reasons | Settings → Return Reasons Settings — Reason Code, Reason Name. | Feeds the Reason field; hide with HIDE_REASON. The list is the tenant’s shared service return-reason list, not one kept for this applet, so editing or removing a reason here changes it for every screen that uses that list. |
| Printables | Printable Format Settings; PRINTABLE; Branch Settings → Printable Format. | The Export tab and bulk print; the usual layout is a debit note to the supplier. |
| Workflow | Workflow Settings + WORKFLOW_PROCESS_GUID. | New documents get the process; status and resolution shown on Main Details. |
| e-Invoice | E-Invoice tab; SELF-BILLED bulk action; skip flags. | A purchase return is submitted to LHDN only as a Self-billed Credit Note (type 12), and only when its self-billed flag is set; without the flag it maps to no e-Invoice type. SELF-BILLED on a DRAFT only sets the flag; on a FINAL return it also queues the return for submission and is refused unless the company’s e-Invoice status is Enabled. Use it when the supplier does not issue e-Invoices. A self-billed return can never be voided (see On VOID). (Its success message says Self Billed Invoice.) |
| Email templates | Not available in this applet (no Email Template settings page). | |
| File import | Not exposed in this applet’s UI. | |
| Webhooks | The Webhook settings screen. | It has no entry in this applet’s Settings menu; it opens only by its address. |


Branch settings
| Sub-tab | What it controls |
|---|---|
| Branch Details | Read-only Branch Name / Code / Company; Sales Agent (default purchaser); Rounding Five Cent + rounding item; Group Discount Item. |
| Item Category Filter | Item categories offered at this branch. |
| Pricing Scheme | Branch pricing schemes. |
| Printable Format | Branch default printable format. |
| Default Settlement Method | Pre-selected settlement method on the Settlement tab. |
There is no Menu List sub-tab: it was taken out of this build.
Who can change what
Server-side: INTERNAL_PURCHASE_RETURN create / read / update / delete with targets. A role scoped to one branch must also carry the branch target, or the listing filter shows every branch (a 2026 support case).
Client-side permissions seeded for this applet:
| Group | Permission codes |
|---|---|
| Buttons / menus | SHOW_GENDOC_FINAL_BUTTON (seeded); SHOW_GENDOC_DISCARD_BUTTON, SHOW_GENDOC_VOID_BUTTON, SHOW_FILE_EXPORT_MENU are checked in code but not seeded — ask BigLedger to add them to this applet’s permission list if you need them; Client Side Permission only grants codes already on it. |
| Header | SHOW_DOC_NO_TENANT, SHOW_DOC_NO_COMPANY, SHOW_DOC_NO_BRANCH, SHOW_TRANSACTION_DATE, SHOW_CLIENT_DOC_TYPE, SHOW_CLIENT_DOC_1..5 |
| Lines and pricing | SHOW_QTY_BASE, SHOW_QTY_UOM, SHOW_UOM_TO_BASE_RATIO, the SHOW_UNIT_PRICE_* set, SHOW_UNIT_DISCOUNT, SHOW_UNIT_DISCOUNT_UOM_EXCL_TAX, SHOW_DISCOUNT_AMOUNT_EXCL_TAX, SHOW_AMOUNT_STD_EXCL_TAX, SHOW_AMOUNT_NET_EXCL_TAX, SHOW_AMOUNT_TXN, SHOW_AMOUNT_TXN_MAIN_LISTING, SHOW_TOTAL_TXN_AMOUNT, SHOW_TOTAL_SST_VAT_GST_AMOUNT, SHOW_TAX_CONFIG_SELECTION, SHOW_WHT_CONFIG_SELECTION, SHOW_LAST_PURCHASE_PRICE, SHOW_COSTING_DETAILS |
| Account | ALLOW_TO_CREATE_EDIT_ACCOUNT |
| Also checked in code, not seeded | SHOW_SERIAL_NUMBER, SHOW_ARAP_PNS, SHOW_ARAP_SETTLEMENT, SHOW_ARAP_DOC_OPEN, SHOW_ARAP_CONTRA, SHOW_ARAP_BAL, EXCLUDE_ACCOUNT_CODE_ITEM_TYPE_AT_ITEM_SEARCH |
Fields
Main Details
| Field | Meaning | Required | Notes / validation |
|---|---|---|---|
| Branch, Location; Delivery Branch, Delivery Location | Branch, the header location, and where the goods leave from. | Branch and Location yes; the delivery pair no | Every line takes stock out of the Delivery Location, or out of the Location when no delivery location is set — saving copies the header’s values onto every line. Picking a Location also fills the Delivery Location; a note warns when they differ. Stock balance is validated where the stock leaves. |
| Company | Owning company. | System | Follows the branch you pick, and changes with it. It decides whose company running number the return draws at FINAL, so a return raised under the wrong branch lands in the wrong company’s sequence. |
| Purchaser | Responsible employee. | No | Auto-fill with ENABLE_EMPLOYEE_LOGIN_AUTO_DETECTION; branch default Sales Agent. |
| Doc No (Tenant / Company / Branch) | Running numbers. | System | Not given at the same moment. The tenant number is drawn when the return is first saved; the company and branch numbers only when it is made FINAL, from the company and branch it has then. A draft therefore has a tenant number and blank company and branch numbers — that is expected, not a fault. Which of the three show is per SHOW_DOC_NO_*. |
| Transaction Date | Return date. | Yes | May be replaced at FINAL per DATE_TXN_LOGIC; must be in an open fiscal period. |
| Credit Terms | Supplier terms. | No | The list is the supplier’s own credit terms from its record, and the field stays locked for a supplier that has none. The choice is stored on the return’s copy of the supplier details. |
| Reason | Return reason from Return Reasons Settings. | No | HIDE_REASON. |
| Reference, Remarks | Free text. | Remarks with MANDATORY_REMARKS_FIELD | |
| Currency, Base Currency, Currency Rate, Forex Source | Document currency. | Currency yes | Returns keep the source invoice’s currency; rate locked by CANNOT_EDIT_CURRENCY_RATE. |
| Client Doc Type, Client Doc 1–5; External Quotation / Order / Delivery Order / Invoice / Others | References. | No | Client Doc Type and Client Doc 1–5 are read-only on this screen and appear only on a return you open, not on a new one; saving keeps whatever is already stored. The five External references are the ones you type. They are hidden until you switch their Hide setting off in Field Settings — the switches start on. |
| Workflow Status, Workflow Resolution | Workflow fields. | System | Shown when a workflow is attached. |
Account
| Field | Meaning | Required | Notes |
|---|---|---|---|
| Supplier | Entity flagged as supplier. | Yes at FINAL | Copied from the source document when the Search tab is used. |
| Entity branch, Bill To, Ship To, e-Invoice identity | Supplier details. | No | A copy of the supplier’s details kept on the return; the server fills it only when it arrives empty and never refreshes it, so editing the supplier afterwards does not change it. If the return is e-invoiced, the supplier block of the e-invoice is built from the supplier record at that moment, not from this copy — so correct identity details on the supplier, not here. |
Lines
| Field | Meaning | Required | Notes / validation |
|---|---|---|---|
| Item | Returned item. | Yes | Copied from the source line with a document link. |
| Quantity (return qty) | Units going back. | Yes | Please Enter a valid Return Qty; capped by the source line with WARN_EXCESS_RETURN_QUANTITY when it is picked on most search grids, never when you edit it on the line afterwards; FINAL checks stock where the line takes it from. |
| Serial number, batch, bin | Stock identifiers. | When the item is serialised / batched | Please Select Serial Number; the batch must exist at the location the return takes stock from. A line pulled from an invoice or GRN arrives with the source line’s batches already split to the return quantity. Missing serials are not highlighted in older builds. |
| Unit price, discounts, amounts | Value of the return. | Yes for non-GL items | Priced by the pricing option; standard price editable with ENABLE_EDITING_UNIT_PRICE_STD. |
| Tax code / %, WHT code / % | Taxes. | No | Tax posts to INPUT_TAX. |
| GL code | Line GL override. | No | Wins over every mapping. A line with a GL code posts there. A goods line without one posts to the document’s own GL code if one was set on it, then to the item’s GL code for returns in that company, and failing both to the company’s default for returns. An override does not follow later changes to either mapping. |
A line’s Segment, Dimension, Profit Centre and Project, its delivery details and instruction, and its remarks are optional. On the journal, a line tag left blank takes the header’s value from Department Hdr, and the line’s branch falls back to the header branch the same way — so set a tag on the header when it is true for the whole return, and on a line only where that line differs.
Settlement, Contra, Delivery Details, Department Hdr
| Tab | Fields | Notes |
|---|---|---|
| Settlement | Settlement method (cashbook), amount, date, remarks. | Supplier refund received; date editable with ENABLE_EDIT_SETTLEMENT_DATE; total settlement, document open and ARAP balance shown. |
| Contra | Target purchase invoice, amount, date. | Offsets the return against the supplier’s outstanding invoices. |
| Delivery Details | Per-line tracking ID, delivery branch, delivery type and delivery location, applied to the lines in the grid. | A delivery location set here does not survive the save: the server replaces it with the header’s (see Main Details). The header’s own Delivery Branch and Delivery Location, on Main Details, can be replaced but not cleared once set — a blank keeps the previous value. |
| Department Hdr | Segment, Dimension, Profit Centre, Project. | Header defaults for the journal. |
Lifecycle and effects
| Status | Meaning | Allowed next |
|---|---|---|
| DRAFT | Editable; no stock, journal or ARAP. | FINAL, DISCARDED |
| FINAL | Posted; ARAP open. Stock out and journal are written by follow-on jobs just after — check Trace Document, not the status, to see that they ran. Remarks, Reference and the five external references stay editable and can be saved. | VOID |
| VOID | Reversed; stock restored, reverse journal. Neither VOID button asks for a reason, so none is stored — record why in your own void register. | none |
| DISCARDED | Abandoned draft. | none |
On FINAL the backend refuses an already-FINAL document; validates the forex rate; refuses an Account Code or GL Code item that has no GL code linked; validates serial, batch and bin quantities and the stock balance at the location the lines carry — the header’s Delivery Location, else its Location, since every save copies them onto the lines (There’s not enough stock for item …); and refuses a locked fiscal period.
It also applies DATE_TXN_LOGIC (before those checks); creates a base-currency shadow for foreign-currency returns (a tenant configured to skip base-currency copies, DOCUMENTS_SKIP_SHADOW_AND_GL, instead saves a foreign-currency return as FINAL without the copy, without FINAL’s stock and period checks and without the follow-on jobs, so no stock moves and no journal posts); posts stock out (quantity signum −1, valued at the line amount); fills ARAP with the return’s own amount, positive; has the follow-on jobs write the journal; and queues the generic-document, message-template and (unless skipped) e-Invoice processors. Intercompany rules may queue a mirror Sales Return for manual confirmation.
Journal, stock and cost
Journal per line (amount signum +1, PURCHASE handler, return lines use PNS_RETURN):
| Account | Dr | Cr | Source of GL code |
|---|---|---|---|
Creditor (CREDITOR / CREDITOR_NON_TRADE) | One balancing entry: goods plus tax, less any settlement (RM 100 goods + RM 6 tax = RM 106; with a RM 40 refund, RM 66) | Company default for the supplier’s AR/AP type — mandatory. | |
Purchase return (PURCHASE_RETURN) | Line net amount | Line GL code → header GL code → item-company PURCHASE_RETURN link → company default PURCHASE_RETURN. | |
Input tax (INPUT_TAX) | Line tax amount | Company default INPUT_TAX. | |
| Settlement method (cashbook GL) | Refund amount | Cashbook of the settlement item (Settlement tab). |
Stock: quantity × −1 at the line’s delivery location, else the line’s location — which, after the save, are the header’s Delivery Location and Location; the inventory transaction is visible on Trace Document.
What a return does to the moving average. A purchase return takes its own value out of the item’s moving-average pool, not the current average. Say you hold 10 units at a moving average of RM 100 (RM 1,000). Return 2 at RM 100 each and 8 units remain at RM 100. Return 2 at RM 0 and RM 1,000 is spread over 8 units: the average jumps to RM 125. Return 2 at RM 150 each and RM 700 is left over 8: it falls to RM 87.50. So the return price re-prices the stock you keep. MA_COST is the neutral choice when the average has not moved since the purchase; a zero or guessed price changes the cost of every later sale of that item. FINAL asks you to confirm any zero-priced line for exactly this reason.
VOID, and when it is refused
On VOID the void jobs post the reverse journal and stock movement, and the return is taken out of historical aging. The server refuses VOID in three cases, each for a reason:
- A later document is linked to this return through an active document link — the message names it (… already been linked with the following documents: …). Void that document first. Contra and settlement entries are not document links, so they are not what this check reads.
- The return is self-billed — its self-billed flag is set, even if it was never submitted (… cannot be changed to VOID because it is linked to an e-invoice). The flag is set by SELF-BILLED, and also copied from the supplier’s own self-billed setting when you pick the supplier — so check it on the E-Invoice tab before FINAL, and press SELF-BILLED only when the return is final in every sense.
- The return is tied to an e-Invoice — queued, pooled or submitted for LHDN, or matched to an e-Invoice the supplier issued. The tax record and the books must not part company.
When VOID is refused for an e-Invoice reason, reverse the return instead with a Purchase Credit Note (Internal). It restores the supplier balance, but it is not a mirror image: its goods lines post to the purchase account, not the purchase-return account, unless you give them your purchase-return GL code, and it moves no stock.
Marked self-billed, the credit note maps to a Self-billed Debit Note — before you submit it, check that it carries the original e-Invoice’s reference (marking it self-billed does not set one), then check its LHDN result in My E-Invoice Admin. If the goods are still with you, whoever owns stock control decides how the quantity comes back, and checks the stock balance at that location afterwards; your accountant compares the two documents’ journals before the period closes.
Related applets
- Purchase Invoice (Internal), Purchase Invoice No Stock In (Internal), Purchase GRN (Internal) — source documents for the Search tab.
- Purchase Order (Internal) — a KO For source, with the GRN, purchase requisition, supplier delivery order and purchase invoice.
- Purchase Debit Note (Internal) — same amount sign, no stock movement.
- Purchase Credit Note (Internal) — opposite sign.
- Purchase Refund Note (Internal) — the supplier’s cash refund as a document.
- Payment Voucher (Internal), Creditor Report — settlement and balances.
- Sales Return (Internal) — intercompany mirror.
- Purchase Return Supplier Access (Internal) — supplier portal view.
- Chart of Account, Doc Item Maintenance, Inventory Item Maintenance, Tax Configuration, Supplier, Organisation — master data.
- My E-Invoice Admin — e-Invoice queue.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| There’s not enough stock for item … on FINAL | The location the return takes stock from — the header’s Delivery Location, or its Location when none is set — holds less than the return quantity, or the batch does not exist there. A location shown on a line is replaced by the header’s when you save. | On Main Details, set the Delivery Location to where the stock is and save, or transfer the stock there first; check batch / bin at that location. To return goods held in two locations, raise one return per location. |
| Item …: batch number … has no stock at location … | None of the line’s batches has stock where the return takes stock from: used up, wrong, or held elsewhere. | Correct the batch or location, or transfer stock first. |
| Return quantity refused: Total return quantity is greater that the invoice qty | WARN_EXCESS_RETURN_QUANTITY and the source line is already partly returned (the grid’s Previous Returned Qty). | Return the remaining quantity only; check earlier returns on Doc Link. |
| Cannot find this year’s invoice or item in Search By Invoice | The listing window (SHOW_INVOICES_FROM) or the supplier filter excludes it; or the invoice is not FINAL. | Widen the window, confirm supplier and status. |
| An item deleted from an earlier draft return does not reappear in Search | Older build kept the link after deletion. | Fixed in 2026 builds; otherwise tell BigLedger support. |
| Location resets after selecting the supplier | Older build. | Fixed in 2026 builds; otherwise tell BigLedger support. |
| Add All total is a few sen below the invoice | Line recomputed as unit price × quantity instead of the invoice line amount (open issue). | Adjust the line amount to the invoice line before FINAL. |
| Serial-number tab not highlighted although serials are missing | Older build. | Fixed in mid-2026 builds; FINAL still refuses with a serial-quantity error. |
| FINAL asks Are you sure you want to create Purchase Return with 0 price? | A line has a zero unit price or amount, usually because the pricing option found no price. | Cancel and key the price. A zero-priced return leaves the stock’s value behind on fewer units and raises the moving average of what remains (see What a return does to the moving average). |
| Warehouse role sees every branch in the listing filter | Server-side permission target not restricted to the branch. | Fix the role’s target in Permission Set / Wizard. |
| Need to change details after FINAL | FINAL locks the document, except Remarks, Reference and the external references, which you can still edit and save. | For anything else, VOID and re-create — unless VOID is refused because the return is self-billed or tied to an e-Invoice; then reverse it with a Purchase Credit Note (see On VOID). |
| Intercompany mirror lands in the wrong location / quantity | Branch intercompany configuration maps to a different location. | Review the branch intercompany rule; a 2026 fix corrected location and quantity mapping. |
| Supplier not linked to branch: … when adding lines from Search By Supplier | ENABLE_BRANCH_FILTER on and the supplier is not linked to the branch of the invoice named in the message. | Link the supplier to that branch in the Supplier applet. |
MISSING_DEFAULT_GL_CODE: CREDITOR | No company default creditor GL. | Add it in Chart of Account. |
Related documentation
- Purchasing module and its related applets
- MyInvois setup and e-Invoice validation
- Purchase Debit Note (Internal) — the non-stock counterpart