Skip to content

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 jobScreen or tabRead
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 FINALSearch tab › Search By Invoice or Search By Cashbill, Add Selected, then FINALThe 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 unpaidContra tab: tick the invoiceWorked example: a laptop comes back after three weeks
Refund a customer who has already paidPayment 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 BalanceThe create / edit form; One refund, four folders
Confirm the return went through — FINAL only means the request was acceptedTraceDocument tab › Journal Txn and Inv TxnHow you know a return went through
Undo a return on a company enabled for e-invoicing — no screen voids it thereA 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 standLifecycle and effects; Troubleshooting
Set up return reasons, the company default GL codes and the customer’s AR typeSettings › Return Reasons; Chart of Account and Customer appletsBefore 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.

Server document type 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.
The return journey from invoice to settlement
The return journey.

Where it fits

DirectionDocument / appletHow it connects
UpstreamSales Invoice (Internal), POS General cash billsSearched in the Search tab (by customer, invoice or cash bill); lines and customer copied in; the entity is then locked
UpstreamCustomer, Chart of Account, CashbookCustomer AR type, SALES_RETURN / DEBTOR / OUTPUT_TAX default GL codes, settlement methods
DownstreamPayment 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
AlternativeSales 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
DownstreamMy E-Invoice Portal, My E-Invoice AdminSubmission of the return against the original e-Invoice
DownstreamStock BalanceReturned quantity is back at the location
SiblingPurchase Return (Internal)Intercompany mirror in the buying company

Screens and menus

Menu itemRouteWhat it shows
Internal Sales Returninternal-sales-returnListing; create, edit, print, email, void
Line Itemsline-itemsOne row per return line, with footer totals that follow the filter
IntercompanyintercompanyIntercompany queue (return → purchase return in another company)
File Exportfile-exportField-mapped exports
File Importfile-importBulk create returns from a delimited file
Swap Serial Numberswap-serialOffered 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 / Personalizationsettings/…, personalization/…Configuration
Swap Serial Number moves a return’s serial balances the way a sale would. The swap job adds one to the serial you name as recorded by mistake and takes one off the replacement — right for a sale, backwards for a return, where the unit that really came back is the one that should gain. Its picker also offers only serials already in stock, which a returned unit usually is not. Correct a wrong serial on a return by correcting the return, not with a swap. How the swap works is under POS General › Supervisor tools.

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

TabPurpose
SearchSearch 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 DetailsBranch, 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)
AccountEntity Details, Bill To, Ship To, Intercompany; the entity is locked once lines are linked to a sales invoice
LinesReturned items, quantities, prices, tax, serial / batch / bin, costing, swap serial
PaymentSettlement 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
ContraOffsets 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-InvoiceSubmission, Progress, Notification, Cancellation; original e-Invoice reference and UUID picker; Skip E-Invoice
Main Details Tab - showing Branch, Location, Transaction Date, and other header fields
Main Details.

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

Lines Tab - showing plus button to add line items and existing items list
Lines: Create (+) to add a returned item.
Select Item dialog - showing searchable list of items with Item Code, Item Name, and UOM columns
Select Item.
Add Item screen - Item Details showing Item Code, Item Name, Sales Agent, UOM, Pricing Scheme, Unit Price
Add Item: item details, quantity, pricing and tax.
Sales Return listing showing one FINAL return in its Posting Status column
Warehouse: filter the listing's Posting Status to FINAL to see the returns to receive. Here the listing is unfiltered and its one return is already FINAL.
Payment tab with Create button
Payment tab: add a settlement line before FINAL.
Add Payment dialog showing settlement groups and methods
Settlement groups and methods come from the Cashbook applet.

Settings menu

Settings entryRoutePurpose
Application Settingssettings/field-settingsThe 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 Selectionsettings/default-selectionDefault branch, default location, tab order
Return Reasonssettings/return-reasons-settingsThe 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 Settingssettings/printable-format-settingsPrintable formats for INTERNAL_SALES_RETURN
Branch Settingssettings/branch-settingsPer-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 Settingssettings/workflow-settingsMakes 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 Templatesettings/email-templateEach 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 Placementsettings/translation-settings, settings/custom-field-placementRelabel; place tenant custom fields
Webhooksettings/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

PrerequisiteWhereWhy
Company, branch, locationOrganisationHeader 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_LOSSChart of AccountThe 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 reasonsSettings → Return ReasonsThe Reason dropdown is empty until you add codes
Customer with AR typeCustomerDecides DEBTOR vs DEBTOR_NON_TRADE
Settlement methods with cashbook and GL (for refunds on the Payment tab)CashbookOtherwise MISSING_CASHBOOK / MISSING_GL_CODE: STL_MTHD [code]
Serial / batch / bin tracking on the items being returnedInventory Item MaintenanceTracked items need matching allocations at FINAL
API permissions TNT_API_DOC_INTERNAL_SALES_RETURN_{CREATE,READ,UPDATE,DELETE}_TGT_GUIDSettings → permission listingsBranch targets scope the listing
E-Invoice profile (optional)My E-Invoice AdminAt 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)

SettingKeyWhat it controlsDefault
Default Branch / Default LocationDEFAULT_BRANCH, DEFAULT_LOCATIONPre-filled headernone
Details tab orderingtab-order keyThe 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 orderas listed above

Application Settings (settings/field-settings) — behaviour toggles this applet reads (off unless stated):

SectionSettingEffect when on
Gen Doc ListingDISABLE_GEN_DOC_LISTING, DEFAULT_TRANSACTION_DATE, DEFAULT_POSTING_STATUS, SORT_ORDERListing loads on search only; default date range, status filter and sort
Gen Doc ListingSEND_EMAIL_TO_FINAL_GEN_DOCS_ONLY, SEND_EMAIL_TO_VOID_GEN_DOCS_ONLYIn 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 & PrintENABLE_AUTO_POPUPOpens the printable after save
Selection SettingsWARN_EXCESS_RETURN_QUANTITYRefuses, 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 SettingsSHOW_INVOICES_FROMDefault date from filter of Search By Invoice / Cashbill
Doc SettingsENABLE_SALES_AGENT_AUTOFILL, ENABLE_EMPLOYEE_LOGIN_AUTO_DETECTION, CANNOT_EDIT_CURRENCY_RATE, SHOW_FOREX_DATA_SOURCEAs in the Sales Invoice applet
Workflow SelectionWORKFLOW_PROCESS_GUIDThe process every new return starts on, saved with that process’s Starting Status. A return keeps the process it was created with
Workflow SelectionFINAL_STATUS_GUIDHolds 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 DetailsENABLE_BRANCH_FILTERCustomer search scoped by branch
LinesENABLE_ITEM_NAME_MAX_LIMIT + ITEM_NAME_MAX_LIMITLine editing rules
Line PermissionWARN_ZERO_UNIT_PRICE_BEFORE_ADD, DISABLE_EDITING_AMOUNT_TXNZero-price prompt; locked transaction amount
PaymentENABLE_EDIT_PAYMENT_DATE, ENABLE_EDIT_SETTLEMENT_FINALPayment 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
ContraEDIT_CONTRA_TXN_DATE, CONTRA_DATE_SAME_AS_DOC_DATE_TXNContra 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 CardMANDATORY_CARD_NO, MANDATORY_NAME, MANDATORY_CARD_ISSUER, MANDATORY_CARD_EXPIRY, MANDATORY_APPROVAL_CODE, MANDATORY_BATCH, MANDATORY_CARD_TYPE, MANDATORY_CVVCard fields required on a card refund line
MenusHIDE_INTERCOMPANY_MENU, HIDE_FILE_EXPORT_MENURemove 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_PAYMENT is 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_FINAL re-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_CONTRA shows 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

AreaHow it is configured
Status flowDRAFT → FINAL → VOID; Discard on a draft.
Posting at FINALThe company’s posting include/exclude list (which posting steps run at FINAL), via the Generic Document Primary Processor.
WorkflowSettings → 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).
PrintablesSettings → Printable Format Settings.
EmailSettings → 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-InvoiceINTERNAL_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.
IntercompanyIntercompany 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):

GroupCodes
ButtonsSHOW_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 amountsSHOW_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 columnsSHOW_ARAP_PNS, SHOW_ARAP_SETTLEMENT, SHOW_ARAP_DOC_OPEN, SHOW_ARAP_CONTRA, SHOW_ARAP_BAL
Document numbersSHOW_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

FieldMeaningRequiredNotes
Company, Branch, LocationReceiving branch and stock locationYesDelivery Branch / Location shown when enabled; a warning appears if they differ from the header
Transaction DateReturn dateYesLocked-period check at FINAL
ReasonWhy the goods came backNo, unless a setting requires itOnce 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 RateDocument currencyCurrency yesRate copied from the source invoice on knock-off; lockable
Sales AgentEmployee creditedNoPicking 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 CardHeader attributesNoUse 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)

FieldMeaningRequiredNotes
ItemReturned itemYesFrom 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, UOMReturned quantityYesQuantity 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 AmountValue creditedNet and transaction amounts requiredA manually changed price is kept on edit (no longer reset to the pricing scheme)
Tax Code, Tax AmountTax reversalFrom item or schemePosts 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 itemsMatch line quantity at FINALSwap Serial is offered on FINAL documents but is not the way to correct a return (see the warning under the menu table)
Costing DetailsA grid of company, location, quantity and four unit costsRead-onlyAlways 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

StatusMeaningAllowed next
DRAFTEditable; no stock or GL effectFINAL, Discard
FINALNumbered 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
VOIDReversed with a void reasonnone

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

DrCrAmountGL code source
Sales Return (SALES_RETURN), or the line’s own GL codeNet amount per lineThe 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 amountCompany default GL
Debtor (DEBTOR / DEBTOR_NON_TRADE)Total including tax, less any Payment-tab refund — one line, the balance of all the othersCompany default GL by customer AR type
Cashbook GLEach Payment-tab (refund) line, less any settlement charge on the method, which posts to the company’s SETTLEMENT_CHARGES codeSettlement 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.

A header Group Discount on a return credits the customer twice the discount. This is a known issue, reported to engineering. The Group Discount boxes add one discount line, using the group-discount item set on the branch, or the company’s when the branch has none. That line is saved with the opposite posting sign to every other line on the return, and it is not treated as a return line, so it posts to Sales rather than Sales Return. A customer brings back an ultraportable laptop sold for RM 1,000 and you take a RM 50 group discount off the return: the screen shows RM 950, but the journal posts Dr Sales Return 1,000, Dr Sales 50, Cr Customer 1,050. It should credit the customer RM 950. The customer is credited RM 100 too much, sales are understated by RM 50, and sales returns are overstated by RM 50. How you spot it: a Sales debit on a sales return journal, or a customer credit larger than the return’s total on screen. Until it is fixed, take the discount off the line prices (unit discount) and leave the Group Discount boxes empty. If a return already went through, a journal entry alone corrects the ledger but not the return’s own balance, which the customer statement and ageing read. Raise a Sales Debit Note for twice the discount and contra it against the return; the note credits Sales, so move half of it from Sales to Sales Return with a journal entry. A discount row copied from the invoice by Search By Invoice is different: it takes the return’s own sign and posts correctly (see the Search tab).

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:

WhatAfter the returnWhat it does not touch
JournalDr Sales Return 3,800, Cr the customer 3,800No cost-of-goods-sold line. Cost of goods sold is the month-end journal
Stock at GS-KV-01One more laptop, valued at RM 2,950 — the average standing just before the returnNot 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 holdsNothing is paid out unless you record a refund on the Payment tab
The original invoiceStill FINAL, still open at +3,800The 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-invoiceWhere 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 tabThe 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

FigureWhere it comes fromWhen it is fixed
Line price and amount, from Search By InvoiceCopied from the invoice line and apportioned to the quantity you returnStored 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 OpenThe 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
BalanceDoc Open plus every contra recorded against the returnRe-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 stockThe item’s moving-average price just before the return in the company’s stock historyCalculated 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 amountsBuilt by the journal job from the return’s linesTaken 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:

  1. 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.
  2. 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.
  3. In Stock Balance, the item at the return’s location has gone up by the quantity you took back.
  4. 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.
  5. 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

Troubleshooting

SymptomCauseFix
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 ResolveCompany default GL codes missing, or the customer’s AR type — the journal job runs after FINAL and failsSet 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 amountA 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 ownSet 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,050The 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 tenantTake 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 emptyNo return reasons configuredSettings → Return Reasons
Lines copied from Search By Invoice show zero amountsAn older build did not apportion amountsFixed: 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 matchSearch By Invoice checks that the invoice’s customer and branch match the return headerSet the header branch and customer to match, or start from Search
Entity ID cannot be changedLines are linked to a sales invoiceRemove the linked lines first, or create a new return
Edit line resets the price you typedOlder build bugFixed; upgrade
Customer name blank on the listingOlder build bugFixed
Contra date not what you expectedA 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 dateSet the toggle, or EDIT_CONTRA_TXN_DATE to type the date
Cannot add a Payment lineDocument is FINAL/VOID/DISCARDED or lockedAdd 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 valueThe 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 onlyOpen 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 tooReverse 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 userHIDE_*_MENU on and the SHOW_*_MENU codes are not registered for this appletTurn the hide off or request the codes
Batch Issue / Expiry date required on the batch tabTenant does not track batch datesHide them with HIDE_BATCH_ISSUE_DATE / HIDE_BATCH_EXPIRY_DATE (added for this applet)
Returned quantity larger than soldWARN_EXCESS_RETURN_QUANTITY off, or the line was added by item search rather than imported from the invoiceTurn 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 discountThe 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 backRemove 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

Related documentation

Last updated on