Sales Refund Note Applet (Internal)
Pay money back to a customer against a sale and record which items and which settlement methods it went out through. Finalising a refund note reverses the sale in the ledger and brings the quantity back into stock, so it is the document for a customer who is paid out; a return where nobody is paid, or a credit without a stock movement, has its own document. At a company with e-Invoice enabled a finalised refund note cannot be voided at all, because a void would not reach LHDN: you correct it with another document, or ask for its e-invoice to be cancelled within 72 hours.
Your job, and the screen for it
| The job | Screen or tab | Read |
|---|---|---|
| Refund a customer against an invoice or cash bill — fill in the header first: the note saves itself once it has a customer and one line (not yet tested on a live tenant) | Internal Sales Refund Note › +, then the Search tab (Search By Invoice or Search By Cashbill) | Create |
| Take a discount off the refund — use a unit discount, not the Group Discount boxes, whose line is built with the wrong sign: the opened note’s FINAL then refuses the payment you expect, and the listing’s FINAL posts the journal wrong | Lines tab | Create; Troubleshooting |
| Record how the money went back — FINAL refuses until the Payment total equals the Lines total | Payment tab | Create; Document behaviour settings |
| Post the refund: reverse the sale and bring the stock back — normally into the header’s delivery location, or its location when there is none | FINAL | Lifecycle and effects |
| Correct a finalised refund note at an e-Invoice company — VOID is refused there; inside 72 hours of validation you can request cancellation of its e-invoice, which reverses nothing in the books | E-Invoice tab › Cancellation sub-tab, approved in My E-Invoice Admin | E-Invoice tab |
| Set up numbering, settlement methods, return reasons and default GL codes — unchecked at FINAL, a gap leaves the journal missing or wrong | Organisation applet, Chart of Accounts applet, this applet’s Return Reasons Settings | Before you can use it |
Overview
Sales Refund Note (Internal) records money going back to a customer against a sale: which items, which settlement methods, and — where the tenant is registered for Malaysian e-Invoice — the refund note submitted to LHDN as e-Invoice document type 04, “Refund Note” (not a credit note, which is 02). It is the money-side counterpart of a Sales Return.
Server document type INTERNAL_SALES_REFUND_NOTE, short code ISRN. The registry serves the
v3 bundle (internal-sales-refund-note-applet-v3); v1 and v2 repositories also exist and are
not what ships.
Where it fits
| Document | What it does | |
|---|---|---|
| Upstream | Sales Invoice (Internal), internal sales cash bill (POS General) | What the refund is raised against; the Search tab finds them by customer or by document |
| This applet | Sales Refund Note (Internal) | Records the refund, its settlement, and the e-Invoice refund note (LHDN type 04) |
| Alternative | Sales Return (Internal) | Use when goods come back and the customer is not paid out |
| Alternative | Sales Credit Note (Internal) | Use to reduce a receivable without a stock movement (INTERNAL_SALES_CREDIT_NOTE is quantity 0) |
| Downstream | Intercompany | Where a branch intercompany setting names this document as its source, the counterparty document is created at once (mode AUTO) or queued under Intercompany › UNPROCESSED (mode MANUAL). A refund note is not one of the type pairs the processor assigns signs to, so test one mirror before you rely on it |
Screens and menus
Five menu entries:
| Menu item | Route | What it shows |
|---|---|---|
| Internal Sales Refund Note | internal-sales-refund-note | The listing, create panel and edit panel |
| Line Items | line-items | Cross-document line listing, one row per refund-note line, with the note number, date, branch, item, quantity, price, tax, amount and the customer on each row |
| Intercompany | intercompany | The intercompany transaction listing — UNPROCESSED (the processing queue) and PROCESSED (the generic-document intercompany links) |
| File Export | file-export | Batch export jobs: Report Name, Doc Type, Status, Error Message, Created Date, Updated Date, Actions |
| File Import | file-import | CSV import of refund notes |
The Intercompany and File Export entries are removed from the menu when
HIDE_INTERCOMPANY_MENU / HIDE_FILE_EXPORT_MENU are set — see
Feature visibility and permissions for why that is one-way.

Listing
Thirty-four columns, including a Group column, the three document numbers, Reference, Remarks,
Posting Status, Status, Branch Code, Currency, Customer Name, Sales Agent, Transaction Date, Amount
Txn, the five ARAP columns (PNS, Settlement, Doc Open, Contra, Balance), Created/Updated By and Date,
Client Doc Type and Client Doc 1–5, and the four GL analysis columns (GL Dimension, Segment, Profit
Center, Project — each shown by its own SHOW_* setting). Buttons above the grid: FINAL,
DISCARD, VOID, SINGLE/MULTIPLE PRINT.
Create
The + above the listing does not open a blank form. It creates an empty draft on the server at once and opens it in the edit panel, titled Create, with the same tabs as Edit. (The code also carries an older, separate create panel with a shorter tab list; the listing’s + does not open it.) Until that draft becomes a live one it is a temporary record that the listing never shows, so a draft you walk away from leaves nothing to clear up, and nothing to come back to.
It becomes live in one of two ways: you press SAVE, or the screen saves it for you the moment it has a branch, a location, a currency, a customer and at least one line, so fill in the header, including Sales Agent and the currency rate, before you add the first line. FINAL only appears once the draft is live. We have not tested the automatic save on a live tenant: to see it for yourself, add a customer and one line without pressing SAVE, close the panel, and look for the note in the listing.
| Tab | What the screen does not tell you |
|---|---|
| Main Details | Company, Branch and Location are the three boxes SAVE waits for. Picking a branch sets the company and sets Currency to the branch’s currency with a rate of 1; unless delivery locations are hidden, the branch also becomes the delivery branch and the location you pick becomes the delivery location. Transaction Date starts as today, and changing it moves the date of every payment line with it. The switch that makes payment dates editable is not offered for this applet on Application Settings, so it applies only where a tenant already holds it. |
| Main Details — Sales Agent | Sales Agent is checked only where this applet’s settings hold the mandatory Sales Agent tick, and the shared settings screen does not offer that tick for this applet, so on a tenant that never set it SAVE and FINAL go through with no agent. If commission or sales reports depend on the agent, making sure every refund carries one is the job of whoever reviews refunds before FINAL. |
| Account | Four sub-tabs: Entity Details, Bill To, Ship To and Intercompany. Picking the customer, whether here or by pulling lines from an invoice on the Search tab, copies the customer’s name, e-mail, phone, ID number, e-Invoice tax ID and SST number onto the note, and fills Bill To and Ship To with the customer’s default address, or its only address. It is a copy taken at that moment: correcting the customer record afterwards does not change a note already raised. |
| Account — currency | A customer whose own currency differs from both your base currency and the note’s switches the note to that currency and sets the rate to 0. Press the button inside the Currency Rate box to fetch a live rate, or type one, before you add lines. |
| Lines | Lines come from the Search tab (Search By Customer, Search By Invoice or Search By Cashbill; once lines come from an invoice the cash-bill search is hidden, and the other way round), from +, or by typing an item code into the scan box and pressing Enter; the scan shows stock at the note’s location. |
| Lines — Group Discount | The Group Discount boxes add one discount line using the group-discount item set on the branch, or else on the company; with neither set you get Please configure the default group discount item code. Read Troubleshooting before you use it: the discount line is built with the wrong sign, and the journal it produces does not match the note’s total. The percentage box appears to do nothing when you press Enter, so type the discount as an amount (not yet tested on a live tenant: on one draft, enter 10 in the percentage box and see whether a discount line appears). |
| Lines — branch and location | Every SAVE and FINAL writes the note’s branch and location onto every line, and its delivery location as well when the header has one, so the goods on one note normally come back into one location (lines pulled from an invoice can keep their own delivery location where the header has none and the branch allows lines to differ). Goods that belong in two stores normally need two notes. |
| Payment | Each line pays the customer back through a settlement method. The list offers only methods that are active and assigned to the note’s branch, so a method missing here is assigned under that branch in Organisation. Each needs a cashbook, which the journal credits. A new payment line’s Amount starts at 0.00 rather than at what is still owed: type it. The date is the note’s Transaction Date and is locked (see Main Details). FINAL refuses until the Lines total and the Payment total are equal (see the balancing rule under Document behaviour settings), and checking that the money really went out through that method on that day is the cashier’s job, done against the cashbook or card terminal settlement. |
Edit
The edit screen builds its tab strip from an ordered list, so the tab order is configurable per
tenant (SALES_REFUND_NOTE_DETAILS_TAB_ORDER). The full set, in default order:
Search · Main Details · E-Invoice · Account · Lines · Payment · ARAP · Delivery Details · Payment Adjustment · Department Hdr · TraceDocument · Contra · Doc Link · Attachments · Export.
Search, Main Details, E-Invoice, Account and Lines cannot be hidden. HIDE_PAYMENT_TAB hides Payment
and Payment Adjustment together, HIDE_MAIN_CONTRA_TAB hides TraceDocument and Contra together, and
the others have a hide key each. Each starts expanded (in panel mode) according to its EXPAND_*
key. Buttons: FINAL and SAVE at the top, DISCARD and VOID under Main Details.
E-Invoice tab
Four sub-tabs, backed by real services against the LHDN submission tables (in panel mode a Communication panel takes the place of Notification):
| Sub-tab | Shown when | What it shows |
|---|---|---|
| Submission | always | The document’s e-Invoice submission state and the pending-submission, pending-posting and batch-pool queues |
| Progress | e-Invoice is enabled and posting status is FINAL | Submission history against IRB |
| Notification | always | The e-Invoice notification queue |
| Cancellation | e-Invoice is enabled and posting status is FINAL | The e-invoice’s status and the hours left to cancel it; Request for Rejection raises a cancellation request, offered only while the e-invoice is Valid and less than 72 hours have passed since validation |
Configuration
Before you can use it
| What | Where | Why |
|---|---|---|
Branch, location, document numbering for ISRN | Organisation | Header context and the three running numbers |
| A sales agent (employee) | Employee Maintenance | SAVE and FINAL on the opened note abort with Please select a Sales Agent to proceed. (the listing’s FINAL does not check) only where this applet’s settings hold the mandatory Sales Agent tick, which the shared settings screen does not offer for this applet |
| A customer entity with an AR/AP type | Customer | The journal’s customer line, built only when the other lines leave a balance |
Default GL codes for SALES_RETURN, SALES and OUTPUT_TAX, and the debtor mapping | Chart of Accounts | Not checked at FINAL — the posting job runs after the status change. Lines pulled in on the Search tab, or added with +, are sales-return lines and take SALES_RETURN (a trade-in line takes the trade-in code); lines from the knock-off tabs take SALES. A line whose code resolves nowhere is silently dropped and the customer line takes up the difference (see Troubleshooting). The debtor mapping is used only when the lines do not balance on their own: unmapped, the job fails with MISSING_DEFAULT_GL_CODE. SALES_DISCOUNT is never read |
| Default GL codes — when the posting job fails | — | When the job fails, the note stays FINAL with no journal. Once the mapping exists, ask BigLedger support to post the note’s journal. You cannot post or re-post one yourself: the Missing Journal checks in Trace Document and the Missing Journal screens do not accept this document type, and Trace Document’s Repost button is not offered for it either |
| Tax codes | Tax Configuration | Line tax; hidden by HIDE_TAX_CONFIG_SELECTION |
| Settlement methods, each with a cashbook | Organisation | The Payment tab pays the customer through them, and the journal credits each method’s cashbook account; a method with no cashbook fails the posting job with MISSING_CASHBOOK |
| A default printable format | Settings → Printable Format Settings | SINGLE/MULTIPLE PRINT and the auto pop-up after FINAL |
| Return reasons | This applet’s Return Reasons Settings | The Reason field on a line, unless HIDE_REASON is on |
| Company e-Invoice registration | Organisation → Company | Turns on the E-Invoice tab’s Progress and Cancellation sub-tabs — and hides the opened note’s VOID button; the server refuses VOID for every refund note of that company |
Applet settings
Settings live on the shared settings screen (field-settings).
Settings menu: Application Settings, Default Selection, Printable Format Settings, Return Reasons Settings, Branch Settings, Workflow Settings, Custom Resource Bundle Configuration — plus Release Notes and Applet Log routes that have no menu entry. Personalization has one entry, Default Selection.
The keys the applet reads, grouped by what they control. Several are read but not offered on the
shared screen for this applet code (internalSalesRefundNoteApplet); those are named in the rows and
in the list after the table, and keep whatever value the tenant already holds.
| Group | Keys | What they control |
|---|---|---|
| Layout | VERTICAL_ORIENTATION, and the fifteen EXPAND_* keys (EXPAND_MAIN_DETAILS, EXPAND_ACCOUNT, EXPAND_LINE_ITEMS, EXPAND_PAYMENT… ) | Tabs versus expansion panels, and which sections start open |
| Status flow | DEFAULT_STATUS, DEFAULT_POSTING_STATUS, DEFAULT_TRANSACTION_DATE, FINAL_STATUS_GUID, WORKFLOW_PROCESS_GUID | The custom-status workflow. FINAL only appears when the document’s current status matches FINAL_STATUS_GUID, or that key is unset |
| Buttons | HIDE_GENDOC_FINAL_BUTTON, HIDE_GENDOC_VOID_BUTTON, HIDE_GENDOC_DISCARD_BUTTON, HIDE_GENDOC_SAVE_BUTTON, SHOW_DOCUMENT_DELETE_BUTTON | Which document actions are offered |
| Listing | DISABLE_GEN_DOC_LISTING, SORT_ORDER, FUZZY_SEARCH_COLUMNS, HIDE_AMOUNT_TXN_MAIN_LISTING, HIDE_SERVER_DOC_1/2/3, HIDE_CREATED_BY_DETAILS, ENABLE_BRANCH_FILTER | The grid: which columns, how it sorts and searches, whether branch filtering applies |
| Refund control | WARN_EXCESS_RETURN_QUANTITY, SALES_RETURN_WITH_PAYMENT, ENABLE_EDITING_UNIT_PRICE_STD | Whether a line may exceed what was invoiced; whether FINAL waits until the note’s receivable balance is 0 (ARAP balance must be 0 for finalization on the opened note, No Payment beside the number on the listing’s FINAL); whether the standard unit price may be edited. The first two are not offered on the shared screen for this applet |
| Line grid and item form | HIDE_QTY_BASE, HIDE_QTY_UOM, HIDE_UOM_TO_BASE_RATIO, HIDE_AMOUNT_*, HIDE_DISCOUNT_AMOUNT_EXCL_TAX, HIDE_MULTI_DISCOUNT, HIDE_TOTAL_DISCOUNT_AMOUNT, HIDE_UNIT_DISCOUNT*, the eight HIDE_UNIT_PRICE_*, HIDE_REASON, HIDE_LOCATION, HIDE_DELIVERY_BRANCH, HIDE_DELIVERY_LOCATION, HIDE_COSTING_DETAILS, HIDE_TAX_CONFIG_SELECTION, HIDE_WHT_CONFIG_SELECTION, DISABLE_ITEM_LISTING, ENABLE_ITEM_NAME_MAX_LIMIT + ITEM_NAME_MAX_LIMIT | What appears on the Lines tab and the add/edit line panel. The batch-number hide is offered too and read by nothing here (earlier versions of this applet and the Sales Invoice honour it); the bin-number hide does one thing only, on the settings screen itself — it hides and clears the mandatory bin number checkbox beside it |
| Header fields | CANNOT_EDIT_CURRENCY_RATE, SHOW_FOREX_DATA_SOURCE, HIDE_TRANSACTION_DATE, HIDE_PERMIT_NO, HIDE_TRACKING_ID, HIDE_SALES_AGENT, HIDE_CLIENT_DOC_TYPE, HIDE_CLIENT_DOC_1…_5, ENABLE_EMPLOYEE_LOGIN_AUTO_DETECTION | Which header fields render and whether the sales agent is derived from the logged-in employee |
| GL analysis | SHOW_GL_DIMENSION, SHOW_PROFIT_CENTER, SHOW_PROJECT, SHOW_SEGMENT | The four analysis columns and fields (opt-in) |
| Tabs | HIDE_ATTACHMENT_TAB, HIDE_MAIN_CONTRA_TAB | Hide those sections; the contra hide removes TraceDocument as well, and has no switch for this applet. HIDE_EXPORT_TAB is read as well but has no switch either (see below). The line-level doc-link and related-documents hides beside them on the settings screen are read by nothing in this applet (the Sales Invoice and Sales Quotation honour them) |
| Document popup | HIDE_DESCRIPTION, HIDE_SETTLEMENT_TAB, HIDE_TRACE_DOCUMENT_TAB, HIDE_DOC_LINK_TAB, HIDE_ATTACHMENT_TAB | The popup that opens from the Doc No. cell of a knock-off grid on the add-line screen (KO for Sales Order, Job Sheet, Delivery Order or Sales Invoice, each shown only where the company’s document-flow setting enables it): the description hide removes its Description row, the tab hides remove its tabs. The refund note’s own Lines tab never reads the description hide — if a description vanished from a line, the cause is elsewhere |
| ARAP and contra | HIDE_ARAP_PNS, HIDE_ARAP_SETTLEMENT, HIDE_ARAP_DOC_OPEN, HIDE_ARAP_CONTRA, HIDE_ARAP_BAL, EDIT_CONTRA_TXN_DATE | ARAP columns and whether a contra transaction date may be edited (that last switch is not offered for this applet) |
| Serial numbers | ENABLE_DRAFT_LOCK_SERIAL_NUMBER_CHECKING | Blocks a serial number already held by another draft |
| After FINAL | ENABLE_AUTO_POPUP | Opens the printable PDF after FINAL on the opened note (only where SALES_RETURN_WITH_PAYMENT is also on), and prints the listing’s selection when its FINAL is pressed — even if FINAL was refused, so a printout is no proof of posting |
Five of the keys above — ENABLE_DRAFT_LOCK_SERIAL_NUMBER_CHECKING, HIDE_MULTI_DISCOUNT,
DISABLE_ITEM_LISTING, DEFAULT_STATUS and FUZZY_SEARCH_COLUMNS — are missing from the applet’s own
settings model but are read, and the shared screen offers them for every applet. Five more keys are
undeclared and move money and master data, and no screen shows them for this applet: AUTO_SETTLE_CONTRA gives the contra picker a total-amount box with AUTO
SETTLE and RESET, to spread one amount across the listed documents; CONTRA_DATE_SAME_AS_DOC_DATE_TXN
dates each contra on the refund note’s own date instead of today, which matters at a period boundary;
and DEFAULT_CUST_TYPE (CORPORATE when unset), DEFAULT_COUNTRY and DEFAULT_CURRENCY are the type,
country and currency given to a customer created from this applet’s customer picker.
Read at runtime with no control on the shared screen — the tab-hide keys
HIDE_PAYMENT_TAB, HIDE_DELIVERY_DETAILS_TAB, HIDE_DEPARTMENT_HDR_TAB, HIDE_MAIN_ARAP_TAB,
HIDE_MAIN_CONTRA_TAB, HIDE_DOC_LINK_TAB and HIDE_EXPORT_TAB, the document popup’s HIDE_SETTLEMENT_TAB and
HIDE_TRACE_DOCUMENT_TAB, and the two menu-hide keys HIDE_INTERCOMPANY_MENU and
HIDE_FILE_EXPORT_MENU. The shared screen does not offer their toggles for this applet.
(HIDE_SEARCH_TAB is read only by the older create panel that + does not open.) They keep
whatever value the tenant already holds; on a tenant that has never set them every gated tab, the
popup’s tabs and both menus render.
Return Reasons Settings is an applet-local screen: a listing of reason rows with Reason Code, Reason Name and a Default Selection flag, with ADD and SAVE panels. Those are the values the line-level Reason field offers.
Workflow Settings links a company to a workflow process designed in
Workflow Design. The process a new refund note starts
on (WORKFLOW_PROCESS_GUID) and the Final status (FINAL_STATUS_GUID) are chosen on Application
Settings › Workflow Selection. Without a process chosen there, a refund note carries no workflow
status. With one chosen and a Final status set, the opened note’s FINAL waits for that status and
finalising leaves it unchanged (see the Status flow row above). The listing’s FINAL does not check
the workflow status, so it is no approval control: whoever approves refunds also restricts the listing.
Branch Settings and Default Selection / Personalization → Default Selection follow the standard pattern: applet-wide branch, location and company defaults, overridable per user.
Document behaviour settings
| Behaviour | Governed by | Effect |
|---|---|---|
| FINAL offered | HIDE_GENDOC_FINAL_BUTTON off (or the SHOW_GENDOC_FINAL_BUTTON permission), document ACTIVE, posting status empty or DRAFT, and the current status equals FINAL_STATUS_GUID (or that key is null). An invalid serial number greys the button out rather than hiding it | Sends { posting_status: 'FINAL' } |
| FINAL blocked when unbalanced | not configurable | See the balancing rule below |
| DISCARD offered | HIDE_GENDOC_DISCARD_BUTTON off, document ACTIVE, posting status empty or DRAFT | |
| VOID offered | On the opened note: HIDE_GENDOC_VOID_BUTTON off, posting status FINAL, and e-Invoice not enabled. On the listing: the same hide, and every selected row FINAL; the company’s e-Invoice status is not checked there | The server then refuses a note at an e-Invoice company, a note linked to an e-invoice, and a note a later document was raised from (see E-Invoice tab) |
| Everything locked | a generic-document lock is held on the record | FINAL, DISCARD and VOID are withdrawn and SAVE is greyed out |
The PNS / STL balancing rule is a client-side check. Before sending FINAL the applet compares the total of the product-and-service lines (PNS) with the total of the settlement lines (STL) and, if they differ, shows PNS total amount (x) must equal STL total amount (y) for finalization and sends nothing; the listing’s FINAL makes the same test and greys out while a selected note fails it.
The opened note counts each line with its sign and the listing does not, so the two disagree on a note with a group-discount line (see Troubleshooting) or a trade-in line: on RM 1,000 of goods less a RM 200 trade-in, the opened note wants RM 800 and the listing RM 1,200. Finalise such a note from the opened note; paying RM 1,200 to satisfy the listing overpays the customer. It is enforced in the browser, not by the backend: a refund note created through the API or the file import is not subject to it.
Feature visibility and permissions
The applet checks about forty client-side permission codes. One is seeded:
SHOW_TRANSACTION_DATE.
The others — including SHOW_GENDOC_FINAL_BUTTON, SHOW_GENDOC_VOID_BUTTON,
SHOW_GENDOC_DISCARD_BUTTON, SHOW_EDIT_SETTLEMENT_FINAL, SHOW_INTERCOMPANY_MENU,
SHOW_FILE_EXPORT_MENU, EXCLUDE_ACCOUNT_CODE_ITEM_TYPE_AT_ITEM_SEARCH and the SHOW_*
counterparts of every hideable column — are not defined for this applet and therefore cannot be granted
to any role, team or user.
The practical consequence: every HIDE_* setting on this applet is all-or-nothing. Hide the
Intercompany menu and no role can get it back; hide the FINAL button and nobody can post.
Server-side permissions are unaffected: TNT_API_DOC_INTERNAL_SALES_REFUND_NOTE_CREATE_TGT_GUID,
…_READ_…, …_UPDATE_… and …_DELETE_… are all defined and used.
Fields
Main Details
Document type (read-only, INTERNAL_SALES_REFUND_NOTE), Doc No (Tenant / Company / Branch), Client
Document type, Client Doc 1–5 No, Customer, Sales Agent (required only where the mandatory Sales Agent tick is held — see
Create), Transaction Date, Reference, Remarks, Permit No, Tracking ID, Currency and Currency
Rate. Each of the client-document and reference fields is hidden by its own HIDE_* key; the
currency rate is locked by CANNOT_EDIT_CURRENCY_RATE.
Lines
Item Code, Item Name, UOM, UOM-to-base ratio, pricing scheme, the eight unit-price variants,
Quantity Base, unit / multi / total discounts, tax and withholding-tax codes, Description, Reason
(from Return Reasons Settings), Location, Delivery Branch and Delivery Location, plus batch, bin and
serial sub-tabs where the item uses them. Each hideable by its HIDE_* key.
Payment and Payment Adjustment
Payment holds the settlement lines that pay the customer back — these are the STL side of the balancing rule. Payment Adjustment holds settlement adjustments against them, on its own panel.
Lifecycle and effects
| Posting Status | Meaning | Allowed next |
|---|---|---|
empty / DRAFT | Editable | FINAL, or DISCARDED |
FINAL | Posted; document locked | VOID — except at an e-Invoice company, for a note linked to an e-invoice, and for a note a later document was raised from; there you correct with another document (see E-Invoice tab) |
VOID | Reversed by the void processors | — |
DISCARDED | Abandoned draft | — |
The server also carries a converter from a cash bill to a refund note. The till’s Cancel on a finalised bill uses it, so refund notes can appear here that nobody raised in this applet: the bill stays FINAL and a FINAL refund note is created from it. A failed conversion is not reported back, so after a Cancel look for the refund note here before treating the sale as reversed. Search By Cashbill on the Search tab is this applet’s own way of doing the same thing.
A new note starts as a temporary draft the listing does not show, and becomes a live draft on the first SAVE or, before that, automatically once it has a branch, location, currency, customer and one line (see Create).
What posting does:
| Item | Value |
|---|---|
| Document type | INTERNAL_SALES_REFUND_NOTE, short code ISRN |
| Direction | The reverse of a sales invoice: money back to the customer, and stock back into the location on the line |
| The journal | The sales mapping: debit the goods lines and OUTPUT_TAX, credit each payment line’s cashbook account. Lines pulled in on the Search tab, or added with +, are sales-return lines and debit SALES_RETURN (a trade-in line is credited to the trade-in code); lines from the knock-off tabs are refund-note lines and debit SALES. A line’s discount is netted off before it posts. A customer (receivable) line is built from whatever the other lines leave unbalanced — none on a note finalised from the screen, where FINAL waits for the payment total to equal the lines, so long as every line resolves a GL code, none carries withholding tax (which the journal does not post) and there is no group-discount line |
| Which GL code | Goods: line GL → header GL → the item’s company link for that code → company default. Tax: the company’s OUTPUT_TAX default only. An account-code item with no linked GL code is refused at SAVE and FINAL (ACCOUNT_CODE_ITEM_MISSING_GL_CODE). Any other line with no GL code is silently left out, and the customer’s line, worked out from the lines that remain, is off by the same amount: the journal posts wrong with no error. Only then is the debtor mapping read; unmapped, the posting job — not FINAL, which has already succeeded — fails with MISSING_DEFAULT_GL_CODE, and a customer with no AR/AP type fails it with TOTAL_DEBITS_AND_TOTAL_CREDITS_NOT_BALANCES, leaving the note FINAL with no journal |
| Stock | Stock in at the line’s delivery location, falling back to the line store, the header store and the branch default. This applet writes the header’s location, and its delivery location when there is one, onto every line on each save, so in practice the stock normally comes back into the header’s delivery location if it has one, otherwise its location (see Create › Lines for the exception) |
| What VOID reverses | The void jobs your tenant has switched on: the stock lines are voided and balances recomputed, the journal is reversed, knocked-off lines are reopened and contras are reversed |
Related applets
- Sales Invoice (Internal) — the document a refund is normally raised against; Search By Invoice reads it.
- POS General — the source of the cash bills Search By Cashbill reads.
- Sales Return (Internal) — same stock effect, no pay-out.
- Sales Credit Note (Internal) — reduces the receivable without moving stock.
- Customer — the entity, its AR type and its credit terms.
- Employee Maintenance — the Sales Agent.
- Organisation — branches, locations, numbering, settlement methods, intercompany configuration and the company e-Invoice registration.
- Chart of Accounts — the sales-return, sales, output-tax and debtor GL codes.
- Tax Configuration — line tax codes.
- Purchase Refund Note (Internal) — the purchase-side refund document, with its own Revenue, Expense and Settlement lines.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Please select a Sales Agent to proceed. on SAVE or FINAL | The Sales Agent field is empty and this applet’s settings hold the mandatory Sales Agent tick; the check runs before anything is sent | Set the sales agent, or switch on ENABLE_EMPLOYEE_LOGIN_AUTO_DETECTION to derive it from the logged-in employee |
| PNS total amount (x) must equal STL total amount (y) for finalization | The refunded line total does not equal the settlement total. Client-side; nothing was sent | Adjust the Payment tab so the settlement equals what the customer is owed. On a note with a trade-in line, trust the opened note’s figure rather than the listing’s; on one with a group-discount line neither figure is right (see the group-discount row below) |
| The currency rate cannot be ZERO or negative. on SAVE | The document currency differs from base and the rate is 0 or below | Enter a rate; if the field is locked, clear CANNOT_EDIT_CURRENCY_RATE |
| No FINAL button on a draft | HIDE_GENDOC_FINAL_BUTTON is on (and the SHOW_GENDOC_FINAL_BUTTON permission cannot be granted), the document is not ACTIVE, or the workflow status does not match FINAL_STATUS_GUID. A FINAL that is there but greyed out means a serial number is invalid | Check the workflow status first; then the setting |
| No VOID button on a finalised note, or the listing’s VOID returns …cannot be changed to VOID because e-invoice is enabled | e-Invoice is enabled for the company: the opened note hides VOID and the server refuses it from the listing. …linked to an e-invoice and …already been linked with the following documents are the other two refusals | Inside 72 hours, request cancellation on the Cancellation sub-tab; otherwise correct with another document (see E-Invoice tab). For a linked later document, void or discard that first; if it cannot be voided either (an e-Invoice company), correct with another document instead, and a link left by a later document already voided still blocks |
| Every button disappears on one document | A generic-document lock is held on the record | Release the lock; check whether another session has the document open |
| A refund line can be added for more than was invoiced | WARN_EXCESS_RETURN_QUANTITY is off, and the shared screen offers no switch for it on this applet | It can be set only where the tenant’s settings record already holds it, or through BigLedger support; with it on, the Search screens refuse a selected line where already-returned plus this return exceeds the invoiced quantity — but not Search By Customer’s Add All, which copies the invoiced quantity unchecked. Either way, whoever reviews refunds before FINAL compares each line with the invoice |
| The Intercompany or File Export menu is missing and cannot be restored per role | HIDE_INTERCOMPANY_MENU / HIDE_FILE_EXPORT_MENU are set, and SHOW_INTERCOMPANY_MENU / SHOW_FILE_EXPORT_MENU are not defined as permissions | The shared screen offers no switch for either on this applet, so clearing them is a change to the tenant’s settings record: ask BigLedger support |
| No tab-hide toggles on Application Settings | The shared settings screen does not offer them for this applet | The settings keep whatever value the tenant already holds |
Note is FINAL and Trace Document → Journal Txn is empty; the reason BigLedger support reads is MISSING_DEFAULT_GL_CODE, TOTAL_DEBITS_AND_TOTAL_CREDITS_NOT_BALANCES or MISSING_CASHBOOK. No screen shows it | A line was dropped (no GL code at any level) or the payment lines do not cover the goods, so the journal needed a customer line, and the debtor mapping is missing or the customer has no AR/AP type; or a settlement method has no cashbook. FINAL succeeded and the journal job failed afterwards | Fix the cause in Chart of Accounts, the item, the customer or the settlement method, then ask BigLedger support to post the note’s journal: no screen posts or re-posts one for this document type |
| No error, but trade debtors no longer agrees with the debtor ageing, and sales returns or SST are short by the same amount | A line resolved no GL code and was left out of the journal; the customer’s line was built from the lines that remained, so it is off by the same amount and the journal posted. The note 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 note uses has a company default (tax has no item-level code), or every item its own | Set the GL code on the line, the item-company link, or as a company default first (for SST, only the company’s OUTPUT_TAX default counts). Then post a correcting journal that rebuilds the dropped line from its own type and mapping (the account and side its line would have posted) and offsets it on the customer’s control account, the one its AR/AP type selects, or, where VOID is allowed (not at an e-Invoice company), void the note and record it again. Trace Document’s Repost is not offered for a refund note; BigLedger support can rebuild the journal |
| You refunded RM 1,000 less a RM 50 group discount and paid out RM 950: the opened note refuses FINAL with PNS total amount (-1050.00) must equal STL total amount (950.00); from the listing it posts, and the journal debits RM 1,050 (RM 1,000 to sales returns, the RM 50 discount to sales), credits cash RM 950 and credits the customer RM 100 | The applet builds the group-discount line with the opposite sign to every other line on the note, so the discount counts as more refund: twice the discount. The note’s screen total (RM 950) is right; the opened note’s check and the posting are not. Worked from the code, not yet observed on a live tenant (a known issue, reported to engineering) | Take the discount off the line prices (unit discount) rather than using the Group Discount boxes. If a note already went through, check Trace Document → Journal Txn and correct it with a journal entry. Do not pay out RM 1,050 to get past the check |
Nothing opens after FINAL although ENABLE_AUTO_POPUP is on | On the opened note the PDF opens automatically only where SALES_RETURN_WITH_PAYMENT is on, and only if a default printable is set; on the listing, SINGLE/MULTIPLE PRINT stays greyed out until one is set | Set one under Settings → Printable Format Settings, or print from the Export tab |
| An intercompany mirror document never appears | The row is still in the UNPROCESSED tab of the Intercompany listing (mode MANUAL), or no branch intercompany setting names this document type as its source | Open Intercompany → UNPROCESSED and check the Status and Used Config columns |
| Search By Invoice and Search By Cashbill cannot both be used | Once a line is linked to one document type the other tab is hidden | Raise one refund note per source document type |