Sales Return (Internal)
Take back goods a customer returns after an invoice or cash bill. Finalising puts the quantity back into stock at moving-average cost, reverses the sale and reduces what the customer owes, and finance then settles the credit by refund or contra. If nothing physical comes back, use a Sales Credit Note instead.
Your job, and the screen for it
| The job | Screen or tab | Read |
|---|---|---|
| Take back goods sold on an invoice or cash bill — on a part return, leave the invoice’s group-discount row unticked and take the returned goods’ share of the discount off their line prices: ticked, the row takes the whole invoice discount off the credit; left out with nothing else done, the goods are credited at the invoice line’s saved price, before the group discount. Put each returned line’s share in its Unit Discount, keep the discount it already had, and check the tax and the credit before FINAL | Search tab › Search By Invoice or Search By Cashbill, Add Selected, then FINAL | The create / edit form; Worked example: a laptop comes back after three weeks |
| Set the credit against an invoice the customer has not paid — otherwise the invoice goes on ageing as unpaid | Contra tab: tick the invoice | Worked example: a laptop comes back after three weeks |
| Refund a customer who has already paid | Payment tab: add the settlement line before FINAL. After FINAL, a Payment Voucher to the customer in the return’s currency: add the payment line, tick the return on the voucher’s Contra tab, save, then check the return’s Balance | The create / edit form; One refund, four folders |
| Confirm the return went through — FINAL only means the request was accepted | TraceDocument tab › Journal Txn and Inv Txn | How you know a return went through |
| Undo a return on a company enabled for e-invoicing — no screen voids it there | A Sales Invoice for goods that did not really come back, or, when only the amount was wrong, a Sales Debit Note (credited too much) or Sales Credit Note (too little); within 72 hours of validation, CANCEL_EINVOICE in the My E-Invoice Admin applet if the return’s e-invoice should not stand | Lifecycle and effects; Troubleshooting |
| Set up return reasons, the company default GL codes and the customer’s AR type | Settings › Return Reasons; Chart of Account and Customer applets | Before you can use it |
Overview
The Sales Return (Internal) applet records goods a customer brings back after a Sales Invoice or POS cash bill. Sales or customer-service staff create it, the warehouse receives the goods against it, and finance settles it — by refund on the Payment tab, by contra against the customer’s open invoices, or, once the return is FINAL, by a Payment Voucher to the customer set against the return. On FINAL the return puts the quantity back into stock at moving-average cost, reverses the sale to the Sales Return account and reduces what the customer owes. If nothing physical comes back, use Sales Credit Note (Internal) instead.
INTERNAL_SALES_RETURN. Amount signum −1, quantity signum +1 (stock in). The backend names it as the return document for both INTERNAL_SALES_INVOICE and INTERNAL_SALES_CASHBILL.
Where it fits
| Direction | Document / applet | How it connects |
|---|---|---|
| Upstream | Sales Invoice (Internal), POS General cash bills | Searched in the Search tab (by customer, invoice or cash bill); lines and customer copied in; the entity is then locked |
| Upstream | Customer, Chart of Account, Cashbook | Customer AR type, SALES_RETURN / DEBTOR / OUTPUT_TAX default GL codes, settlement methods |
| Downstream | Payment tab, Contra tab, Payment Voucher (Internal) | Refund before FINAL, offset against open invoices, or a refund paid after FINAL: the voucher’s Contra tab lists the customer’s FINAL documents with a credit balance, the return among them |
| Alternative | Sales Refund Note (Internal) | Goods back and the money out on one document. It is not a way to pay out this return’s credit: on screen its FINAL refuses until its own lines total its payment, and a contra does not count toward that, so it pays out only against lines of its own |
| Downstream | My E-Invoice Portal, My E-Invoice Admin | Submission of the return against the original e-Invoice |
| Downstream | Stock Balance | Returned quantity is back at the location |
| Sibling | Purchase Return (Internal) | Intercompany mirror in the buying company |
Screens and menus
| Menu item | Route | What it shows |
|---|---|---|
| Internal Sales Return | internal-sales-return | Listing; create, edit, print, email, void |
| Line Items | line-items | One row per return line, with footer totals that follow the filter |
| Intercompany | intercompany | Intercompany queue (return → purchase return in another company) |
| File Export | file-export | Field-mapped exports |
| File Import | file-import | Bulk create returns from a delimited file |
| Swap Serial Number | swap-serial | Offered on a FINAL return, but it moves the serials the wrong way for a return — see the warning below and correct the return instead |
| Settings / Personalization | settings/…, personalization/… | Configuration |
The create / edit form
Tabs, in the default order (re-orderable under Default Selection): Search, Main Details, E-Invoice, Account, Lines, ARAP, Delivery Details, Payment, Payment Adjustment, Department Hdr, TraceDocument, Contra, Doc Link, Attachments, Export. Search is available on create; E-Invoice, ARAP, TraceDocument, Contra, Doc Link, Attachments and Export appear once the document is saved. Payment Adjustment is meant for a FINAL return when ENABLE_EDIT_SETTLEMENT_FINAL is on and you hold SHOW_EDIT_SETTLEMENT_FINAL, but in the build tenants are served it never appears: the screen removes the tab before it reads your permissions (a known issue, reported to engineering).
| Tab | Purpose |
|---|---|
| Search | Search By Customer, Search By Invoice, Search By Cashbill (there is no search by serial number). Add Selected / Add All copy the invoice lines with amounts apportioned to the returned quantity. Search By Invoice lists the invoice’s group-discount line as a row like any item, and Add All copies it. Copied, it takes the return’s own sign and takes the discount off the credit — right when everything comes back. It is scaled by the quantity you give that row, not by the goods coming back, so on a part return a quantity of 1 still takes off the whole discount: leave that row unticked and take the discount’s share off the returned lines’ prices |
| Main Details | Branch, location, delivery branch/location (warns when they differ from the header), transaction date, Reason (from Return Reasons settings), reference, remarks, currency and rate (an inverse-rate field is shown for foreign currency) |
| Account | Entity Details, Bill To, Ship To, Intercompany; the entity is locked once lines are linked to a sales invoice |
| Lines | Returned items, quantities, prices, tax, serial / batch / bin, costing, swap serial |
| Payment | Settlement lines (refund). Create is available only while the document is not FINAL, VOID or DISCARDED and not locked; ENABLE_EDIT_SETTLEMENT_FINAL plus the SHOW_EDIT_SETTLEMENT_FINAL permission are meant to add a Payment Adjustment tab for changing a FINAL return’s settlement lines at the same total, but that tab never appears (above). After FINAL, pay a further refund with a Payment Voucher to the customer, ticking the return on the voucher’s Contra tab; the knock-off is a second request that can fail, so check the return’s Balance before paying again. A Sales Refund Note cannot do this (see Where it fits). A wrong method or amount already on a FINAL return needs support |
| Contra | Offsets this return’s credit against the customer’s open documents instead of refunding it. Normally you tick the rows to settle. When AUTO_SETTLE_CONTRA is on (no settings screen offers it — it is stored by support), an Auto Settle button and an amount box appear. Type a positive amount (a negative one over-allocates): it fills the documents in the order they were loaded — by transaction date, a page at a time — each up to its open balance. Sorting the grid does not change that order; tick rows yourself when another order matters. You cannot add more than the return’s open amount, and a row given no contra date of its own is dated today |
| E-Invoice | Submission, Progress, Notification, Cancellation; original e-Invoice reference and UUID picker; Skip E-Invoice |

Screenshot withdrawn; a recapture from a demo tenant is on the list.






Settings menu
| Settings entry | Route | Purpose |
|---|---|---|
| Application Settings | settings/field-settings | The shared switch screen; the switches this applet reads are listed under Configuration below. One of them makes Reason mandatory — but only while Reason is not hidden, so hiding the field quietly lifts the requirement |
| Default Selection | settings/default-selection | Default branch, default location, tab order |
| Return Reasons | settings/return-reasons-settings | The Reason list on Main Details, shown as code | name in alphabetical order. It is one list for the whole tenant: the Purchase Return applet offers and maintains the same reasons, so renaming one here renames it there. A return stores which reason was chosen, not its wording, and the standard print service looks the name up at print time — rename a reason and a past return that prints its reason reprints with the new name |
| Printable Format Settings | settings/printable-format-settings | Printable formats for INTERNAL_SALES_RETURN |
| Branch Settings | settings/branch-settings | Per-branch tabs: Branch Details, Item Category Filter, Pricing Scheme, Printable Format and Default Settlement Method. The branch’s default printable format is looked up when you pick the branch on a return. The listing’s Send Email does not use it; the automatic e-mail at Final does — see Email Template |
| Workflow Settings | settings/workflow-settings | Makes a workflow process available to this applet for a company; by itself it attaches nothing to a return. A new return starts in the default status of the one process chosen in this applet’s settings — applet-wide, whatever the company — and the Status list then offers only the moves that process allows from where the return stands |
| Email Template | settings/email-template | Each template names a printable format, and the listing’s Send Email renders the return in it — or in the applet’s default printable format when the template names none; it never falls back to the branch default. The automatic e-mail at Final or Void (SEND_EMAIL_TO_FINAL_GEN_DOCS_ONLY, SEND_EMAIL_TO_VOID_GEN_DOCS_ONLY) works the other way round: it looks up the branch’s printable format, else the applet default, and picks the template that names that format — failing that, the template last chosen, else the first one, and then that template’s own printable format is used |
| Custom Resource Bundle Configuration, Custom Field Placement | settings/translation-settings, settings/custom-field-placement | Relabel; place tenant custom fields |
| Webhook | settings/webhook (no menu link; open it by its address) | A sales return is sent on its created topic (INTERNAL_SALES_RETURN_CREATED) when it is first saved, as a draft, and on its updated topic (INTERNAL_SALES_RETURN_UPDATED) on every later save — Final and Void included. A subscriber that needs posted returns subscribes to the updated topic and reads the posting status; deleting a draft sends the deleted topic |
Below these the menu carries the shared permission screens — Permission Wizard, Permission Set, User Permission and Role Permission — and Release Notes. Feature Visibility, Client-Side Permission and the Applet Log have routes but no menu link.
Configuration
Before you can use it
| Prerequisite | Where | Why |
|---|---|---|
| Company, branch, location | Organisation | Header requires branch and location; goods go back to each line’s delivery location, else the line’s, else the header’s (Lifecycle) |
Company default GL codes SALES_RETURN, DEBTOR / DEBTOR_NON_TRADE, OUTPUT_TAX, SALES_DISCOUNT, FOREX_GAIN, FOREX_LOSS | Chart of Account | The return uses the SALES posting handler but its goods lines are mapped to SALES_RETURN. A header group-discount line is not: it posts to SALES, on the wrong side (a known issue — see Troubleshooting). No COGS default is needed — the handler has no cost-of-goods-sold line; cost of goods sold is the month-end journal from Financial Report. A missing debtor code fails the journal job that runs after FINAL with MISSING_DEFAULT_GL_CODE: <code>; the return stays FINAL with no journal until it is mapped and the journal is built from Financial Report › Error Checking › Trace Document (Missing Journal → Resolve) |
| Return reasons | Settings → Return Reasons | The Reason dropdown is empty until you add codes |
| Customer with AR type | Customer | Decides DEBTOR vs DEBTOR_NON_TRADE |
| Settlement methods with cashbook and GL (for refunds on the Payment tab) | Cashbook | Otherwise MISSING_CASHBOOK / MISSING_GL_CODE: STL_MTHD [code] |
| Serial / batch / bin tracking on the items being returned | Inventory Item Maintenance | Tracked items need matching allocations at FINAL |
API permissions TNT_API_DOC_INTERNAL_SALES_RETURN_{CREATE,READ,UPDATE,DELETE}_TGT_GUID | Settings → permission listings | Branch targets scope the listing |
| E-Invoice profile (optional) | My E-Invoice Admin | At FINAL the return is marked to skip e-invoice if it already was, or if its branch or its customer is marked to skip; the return references the original e-Invoice |
Applet settings
Default Selection (settings/default-selection)
| Setting | Key | What it controls | Default |
|---|---|---|---|
| Default Branch / Default Location | DEFAULT_BRANCH, DEFAULT_LOCATION | Pre-filled header | none |
| Details tab ordering | tab-order key | The order of the form tabs, by drag and drop. It is saved for the applet, so every user sees the same order; a tab added by a later release appears at the end. Reset clears the default branch, location and company but keeps the tab order | as listed above |
Application Settings (settings/field-settings) — behaviour toggles this applet reads (off unless stated):
| Section | Setting | Effect when on |
|---|---|---|
| Gen Doc Listing | DISABLE_GEN_DOC_LISTING, DEFAULT_TRANSACTION_DATE, DEFAULT_POSTING_STATUS, SORT_ORDER | Listing loads on search only; default date range, status filter and sort |
| Gen Doc Listing | SEND_EMAIL_TO_FINAL_GEN_DOCS_ONLY, SEND_EMAIL_TO_VOID_GEN_DOCS_ONLY | In this applet, not a draft filter: once a Final (or Void) from this applet succeeds, it tries to e-mail the return to the customer — the billing e-mail, else the shipping e-mail, else the customer record’s — with the printable format described under Email Template. With no address, no template, or a template with no printable format it shows an error and sends nothing; the Final stands, and you resend from the listing’s Send Email. After a bulk Final on the listing, each success cancels the e-mail still being prepared for the one before, so some returns go unsent without an error — check and resend |
| Create & Print | ENABLE_AUTO_POPUP | Opens the printable after save |
| Selection Settings | WARN_EXCESS_RETURN_QUANTITY | Refuses, not warns: a line imported from an invoice whose return quantity, with what earlier returns already took, exceeds what the source line sold gets Total return quantity is greater that the invoice qty and is not added. Off, nothing is compared. Lines added by item search rather than from an invoice are never compared either way |
| Selection Settings | SHOW_INVOICES_FROM | Default date from filter of Search By Invoice / Cashbill |
| Doc Settings | ENABLE_SALES_AGENT_AUTOFILL, ENABLE_EMPLOYEE_LOGIN_AUTO_DETECTION, CANNOT_EDIT_CURRENCY_RATE, SHOW_FOREX_DATA_SOURCE | As in the Sales Invoice applet |
| Workflow Selection | WORKFLOW_PROCESS_GUID | The process every new return starts on, saved with that process’s Starting Status. A return keeps the process it was created with |
| Workflow Selection | FINAL_STATUS_GUID | Holds back the Final button inside the return: it shows only when the workflow status saved on the return equals this one, or when this is unset. Pressing Final sets no workflow status, and the listing’s Final, for returns you tick, does not consult it — see the one real gate |
| Entity Details | ENABLE_BRANCH_FILTER | Customer search scoped by branch |
| Lines | ENABLE_ITEM_NAME_MAX_LIMIT + ITEM_NAME_MAX_LIMIT | Line editing rules |
| Line Permission | WARN_ZERO_UNIT_PRICE_BEFORE_ADD, DISABLE_EDITING_AMOUNT_TXN | Zero-price prompt; locked transaction amount |
| Payment | ENABLE_EDIT_PAYMENT_DATE, ENABLE_EDIT_SETTLEMENT_FINAL | Payment date editable; settlement changes after FINAL at the same total — the second has no effect in the served build (see Payment above). The edit settlement date switch other document applets get is not shown for this one |
| Contra | EDIT_CONTRA_TXN_DATE, CONTRA_DATE_SAME_AS_DOC_DATE_TXN | Contra date editable / pre-set to the return’s transaction date instead of today. Either way the server moves a contra dated before either document to the later document’s date |
| Credit Card | MANDATORY_CARD_NO, MANDATORY_NAME, MANDATORY_CARD_ISSUER, MANDATORY_CARD_EXPIRY, MANDATORY_APPROVAL_CODE, MANDATORY_BATCH, MANDATORY_CARD_TYPE, MANDATORY_CVV | Card fields required on a card refund line |
| Menus | HIDE_INTERCOMPANY_MENU, HIDE_FILE_EXPORT_MENU | Remove the sidebar item unless the user holds SHOW_INTERCOMPANY_MENU / SHOW_FILE_EXPORT_MENU. The swap-serial-number menu hide is not shown for this applet and read by nothing in it |
Read with no control on any settings screen — these take effect only if support has stored the key in the applet’s settings JSON. Three of them move dates and money, and one guards Final:
SALES_RETURN_WITH_PAYMENTis a Final guard. Its switch on Application Settings is written for this applet but never appears. Final from inside the document is refused until the return’s ARAP balance is zero — ARAP balance must be 0 for finalization — and the listing’s bulk Final refuses the whole selection, naming each return with a balance as No Payment. So record the refund or contra first. The refund on the Payment tab is that settlement leg: the applet writes it with the opposite sign to the goods lines, and the open amount is their signed sum, so a fully refunded return opens at zero.AUTO_UPDATE_TXN_DATE_ON_FINALre-dates the return to today with a save made before the Final is requested, so a refused Final leaves the draft re-dated.AUTO_SETTLE_CONTRAshows the Auto Settle control on the Contra tab.REQUIRE_DOC_LINK_FROM_TO_FINAL(in the build served from 27 November 2026) requires at least one line taken from the Search tab. With it on, Final from inside the return, and the listing’s bulk Final, refuse a return none of whose current lines is linked to a source document — one whose lines were typed or cloned. Inside the return the message is Cannot final this sales return. It has no Doc Link From. Add the lines from the Search tab first.; the listing refuses the whole selection and names each return without a link — or one it could not load, so try again before rebuilding lines.
The rest: DEFAULT_CUST_TYPE, DEFAULT_COUNTRY, DEFAULT_CURRENCY pre-fill a customer created from the return (corporate when unset); HIDE_CLONE_BUTTON, HIDE_SELECT_FROM_ANOTHER_CUSTOMER_BUTTON and ENABLE_EDITING_UNIT_PRICE_STD. ENABLE_DRAFT_LOCK_SERIAL_NUMBER_CHECKING (whether another draft already holds a serial, asked as the serial line is saved), SHOW_DOCUMENT_DELETE_BUTTON, HIDE_SEND_EMAIL_BUTTON, DEFAULT_STATUS, FUZZY_SEARCH_COLUMNS, DISABLE_ITEM_LISTING and the four department hides do have switches on Application Settings.
The other switches on Application Settings hide or expand a field, a column, a tab or a button. Each one’s whole effect is on your screen the moment you flip it, so they are not listed here.
Keys in the model with no control anywhere: ENABLE_CUSTOM_STATUS_*, department/tax INCLUDE_* / ENABLE_* flags. Five that look like that are not: DEFAULT_DELIVERY_BRANCH / DEFAULT_DELIVERY_LOCATION are set on Personalization → Default Selection and read by Main Details; DEFAULT_ORIENTATION / DEFAULT_TOGGLE_COLUMN are read by the split create and edit screens; PRINTABLE is the listing’s print default and the export tab’s fallback printable.
Document behaviour settings
| Area | How it is configured |
|---|---|
| Status flow | DRAFT → FINAL → VOID; Discard on a draft. |
| Posting at FINAL | The company’s posting include/exclude list (which posting steps run at FINAL), via the Generic Document Primary Processor. |
| Workflow | Settings → Workflow Settings links a company to a process for INTERNAL_SALES_RETURN; the process a new return starts on and the Final status are chosen on Application Settings › Workflow Selection (above). |
| Printables | Settings → Printable Format Settings. |
Settings → Email Template; SEND_EMAIL_TO_FINAL_GEN_DOCS_ONLY and SEND_EMAIL_TO_VOID_GEN_DOCS_ONLY send it automatically. A return brought in from another document, or opened, with no billing or shipping e-mail has both filled from the customer record’s e-mail. | |
| e-Invoice | INTERNAL_SALES_RETURN is an e-Invoice document type. On the saved return, E-Invoice → Submission holds Original E-invoice Ref No, Original E-invoice Ref UUID (picker Select E-invoice Main Doc Ref No) and Document Date; Skip E-Invoice is available. TIN validation follows the API response. Queues, validation and cancellation run in My E-Invoice Admin / Portal. |
| Intercompany | Intercompany menu; mapping INTERNAL_SALES_RETURN ↔ INTERNAL_PURCHASE_RETURN. |
Feature visibility / permissions
API: TNT_API_DOC_INTERNAL_SALES_RETURN_{CREATE,READ,UPDATE,DELETE}_TGT_GUID.
Client-side permissions registered for this applet (44):
| Group | Codes |
|---|---|
| Buttons | SHOW_GENDOC_FINAL_BUTTON, SHOW_GENDOC_VOID_BUTTON, SHOW_GENDOC_DISCARD_BUTTON, SHOW_EDIT_SETTLEMENT_FINAL (meant for the Payment Adjustment tab, which does not appear), SHOW_SWAP_SERIAL_NUMBER (Swap Serial tab in the line listing) |
| Pricing and amounts | SHOW_UNIT_PRICE_STD_PRICING_SCHEME, SHOW_UNIT_PRICE_STD_INCL_TAX, SHOW_UNIT_PRICE_STD_EXCL_TAX, SHOW_UNIT_PRICE_STD_UOM_INCL_TAX, SHOW_UNIT_PRICE_STD_UOM_EXCL_TAX, SHOW_UNIT_PRICE_NET_EXCL_TAX, SHOW_UNIT_PRICE_NET_UOM_EXCL_TAX, SHOW_UNIT_PRICE_TXN, SHOW_UNIT_PRICE_TXN_UOM_INCL_TAX, SHOW_UNIT_DISCOUNT, SHOW_UNIT_DISCOUNT_UOM_EXCL_TAX, SHOW_AMOUNT_STD_EXCL_TAX, SHOW_DISCOUNT_AMOUNT_EXCL_TAX, SHOW_AMOUNT_NET_EXCL_TAX, SHOW_AMOUNT_TXN, SHOW_QTY_BASE, SHOW_QTY_UOM, SHOW_UOM_TO_BASE_RATIO, SHOW_TAX_CONFIG_SELECTION, SHOW_WHT_CONFIG_SELECTION, SHOW_COSTING_DETAILS, SALES_RETURN_DISPLAY_PRICING |
| ARAP columns | SHOW_ARAP_PNS, SHOW_ARAP_SETTLEMENT, SHOW_ARAP_DOC_OPEN, SHOW_ARAP_CONTRA, SHOW_ARAP_BAL |
| Document numbers | SHOW_DOC_NO_TENANT, SHOW_DOC_NO_COMPANY, SHOW_DOC_NO_BRANCH, SHOW_CLIENT_DOC_TYPE, SHOW_CLIENT_DOC_1…5, SHOW_DESCRIPTION, SHOW_TRANSACTION_DATE — the SHOW_DOC_NO_* codes reopen a number field that HIDE_SERVER_DOC_1..3 hid on Main Details; on the listing the hide settings are never applied, so the Doc No columns stay visible and these codes have nothing to reopen |
The app also reads SHOW_INTERCOMPANY_MENU and SHOW_FILE_EXPORT_MENU, which are not registered for this applet (see Troubleshooting).
Fields
Main Details
| Field | Meaning | Required | Notes |
|---|---|---|---|
| Company, Branch, Location | Receiving branch and stock location | Yes | Delivery Branch / Location shown when enabled; a warning appears if they differ from the header |
| Transaction Date | Return date | Yes | Locked-period check at FINAL |
| Reason | Why the goods came back | No, unless a setting requires it | Once chosen it can be changed but not cleared — saving it blank keeps the old reason. When intercompany creates a counterpart document from this return, the reason is copied onto it. Where the list comes from, and why a rename reaches old returns: Settings → Return Reasons above |
| Currency, Currency Rate, Inverse Rate | Document currency | Currency yes | Rate copied from the source invoice on knock-off; lockable |
| Sales Agent | Employee credited | No | Picking the customer fills it from the customer’s Default Sales Agent (a message says so), or, with sales-agent autofill on, from the customer’s account manager. Lines brought in through Search keep the original invoice line’s agent instead, so the header and the lines can name different people |
| Reference, Remarks, Credit Terms, Credit Limit, Due Date, Tracking ID, Permit No, Member Card | Header attributes | No | Use Reference for the original invoice number when Search is not used |
Account: Entity ID (required); billing and shipping contacts and addresses (edits persist on save); Intercompany. The entity cannot be changed once lines are linked to a sales invoice.
Lines (txn_type = PNS)
| Field | Meaning | Required | Notes |
|---|---|---|---|
| Item | Returned item | Yes | From the source invoice line or item search. A line added by item search starts with the header’s sales agent; a line brought in through Search carries the invoice line’s agent, delivery branch and location |
| Quantity, UOM | Returned quantity | Yes | Quantity signum +1 is filled by the backend; with WARN_EXCESS_RETURN_QUANTITY on, a line imported from an invoice is refused if it would exceed the sold quantity |
| Unit Price STD / Net, discount, Net Amount, Net Amount with Tax, Transaction Amount | Value credited | Net and transaction amounts required | A manually changed price is kept on edit (no longer reset to the pricing scheme) |
| Tax Code, Tax Amount | Tax reversal | From item or scheme | Posts to OUTPUT_TAX |
| Serial Number, Batch Number (batch no, qty, issue and expiry date), Bin Number (bin code, container measure / qty, qty) | Allocations for tracked items | Match line quantity at FINAL | Swap Serial is offered on FINAL documents but is not the way to correct a return (see the warning under the menu table) |
| Costing Details | A grid of company, location, quantity and four unit costs | Read-only | Always empty on this applet — the grid is drawn with no data behind it, on create and on edit. The returned unit’s cost is real and stored; see Where the numbers on a return come from below for where to read it |
Payment: settlement group and method, date, amount (≥ 0.01), plus type-specific references and any card fields marked mandatory. Contra: select open receivable documents; a row’s contra date is today unless you change it or CONTRA_DATE_SAME_AS_DOC_DATE_TXN pre-sets the return’s date, and the server moves one dated before either document to the later document’s date.
Lifecycle and effects
| Status | Meaning | Allowed next |
|---|---|---|
| DRAFT | Editable; no stock or GL effect | FINAL, Discard |
| FINAL | Numbered and locked. Stock, journal and receivable are written by background jobs a moment later, so a return can be FINAL with no journal (Troubleshooting, first row). The Payment Adjustment tab meant for changes after FINAL does not appear (a known issue) | VOID |
| VOID | Reversed with a void reason | none |
FINAL validation (backend):
- exchange rate when currencies differ;
- a GL-code or account-code item on a line has a GL code — on the line, on the item, or any company GL link for the item in Doc Item Maintenance (a link made only for another transaction code passes here and fails the journal job later);
- serial, bin and batch quantities match the line quantity; no serial appears twice, and no returned serial is still in stock anywhere in the company (a serial for a unit still on the shelf refuses the return; one that does not exist at all is not caught, so compare it with the unit and the invoice);
- date not in a locked fiscal period.
When the return lacks a transaction date or a company, this validation passes without reporting anything it found. Blacklist and stock-balance checks do not apply — the movement is inbound.
What FINAL does: generates running numbers; marks the return to skip e-invoice if it already was, or if its branch or customer is marked to skip; queues the primary processor (inventory, journal, AR, cashbook, per the company’s posting include/exclude list); queues the message-template (email) processor. Both Final buttons — in the document and on the listing — send only {posting_status: FINAL}, no stock, serial or date flag, so the server’s defaults apply; the transaction date stays as typed unless AUTO_UPDATE_TXN_DATE_ON_FINAL is stored (above).
Journal — SALES handler, amount signum −1, goods lines mapped to SALES_RETURN (a header group-discount line is the exception — see the warning below the table):
| Dr | Cr | Amount | GL code source |
|---|---|---|---|
Sales Return (SALES_RETURN), or the line’s own GL code | Net amount per line | The line’s own GL code → the return’s header GL code → the item’s GL code for the company → the company default | |
Output tax (OUTPUT_TAX) | Tax amount | Company default GL | |
Debtor (DEBTOR / DEBTOR_NON_TRADE) | Total including tax, less any Payment-tab refund — one line, the balance of all the others | Company default GL by customer AR type | |
| Cashbook GL | Each Payment-tab (refund) line, less any settlement charge on the method, which posts to the company’s SETTLEMENT_CHARGES code | Settlement method |
A refund does not get a debtor line of its own: the journal nets it into the one customer line, so a fully refunded return shows no customer line at all.
Stock: each item line writes an inventory transaction with quantity × +1 at the line’s delivery location, else the line’s location, else the header’s, else the branch’s default location; serial numbers and batches are re-activated at that location. A line brought in through Search carries the invoice line’s delivery location, so goods sold from one store and returned at another go back into the store on the invoice line unless you change the line. Check the location on each line before FINAL, then confirm the quantity arrived there in Stock Balance.
VOID sets the status and reason, and queues the void primary processor (reverses stock, journal and AR).
The server refuses a void in three cases, each on purpose: a later document is linked to the return (the message names it; undo that document first); the return is tied to an e-invoice — queued for one, pooled, submitted, matched, or carrying the original e-invoice’s reference from its E-Invoice tab; or the company is enabled for e-invoicing — every sales return there, submitted or not, with “Generic Document cannot be changed to VOID because e-invoice is enabled”. The refusal is deliberate: a void does not travel to LHDN, so a document that has, or will have, an e-invoice is corrected with another document and never voided.
On an e-invoicing company no screen voids a return. The opened return hides Void; the listing still offers it, and the server refuses it. Cancelling the e-invoice first does not change that, and since the November 2026 build the rejection request’s Void original document is refused too. (One access-key API route stores a VOID status without this check and without reversing stock, journal or receivable — a defect reported to engineering, not a way to undo a return.)
Undo the return with a new document instead: a Sales Invoice for goods that did not really come back (it takes them out of stock again and re-charges the customer), or, when only the amount was wrong, a Sales Debit Note if it credited too much or a Sales Credit Note if too little.
These offset the return rather than erase it: contra the new document against the return so neither stays open, and remember that the return’s link to the invoice line stays, so the invoice still counts those units as returned. If the return’s own e-invoice should not stand, cancel it within 72 hours of validation with CANCEL_EINVOICE in My E-Invoice Admin; the return stays FINAL.
Worked example: a laptop comes back after three weeks
A corporate customer bought one ultraportable laptop at GS-KV-01 three weeks ago on a Sales Invoice for RM 3,800, on 30-day terms, and has not paid. The laptop comes back unused. Leave tax aside for the arithmetic; a tax line reverses the same way, to output tax. When the laptop was sold, the moving-average cost at the branch was RM 3,100. A cheaper batch has arrived since, and the average now stands at RM 2,950.
You create the return with Search By Invoice, take the one line, and Final it. A moment later the background jobs have run, and this is what changed:
| What | After the return | What it does not touch |
|---|---|---|
| Journal | Dr Sales Return 3,800, Cr the customer 3,800 | No cost-of-goods-sold line. Cost of goods sold is the month-end journal |
Stock at GS-KV-01 | One more laptop, valued at RM 2,950 — the average standing just before the return | Not RM 3,100, what it cost when it left, and not RM 3,800, what you credited. The average price itself does not move |
| The return’s own balance | −3,800: a credit the customer holds | Nothing is paid out unless you record a refund on the Payment tab |
| The original invoice | Still FINAL, still open at +3,800 | The return records which invoice line it came from (a quantity link, used by the excess-return check), but it does not reduce the invoice’s balance |
| E-invoice | Where your company is enabled for e-invoicing, the return is queued as its own e-invoice document after Final, carrying the original’s reference you pick on its E-Invoice tab | The original e-invoice stays valid at LHDN. Cancelling it is a different route, open only within 72 hours of validation — see My E-Invoice Admin |
How the credit meets the invoice. Until you join them, the customer’s account shows an invoice owing RM 3,800 and a return owed back RM 3,800. The total is right, but each document keeps its own balance, so the invoice goes on ageing as unpaid. Open the return’s Contra tab, tick the invoice and contra RM 3,800. Both balances fall to zero. A refund on the Payment tab is for a customer who has already paid: here it would hand back RM 3,800 against an invoice nobody settled.
Why the laptop comes back at today’s average, not at its old cost. A return line carries a selling price, not a cost. If the moving average absorbed it, every return would push the cost of everything else on the shelf towards the retail price. So BigLedger lets a sales return change the quantity but not the average. The RM 150 between RM 3,100 out and RM 2,950 back is not reversed by the return.
One refund, four folders
One press of FINAL on a return changes four folders at once: the stock job puts the goods back at the branch’s
location (Inventory Workflow), the journal debits Sales Returns and Output Tax (Finance), a refund recorded on its Payment
tab is written out of the till’s cashbook by the cashbook job, and the return joins the e-invoice queue against the original bill
(E-Invoice). The worked case, a RM 399 pair of wireless earbuds refunded at GS-KV-03, and what a credit note or
a refund note would have done instead, is on the Sales applets hub.
The idea to take from it: when you read an applet’s page, also read the folder page of whatever it writes into. That is where the consequence shows up, and usually where the person who notices it works.
Where the numbers on a return come from
| Figure | Where it comes from | When it is fixed |
|---|---|---|
| Line price and amount, from Search By Invoice | Copied from the invoice line and apportioned to the quantity you return | Stored at the time you add the line. The return keeps its own copy, so a later change to the invoice does not reach it |
| Doc Open | The goods lines (negative) plus any refund lines on the Payment tab (positive) | Recomputed and stored every time the return is saved, on create and on edit |
| Balance | Doc Open plus every contra recorded against the return | Re-summed from all its contras each time one is added or deleted, so it stays right if a contra is removed later |
| Cost of the returned stock | The item’s moving-average price just before the return in the company’s stock history | Calculated by the inventory job after Final, then written back onto the return line. You read it as MA Price in Stock Balance — the line’s own Costing Details tab is always empty |
| Journal amounts | Built by the journal job from the return’s lines | Taken when the job runs after Final. Repost in Trace Document rebuilds it from the lines as they are then |
How you know a return went through
FINAL tells you the request was accepted, not that the background jobs succeeded. Spend 30 seconds on the saved return:
- Open the TraceDocument tab, then Journal Txn. You should see Sales Return (or the line’s own GL code) and output tax on the debit side, and the customer on the credit side, for the return’s total less any refund on the Payment tab. A grid that stays empty after a refresh means the journal job is still queued, failed, or did not run because the company’s posting list leaves it out — go to the first row of Troubleshooting.
- On the same tab, open Inv Txn. Each returned stock item appears with Qty Signum 1 — that is the stock coming in (a trade-in line shows −1). If the grid is empty, the stock job has not run or failed, and Stock Balance will not have moved either.
- In Stock Balance, the item at the return’s location has gone up by the quantity you took back.
- On the listing, the return’s Balance is minus its total, or zero once a refund or contra covers it. After a contra, the original invoice’s Balance has fallen by the same amount.
- If your company is enabled for e-invoicing and the return is not marked to skip e-invoice, the return shows in My E-Invoice Admin after Final, never after a mere save.
Related applets
- Sales Invoice (Internal), POS General — the documents being returned against.
- Sales Credit Note (Internal) — financial-only correction without stock.
- Payment Voucher (Internal) — pay out the credit balance after FINAL, with the return ticked on its Contra tab.
- Sales Refund Note (Internal) — goods back and the money out on one document, instead of a return; on screen it cannot pay out a return’s credit.
- Purchase Return (Internal) — intercompany mirror.
- My E-Invoice Portal, My E-Invoice Admin — submission against the original e-Invoice; cancellation windows.
- Stock Balance — where the returned quantity reappears.
- Customer, Chart of Account, Cashbook, Workflow Design — master data and workflow.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Return is FINAL but its Journal Txn grid is empty. The reason BigLedger support reads is MISSING_DEFAULT_GL_CODE: DEBTOR (or DEBTOR_NON_TRADE); TOTAL_DEBITS_AND_TOTAL_CREDITS_NOT_BALANCES when the customer has no AR/AP type, so no customer line is built; or NO_JOURNAL_CREATED when no line resolved a GL code at all. No screen shows it until you press Resolve | Company default GL codes missing, or the customer’s AR type — the journal job runs after FINAL and fails | Set them in Chart of Account, then Financial Report › Error Checking › Trace Document → Missing Journal → Resolve. Resolve, pressed while the cause is still there, posts nothing and shows the reason in the check’s message, so it doubles as the diagnosis |
| No error, but trade debtors no longer agrees with the debtor ageing, and sales returns or SST are off by the same amount | A line resolved no GL code and was left out of the journal (a GL-code or account-code item with no GL code at all is refused at FINAL instead); the customer’s line was built from the lines that remained, so it takes that amount less off trade debtors than the return does, and the journal posted. The return is FINAL with a journal, so Trace Document finds nothing, and the customer statement and ageing (built from documents) look right. Before go-live, check every code this return uses has a company default, or every item its own | Set them in Chart of Account. Then open each affected return in Error Checking › Trace Document and press Repost beside Posting Journal: it deletes the short journal and builds it again from the return, now with every line. Repost successful means it worked. A failed Repost shows nothing, and it has already deleted the old journal, so open the Journal Txn grid afterwards: if it is empty, press Resolve on the Missing Journal check, which posts the journal or shows why it cannot. Or post a correcting journal yourself |
| You took back RM 1,000 of goods less a RM 50 group discount and the screen says RM 950, but the journal shows Dr Sales Return 1,000, Dr Sales 50 and the customer credited RM 1,050 | The group-discount line is saved with the opposite sign to every other line and is not mapped to Sales Return, so it posts on the same side as the returned goods, and the customer line takes up the difference: twice the discount. A known issue, reported to engineering; not yet observed on a live tenant | Take the discount off the line prices (unit discount) rather than using the Group Discount boxes. If a return already went through, raise a Sales Debit Note for twice the discount, contra it against the return, and move half of it from Sales to Sales Return with a journal entry; a journal entry alone leaves the return’s balance and the customer statement wrong |
| Reason dropdown is empty | No return reasons configured | Settings → Return Reasons |
| Lines copied from Search By Invoice show zero amounts | An older build did not apportion amounts | Fixed: Add Selected / Add All now copy the source line’s saved amounts and scale them to the quantity you return (a zero standard amount is rebuilt from net plus discount); if it still happens, check the source invoice line’s own net and transaction amounts |
| Cannot select the invoice: entity or branch does not match | Search By Invoice checks that the invoice’s customer and branch match the return header | Set the header branch and customer to match, or start from Search |
| Entity ID cannot be changed | Lines are linked to a sales invoice | Remove the linked lines first, or create a new return |
| Edit line resets the price you typed | Older build bug | Fixed; upgrade |
| Customer name blank on the listing | Older build bug | Fixed |
| Contra date not what you expected | A contra row is dated today unless CONTRA_DATE_SAME_AS_DOC_DATE_TXN pre-sets the return’s date, and the server moves one dated before either document to the later document’s date | Set the toggle, or EDIT_CONTRA_TXN_DATE to type the date |
| Cannot add a Payment line | Document is FINAL/VOID/DISCARDED or locked | Add settlement before FINAL. After FINAL the Payment Adjustment tab does not appear (a known issue): pay a further refund with a Payment Voucher to the customer and tick the return on the voucher’s Contra tab, and ask support to change a wrong one |
| Final refused with ARAP balance must be 0 for finalization although the Payment tab shows the full refund — and on the Debtor Report the return’s Doc Open is exactly twice its value | The return was created by the API or an integration with its refund line typed as a sales return rather than a payment voucher. On create the backend signs every line by the type it arrived with, so the refund took the goods’ sign and added to the balance instead of cancelling it; the repair that re-types a settlement line runs on update only | Open the return and save it once: the save re-types and re-signs the refund line and the open amount drops to zero. Then Final. Have the integration send settlement lines typed as a payment voucher |
| Void refused: "…cannot be changed to VOID because e-invoice is enabled" (or …because it is linked to an e-invoice) | Your company is enabled for e-invoicing, or the return is tied to an e-invoice. Every such sales return is refused, submitted or not, and the rejection request’s Void original document is refused too | Reverse it with a new document — a Sales Invoice for goods that did not come back, or a Sales Debit Note (or Credit Note) for an amount. Within 72 hours of validation, CANCEL_EINVOICE in My E-Invoice Admin withdraws the return’s e-invoice; the return stays FINAL |
| Intercompany or File Export menu missing for one user | HIDE_*_MENU on and the SHOW_*_MENU codes are not registered for this applet | Turn the hide off or request the codes |
| Batch Issue / Expiry date required on the batch tab | Tenant does not track batch dates | Hide them with HIDE_BATCH_ISSUE_DATE / HIDE_BATCH_EXPIRY_DATE (added for this applet) |
| Returned quantity larger than sold | WARN_EXCESS_RETURN_QUANTITY off, or the line was added by item search rather than imported from the invoice | Turn it on and import lines from the invoice; with it on the excess line is refused, not warned about |
| A part return built from an invoice credits the customer less than the goods by the invoice’s whole group discount | The invoice’s group-discount row was copied with the items — Search By Invoice lists it like any line and Add All takes it — at the quantity given to that row, not in proportion to the goods coming back | Remove the discount row before FINAL and take the discount’s share off the returned lines’ prices instead; if it already went through, raise a Sales Credit Note for the difference |