Skip to content

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 jobScreen or tabRead
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 pathPurchase 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 GRNMain 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 keepFINALLifecycle and effects
Close the balance the return leaves — contra it against the supplier’s invoices, or record the supplier’s cash refundContra tab; Settlement tab — its method needs a cashbook with a GL code, or the return goes FINAL with no journalSettlement, 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 EnabledSELF-BILLED on the listingDocument behaviour settings
Set up locations, the creditor and purchase-return GL codes, and return reasonsOrganisation 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

PositionDocument / appletWhy
ModulePurchasing, Inventory, Financial Accounting, E-InvoiceStock out, GL posting, and an e-Invoice purchase document type.
UpstreamPurchase 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.
DownstreamPayment Voucher (Internal), the Contra and Settlement tabsClose the return’s ARAP balance.
DownstreamPurchase Refund Note (Internal)Cash refund from the supplier recorded as its own document.
DownstreamCreditor ReportShows the return’s balance against the supplier.
DownstreamMy E-Invoice AdminINTERNAL_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.
IntercompanySales Return (Internal)Intercompany processing pairs INTERNAL_PURCHASE_RETURN → INTERNAL_SALES_RETURN (and the reverse); the Intercompany menu is the manual confirmation queue.
ExternalPurchase Return Supplier Access (Internal)Supplier-facing view.

Screens and menus

MenuRouteWhat it is
Purchase Returnpurchase-returnListing, 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 Itemsline-itemsCross-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 Exportfile-exportGenerate 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.
IntercompanyintercompanyManual intercompany transaction queue.
Audit Trailaudit-trailChange log.
Settingssettings/…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.
Personalizationpersonalization/…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.

Advanced filtering options
Advanced Search.
File Export options
File Export.

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).

Search tab — Search By Invoice
Search By Invoice.
Search tab — invoice selected
Invoice selected, lines ready to return.
Main Details tab
Main Details — branch, location, purchaser, credit terms, reason, reference, remarks.
Line Items tab — select item
Lines — items and return quantities.

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.

E-Invoice tab
E-Invoice — submission type, document number and supplier e-Invoice identity.
Settlement tab
Settlement — total settlement, document open amount and ARAP balance.
ARAP tab
ARAP — contra and outstanding amounts.
Attachments tab
Attachments.
Export tab
Export — pick a printable format (typically a debit-note layout) and download the PDF.

Configuration

Before you can use it

PrerequisiteWhereWhy
Company, branch, locationOrganisationBranch 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 entitySupplierThe 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 locationInventory Item Maintenance and the receiving documentsFINAL 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 codesChart of Account → company GL-code linksCREDITOR / 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 linksDoc Item MaintenanceLine 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 reasonsThis applet → Settings → Return Reasons Settings (Reason Code, Reason Name)The Reason field on Main Details.
Tax codesTax ConfigurationLine tax and WHT.
Cashbook / settlement methodsCashbookOnly 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 openLedger And JournalFINAL refused in a locked period.
Workflow (optional)Settings → Workflow Settings (Process Code, Server Doc Type, Company) and WORKFLOW_PROCESS_GUIDAttaches a workflow process and status to new documents.
e-Invoice setupMy E-Invoice AdminOnly 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).
PermissionsPermission 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:

SettingWhat it controlsDefaultEffect when changedWho can change it
DEFAULT_BRANCH, DEFAULT_LOCATION (derived DEFAULT_COMPANY)Branch and location pre-selected on new returns.noneNew 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.noneApplies 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_SUPPLIERWhen 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_ORDERDrag-and-drop order of the 14 edit tabs.code orderRe-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_TXN on, 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.
Default Selection settings
Settings → Default Selection.

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.

GroupKeysWhat they control
ListingDEFAULT_POSTING_STATUS, DEFAULT_STATUS, DEFAULT_TRANSACTION_DATE, SORT_ORDER, FUZZY_SEARCH_COLUMNS, DISABLE_GEN_DOC_LISTING, PRINTABLE, ENABLE_AUTO_POPUPDefault 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 buttonsHIDE_FILE_EXPORT_MENU, HIDE_GENDOC_FINAL_BUTTON, HIDE_GENDOC_VOID_BUTTON, HIDE_GENDOC_DISCARD_BUTTON, HIDE_GENDOC_SAVE_BUTTONRestored per user by SHOW_FILE_EXPORT_MENU, SHOW_GENDOC_FINAL_BUTTON, SHOW_GENDOC_VOID_BUTTON, SHOW_GENDOC_DISCARD_BUTTON.
Search tabHIDE_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_QUANTITYWhich 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 fieldsHIDE_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_PRECISIONMain 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 tabENABLE_SELECT_MODE, ENABLE_BRANCH_FILTER, HIDE_SUPPLIER_CODE, HIDE_PHONE_NUMBER, HIDE_EMAIL, HIDE_SIC_CODE_AND_BUSINESS_ACTIVITY_DESCRIPTION, HIDE_E_INVOICE_TABSupplier picker (create/edit inline needs ALLOW_TO_CREATE_EDIT_ACCOUNT) and supplier sub-tabs.
LinesHIDE_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_BALANCELine grid columns and sub-panels; stock balance column in the item picker.
Delivery / settlement / tabsHIDE_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_BALTab and ARAP-figure visibility; settlement date editable.
LayoutVERTICAL_ORIENTATION, DEFAULT_ORIENTATIONTabs vs stacked panels.
Application Settings — Gen Doc Listing
Application Settings — Gen Doc Listing group.
Application Settings — Search Invoices
Application Settings — Search Invoices group (the Search-tab keys above).
Application Settings — Main Details
Application Settings — Main Details group.

Document behaviour settings

BehaviourWhere it is setNotes
Return pricingDEFAULT_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 guardWARN_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 dateDATE_TXN_LOGIC.See Default Selection.
Return reasonsSettings → 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.
PrintablesPrintable Format Settings; PRINTABLE; Branch Settings → Printable Format.The Export tab and bulk print; the usual layout is a debit note to the supplier.
WorkflowWorkflow Settings + WORKFLOW_PROCESS_GUID.New documents get the process; status and resolution shown on Main Details.
e-InvoiceE-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 templatesNot available in this applet (no Email Template settings page).
File importNot exposed in this applet’s UI.
WebhooksThe Webhook settings screen.It has no entry in this applet’s Settings menu; it opens only by its address.
Return Reasons Settings
Settings → Return Reasons Settings.
Workflow Settings
Settings → Workflow Settings — company workflow link (Process Code, Server Doc Type, Company).

Branch settings

Sub-tabWhat it controls
Branch DetailsRead-only Branch Name / Code / Company; Sales Agent (default purchaser); Rounding Five Cent + rounding item; Group Discount Item.
Item Category FilterItem categories offered at this branch.
Pricing SchemeBranch pricing schemes.
Printable FormatBranch default printable format.
Default Settlement MethodPre-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:

GroupPermission codes
Buttons / menusSHOW_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.
HeaderSHOW_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 pricingSHOW_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
AccountALLOW_TO_CREATE_EDIT_ACCOUNT
Also checked in code, not seededSHOW_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

FieldMeaningRequiredNotes / validation
Branch, Location; Delivery Branch, Delivery LocationBranch, the header location, and where the goods leave from.Branch and Location yes; the delivery pair noEvery 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.
CompanyOwning company.SystemFollows 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.
PurchaserResponsible employee.NoAuto-fill with ENABLE_EMPLOYEE_LOGIN_AUTO_DETECTION; branch default Sales Agent.
Doc No (Tenant / Company / Branch)Running numbers.SystemNot 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 DateReturn date.YesMay be replaced at FINAL per DATE_TXN_LOGIC; must be in an open fiscal period.
Credit TermsSupplier terms.NoThe 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.
ReasonReturn reason from Return Reasons Settings.NoHIDE_REASON.
Reference, RemarksFree text.Remarks with MANDATORY_REMARKS_FIELD
Currency, Base Currency, Currency Rate, Forex SourceDocument currency.Currency yesReturns 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 / OthersReferences.NoClient 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 ResolutionWorkflow fields.SystemShown when a workflow is attached.

Account

FieldMeaningRequiredNotes
SupplierEntity flagged as supplier.Yes at FINALCopied from the source document when the Search tab is used.
Entity branch, Bill To, Ship To, e-Invoice identitySupplier details.NoA 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

FieldMeaningRequiredNotes / validation
ItemReturned item.YesCopied from the source line with a document link.
Quantity (return qty)Units going back.YesPlease 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, binStock identifiers.When the item is serialised / batchedPlease 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, amountsValue of the return.Yes for non-GL itemsPriced by the pricing option; standard price editable with ENABLE_EDITING_UNIT_PRICE_STD.
Tax code / %, WHT code / %Taxes.NoTax posts to INPUT_TAX.
GL codeLine GL override.NoWins 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

TabFieldsNotes
SettlementSettlement method (cashbook), amount, date, remarks.Supplier refund received; date editable with ENABLE_EDIT_SETTLEMENT_DATE; total settlement, document open and ARAP balance shown.
ContraTarget purchase invoice, amount, date.Offsets the return against the supplier’s outstanding invoices.
Delivery DetailsPer-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 HdrSegment, Dimension, Profit Centre, Project.Header defaults for the journal.

Lifecycle and effects

StatusMeaningAllowed next
DRAFTEditable; no stock, journal or ARAP.FINAL, DISCARDED
FINALPosted; 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
VOIDReversed; stock restored, reverse journal. Neither VOID button asks for a reason, so none is stored — record why in your own void register.none
DISCARDEDAbandoned 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):

AccountDrCrSource 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 amountLine GL code → header GL code → item-company PURCHASE_RETURN link → company default PURCHASE_RETURN.
Input tax (INPUT_TAX)Line tax amountCompany default INPUT_TAX.
Settlement method (cashbook GL)Refund amountCashbook 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

Troubleshooting

SymptomCauseFix
There’s not enough stock for item … on FINALThe 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 qtyWARN_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 InvoiceThe 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 SearchOlder build kept the link after deletion.Fixed in 2026 builds; otherwise tell BigLedger support.
Location resets after selecting the supplierOlder build.Fixed in 2026 builds; otherwise tell BigLedger support.
Add All total is a few sen below the invoiceLine 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 missingOlder 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 filterServer-side permission target not restricted to the branch.Fix the role’s target in Permission Set / Wizard.
Need to change details after FINALFINAL 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 / quantityBranch 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 SupplierENABLE_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: CREDITORNo company default creditor GL.Add it in Chart of Account.

Related documentation

Last updated on