Purchase Debit Note (Internal)
Bring a supplier’s balance down after their invoice has posted: an overcharge, a price correction, a short delivery or a rebate. It always lowers what you owe; an extra charge from a supplier is a Purchase Credit Note.
Your job, and the screen for it
| The job | Screen or tab | Read |
|---|---|---|
| Lower what you owe a supplier after their invoice has posted — an extra charge from them is a Purchase Credit Note instead | Purchase Debit Note listing, + | Overview |
| Start from the invoice being corrected | Edit form, Search Document tab (a new note, until its first save) | Create and edit forms |
| Offset the note against the supplier’s open invoices | Contra tab | Create and edit forms |
| Send a self-billed note to LHDN — an ordinary FINAL note goes to the matching queue instead | SELF-BILLED on the listing; the E-Invoice tab for its progress | Where it fits; Create and edit forms |
| Raise many notes from a file | File Import (Checking tab) | File Import |
| Check a finalised note posted | Trace Document tab, then the other places the check names | Verify one note in four places |
Overview
Finalising a purchase debit note reduces the amount you owe that supplier: the posting debits the supplier’s payable account and credits the purchase account (or the GL code on each line). The note then sits beside payment vouchers as something that knocks off open purchase invoices. It carries amounts and never moves stock. It is keyed by hand, pulled from a FINAL purchase invoice through Search Document, uploaded through File Import, or created by intercompany processing when a related company finalises a Sales Debit Note against yours.
Choosing the document is the clerk’s job, and the direction decides it. The backend fixes the direction per document type, not per setting:
| The supplier… | Use | What you owe |
|---|---|---|
| overcharged, gave a rebate or a price reduction after the bill, or billed goods that never arrived | this Purchase Debit Note | falls |
| billed a charge after the invoice (freight added later, a price increase, an under-charge) | a Purchase Credit Note (Internal) in this platform’s naming, or a further purchase invoice | rises |
| is taking goods back | a Purchase Return (Internal), which also moves the stock out | falls |
A supplier’s own debit note to you, which raises what you owe, is therefore recorded as a purchase credit note: the names follow your books, not the supplier’s paper, and a clerk who picks by the name on the supplier’s paper gets the direction backwards (Core concepts §6 explains the naming). The e-Invoice turns the other way again: a purchase debit note marked self-billed is submitted to LHDN as a Self-billed Credit Note, and a purchase credit note as a Self-billed Debit Note.
Where it fits
| Position | Document / applet | Why |
|---|---|---|
| Module | Purchasing, Financial Accounting, E-Invoice | Purchase-side adjustment that posts to the General Ledger and is an e-Invoice purchase document type. |
| Upstream | Purchase Invoice (Internal) | The invoice whose value is being reduced. The Search Document → Purchase Invoice tab lists FINAL purchase invoices, copies their lines into the debit note and links the two documents. |
| Upstream (knock-off) | Purchase Order (Internal), Purchase GRN (Internal) | The add-line screen’s KO For tabs let a debit-note line knock off an open purchase-order or GRN line. Each tab shows only when your company’s document-flow settings enable that line flow. |
| Upstream (intercompany) | Sales Debit Note (Internal) | When intercompany processing is set up between two companies in the tenant, finalising the seller’s Sales Debit Note queues a Purchase Debit Note in the buyer’s company. |
| Downstream | Payment Voucher (Internal), the Contra tab | The debit note’s open balance is consumed by contra against purchase invoices. The Purchase Report treats INTERNAL_PURCHASE_DEBIT_NOTE and INTERNAL_PAYMENT_VOUCHER as the two settlement document types against purchase invoices. |
| Downstream | Creditor Report | Shows the debit note’s ARAP balance against the supplier. |
| Downstream | My E-Invoice Admin | INTERNAL_PURCHASE_DEBIT_NOTE is in the platform’s e-Invoice purchase-document set; a FINAL debit note enters the purchase-document matching queue (or the submission flow when marked self-billed). |
| Sibling | Purchase Credit Note (Internal), Purchase Return (Internal) | The other purchase adjustment documents. Purchase Return also has amount signum +1 but moves stock; Purchase Credit Note has amount signum −1 (same side as an invoice). |
Screens and menus
The applet’s sidebar has three working menus plus Settings and Personalization:
| Menu | Route | What it is |
|---|---|---|
| Purchase Debit Note | internal-purchase-debit-note | The listing, with create / edit / bulk actions. |
| Line Items | line-items | A cross-document grid of every debit-note line, for analysis and line-level edits. |
| File Import | debit-note-file-listing | CSV upload that creates many debit notes at once. Removed from the sidebar when the HIDE_FILE_IMPORT_MENU setting is on and the user lacks the SHOW_FILE_IMPORT_MENU client-side permission. |
| Settings | settings/… | The applet’s own Application Settings, Default Selection, printable formats, branch settings, email templates, label wording (Custom Resource Bundle Configuration), Access Control and the server-side permission screens. Access Control sets rules a member must pass to open the applet at all: their network address, their device’s time zone or the time of day. |
| Personalization | personalization/personal-default-selection | Per-user Default Selection. |
Listing
The listing shows documents filtered by the applet’s default posting status and date window (see Applet settings). Open the hamburger icon for Advanced Search. Discarding a draft does not take it off the listing: a DISCARDED draft stays in view unless the default posting status names a single status. Use the Posting Status multi-select to show discarded drafts alone, or to hide them.


Bulk actions on the listing

| Button | What it does | When it is disabled |
|---|---|---|
| FINAL | Posts every selected DRAFT (journal, ARAP, queues). | No row selected, or a selected row is not DRAFT. |
| DISCARD | Sets every selected DRAFT to DISCARDED. No GL impact. Client-side confirmation dialog Are you sure you want to DISCARD selected documents? | No row selected, or a selected row is not DRAFT. |
| VOID | Reverses every selected FINAL document. Client-side confirmation dialog Are you sure you want to VOID selected documents? Each note is sent on its own, so the server can refuse some (see Lifecycle and effects) while it voids the rest. | No row selected, or a selected row is not FINAL. |
| SINGLE/MULTIPLE PRINT | Generates PDFs of the selection with the default printable format. | The applet setting PRINTABLE (default printable format) is not set. |
| SELF-BILLED | Sets einvoice_self_billed = true on the selection so the e-Invoice is treated as a self-billed document. On a FINAL note it also takes the note out of the purchase-document matching queue and queues it for e-Invoice submission, and it is refused while the company’s e-Invoice status is not Enabled or the note is already queued. | Never. Pressed with no row selected, it sends an empty list. |
| SEND EMAIL | Emails PDFs of the selection using the Email Template, Recipient Email and CC List fields on the same row. | The applet setting HIDE_SEND_EMAIL_BUTTON is on (hides the button and its three fields). |

Documents are grouped by recipient address. If any selected document has no e-mail for the chosen recipient type, nothing is sent: the first such document is named in an error. Billing and Shipping needs both e-mails on every document. The template list is applet-local — it comes from this applet’s Settings → Email Template.
Create and edit forms
The + button creates an empty note on the server and opens it on the edit screen, titled Create. Until the first SAVE, that note has a temporary status, and only then does it get its tenant document number.
The edit screen, for a new note or a saved one, has the tabs below — or stacked expansion panels when VERTICAL_ORIENTATION is on. Their order is set in Settings → Default Selection → Details Tab Ordering.
| Tab | Purpose | Hidden by |
|---|---|---|
| Search Document | Find a FINAL purchase invoice and pull its lines in (posting_statuses: ["FINAL"]). Creates a document link (INTERNAL_PURCHASE_INVOICE → INTERNAL_PURCHASE_DEBIT_NOTE). Shown only on a new note until its first SAVE. A saved draft no longer has it, so pull the invoice’s lines in before you save. | HIDE_SEARCH_BY_DOCUMENT_BUTTON |
| Main Details | Once the note is FINAL, VOID or DISCARDED, branch, location, transaction date, currency, rate and the server document fields lock — but the five external document references and their dates stay editable, so a supplier’s late document number can still be recorded on a posted note. | — |
| E-Invoice | Sub-tab Submission always. As tabs, Progress, Notification, Matched History and Cancellation appear only on a self-billed FINAL note in a company whose e-Invoice status is Enabled, and Import/Export only when that status is Enabled and ENABLE_IMPORT_EXPORT is on. As stacked panels (VERTICAL_ORIENTATION), only Progress and Cancellation keep that condition; Notification, Matched History and Import/Export always show. Buttons: Submit, Send, Request for Rejection, Pushback to Queues, Export, Select From Another Supplier. | — |
| Account | Picking an entity branch replaces the Bill To and Ship To addresses with that branch’s own, and choosing None blanks them — so pick the branch first and adjust the addresses after. Supplier and entity branch lock once the note is FINAL, VOID or DISCARDED. | — |
| Lines | Line items with pricing, tax, WHT, department tags, costing details. | — |
| ARAP | Product-and-services amount, settlement, contra, document open and balance for this document. | HIDE_MAIN_ARAP_TAB |
| Payment | Settlement lines (settlement method, amount, date). | HIDE_MAIN_PAYMENT_TAB |
| Department Hdr | Header-level segment, dimension, profit centre, project. | HIDE_DEPARTMENT_HDR_TAB |
| Trace Document | Journal, cashbook, tax and inventory transactions the posting created. | HIDE_TRACE_DOCUMENT_TAB |
| Contra | Offset this debit note against the supplier’s outstanding purchase invoices. | HIDE_MAIN_CONTRA_TAB |
| Doc Link | Links to and from other documents. | HIDE_DOC_LINK_TAB |
| Attachment | Uploaded supporting files. | HIDE_ATTACHMENT_TAB |
| Export | Print the document with a printable format. | HIDE_EXPORT_TAB |








File Import
File Import creates many debit notes from one CSV built on the sample format. On the import record’s Checking tab, filter the … Validation Error columns to see only the rows that failed.


Header columns repeat on every line of the same document. A file whose import ends as failed may still have created its other notes, so check the listing before you upload it again. A re-import that updates an existing draft deletes the draft’s lines before the draft is saved, so a refusal at that save can leave the draft with no lines: open it afterwards.
Rows are rejected for: an unknown branch, location, entity branch, or item or settlement code; a supplier that is neither found nor fully described (name, type, ID number and type, phone and e-mail); a missing transaction date, header reference, currency or amount; a missing or zero quantity; a foreign-currency row with no exchange rate; a line type other than PNS (an item) or STL_MTHD (a settlement); and a GL, segment, dimension, profit centre, project or line branch code that is given but unknown.
The e-Invoice columns add two more: an industry (SIC) code that is unknown, whether the file gives it or it is filled from the supplier record, and a document whose lines mix e-Invoice classification code 004 (Consolidated e-Invoice) with another code. A row that would change a document that is no longer a draft is rejected too.
Configuration
Before you can use it
| Prerequisite | Where | Why |
|---|---|---|
| Company, branch, location | Organisation | Company, branch and location are the three required header fields. Branch MAIN_LOCATION fills the default location. |
| Supplier entity | Supplier | The Account tab selects an entity flagged as supplier; whether it is a trade or non-trade payable decides whether the posting goes to CREDITOR (AP trade) or CREDITOR_NON_TRADE (AP other). |
| Company default GL codes | Chart of Account → company GL-code links | The creditor mapping (CREDITOR or CREDITOR_NON_TRADE) is a hard stop in the posting job, not at FINAL: FINAL changes the status and enqueues the job; the job then throws MISSING_DEFAULT_GL_CODE: CREDITOR and the note stays FINAL with no journal until the link exists and the journal is built from Financial Report › Error Checking › Trace Document (Missing Journal → Resolve). PURCHASE and INPUT_TAX are the last fallback for lines and tax lines; if nothing resolves, the journal line is silently omitted, and the supplier’s line, built from what remains, is short by the same amount: the journal posts wrong with no error, and fails its balance check only when the supplier has no AR/AP type (Lifecycle and effects). |
| Items with a purchase GL code | Doc Item Maintenance | Each line is an item. A PNS line’s GL code resolves as line GL code → document header GL code → item-company link with txn code PURCHASE → company default PURCHASE. An account-code (GL Code) item is the exception: save and FINAL refuse its line with Item … has no linked GL Code unless the line, the item or an item-company link carries a GL code. That check accepts a link for any transaction code, but posting looks for the PURCHASE link or the item’s own GL code, so give such an item its own GL code. |
| Tax codes | Tax Configuration | GST/SST and WHT codes on lines. Selectors hidden when HIDE_TAX_CONFIG_SELECTION / HIDE_WHT_CONFIG_SELECTION are on. |
| Cashbook / settlement methods | Cashbook | Only if you record a settlement on the Payment tab: a settlement-method item must map to a cashbook with a GL code, else the posting job fails after FINAL with MISSING_CASHBOOK: STL_MTHD [code] / MISSING_GL_CODE: STL_MTHD [code] and the note stays FINAL with no journal. |
| Fiscal period open | Chart of Account → fiscal years | FINAL is refused with The selected date falls within a locked fiscal period — when the transaction date is in a LOCK_ALL / LOCK_TXN period. |
| e-Invoice setup | My E-Invoice Admin | Needed only if the document takes part in e-Invoice processing. Skip E-Invoice on the note, or the skip setting held on its branch or its supplier, keeps a note that is already self-billed when you finalise it out of submission; it does not keep an ordinary note out of matching, and it does not stop SELF-BILLED pressed afterwards (see Document behaviour settings). |
| Permissions | This applet → Settings → Permission Wizard / Client Side Permission | Server-side create/read/update/delete on INTERNAL_PURCHASE_DEBIT_NOTE; client-side switches listed below. Client Side Permission has no link in the Settings menu: it is the screen Settings opens on. |
Applet settings
Settings → Application Settings is the shared Field Configuration screen; Settings → Default Selection
holds the header pre-fills. Close to 200 keys reach this applet, and most of them begin HIDE_ or EXPAND_ —
one switch per field, column, tab or button, and you see what one did the moment you save. This is a
supporting document with little policy of its own, so the list below is short and that is the whole
finding: five keys change what the applet will let you do, and one of them reaches the e-Invoice.
How settings are stored and who they apply to.
| Setting | What changes | Default when never saved | Advisory or hard |
|---|---|---|---|
Copy shipping details onto the e-Invoice as you edit themENABLE_IMPORT_EXPORT | Every edit you make to the shipping information and the shipping address on the Account tab is copied into the debit note’s e-Invoice shipping details as well. On a document that will be submitted to LHDN this is the difference between the shipping details on the tax document tracking the document you are looking at and being whatever was typed there first. Picking an entity branch or a saved shipping address is not copied, so check the E-Invoice tab after you pick one | Off — the e-Invoice shipping details are edited only on their own tab and does not follow the Account tab | Advisory — it decides which store actions the screen dispatches |
Let staff type over the standard unit priceENABLE_EDITING_UNIT_PRICE_STD | Makes Unit Price (Std) editable on a line — the basis of Std Amount and of the discount the line reports, and on a purchase document the figure the supplier’s list price is measured against. Leaving it off is what keeps that basis stable. Its switch is on the line form’s gear, not on Application Settings | Read-only — but the first save of Application Settings writes it on, because the hidden control starts on; switch it off again on the line form’s gear | Advisory — the control is disabled in the browser |
Lock the line’s transaction amount fieldDISABLE_EDITING_AMOUNT_TXN | Locks the line’s transaction amount field, so it cannot be typed over. The net amount and the discount amount stay editable, and typing either reworks the transaction amount, so the lock fixes the field, not the figure. On a debit note — the document that lowers what you owe a supplier — that is the difference between a claim derived from the lines and a number somebody chose. On Application Settings the toggle is visible only to a holder of the SHOW_DISABLE_EDITING_AMOUNT_TXN_SETTING permission; the line form’s gear offers it to any owner or administrator | Off — the amount can be typed over | Advisory — the control is disabled in the browser |
Let each payment line carry its own dateENABLE_EDIT_PAYMENT_DATE | Lets a payment line carry its own date. With it off the applet overwrites every payment line’s date with the document header’s date, which is the date the cashbook entry carries and the date bank reconciliation matches on | Off — payment line dates follow the header, silently | Advisory, and it is a rewrite rather than a lock |
Lock the exchange rate on the headerCANNOT_EDIT_CURRENCY_RATE | Disables Currency Rate on the header, fixing the base-currency value of the debit note and the exchange difference recognised against the payable it adjusts. No per-user exception is registered for this applet | Editable | Advisory — the field is disabled in the browser |
ENABLE_DUPLICATE_REFERENCE_CHECK behaves as it does on the Purchase Order applet: a red message under the Reference field, no save block, and no filter by supplier.
The italic name under each setting is the applet’s internal key, there to match what support asks about; it can change when the applet is updated, so build nothing on it. The first save of this screen writes every toggle at whatever it was showing, and the applet stops falling back to its built-in default: read the Default when never saved column before that save.
Nine settings this applet reads have no switch on its Application Settings. The shared screen
decides which switches to show by the applet’s code. For eight of them it checks a different spelling, with
hyphens where the platform’s code for this applet has underscores: HIDE_FILE_IMPORT_MENU, HIDE_REFERENCE, HIDE_REMARKS,
HIDE_CURRENCY, HIDE_BASE_CURRENCY, HIDE_CREDIT_TERMS, SHOW_CUSTOM_DOC_NO and
ENABLE_IMPORT_EXPORT. The ninth, ENABLE_EDITING_UNIT_PRICE_STD, is shown there only for POS and the
sales invoice.
Once ENABLE_INLINE_APPLET_CONFIG is switched on, the six header settings are on the Main
Details gear, ENABLE_IMPORT_EXPORT on the gears of the shipping address, the E-Invoice tab and the line
form, and ENABLE_EDITING_UNIT_PRICE_STD on the line form’s gear. Only the File Import menu switch has no
switch anywhere in this applet; a value that is already stored still takes effect.
A gear has a personal layer, and it can only add. Every user who sees a gear also gets its
Personalization panel, and a key they switch on there wins over the applet-wide value for them. So with
ENABLE_INLINE_APPLET_CONFIG on, anyone can give themselves an editable standard price or their own
payment-line dates. Nobody can switch a lock off for themselves: switching a key off in the personal layer
only removes the personal value, and the applet-wide one stands.
On the screen and doing nothing
These keys are on the settings screens and change nothing.
- The four Department enable keys (dimension, profit centre, project, segment) — declared in the
model with a form control on the shared screen but no toggle rendered anywhere, and read by nothing
here. Their
MANDATORY_*andHIDE_*partners work, so a dimension can be hidden or made compulsory and shows unless hidden; its enable key cannot be turned on. The same four are inert on Purchase Order, Payment Voucher and Receipt Voucher — it is a property of the shared panel, not of this applet. - Filter by today’s transactions — declared, rendered nowhere, persisted with the rest, no reader.
Document behaviour settings
| Behaviour | Where it is set | Notes |
|---|---|---|
| Posting status on create | No control on the applet’s screens — new documents are DRAFT. DEFAULT_POSTING_STATUS only filters the listing. | File Import is the exception: its POSTING_STATUS column can create a note FINAL. A foreign-currency note finalised from a CSV file (a JSON import is handled differently) does not get the base-currency copy that FINAL on the screen makes, and the journal job refuses a foreign-currency note without one, so it posts no journal: import foreign-currency notes as DRAFT and finalise them on the screen. |
| Transaction date on FINAL | No control. Neither FINAL in this applet, the edit screen’s or the listing’s, sends a date rule, so the note keeps the transaction date you keyed. | The server can swap in the finalised, created or updated date, but only when the request asks for it; this applet never does. Check the date before FINAL: it decides the period the journal lands in. |
| Printable formats | Settings → Printable Format Settings (Format Code, Format Name, uploaded template). Marking one as default writes the PRINTABLE key. Branch Settings → Printable Format overrides it per branch, but only on the edit screen’s Export tab: bulk print and the FINAL pop-up still use PRINTABLE, and SEND EMAIL uses the email template’s own printable format, falling back to PRINTABLE only when the template has none. | Required for SINGLE/MULTIPLE PRINT, SEND EMAIL and ENABLE_AUTO_POPUP. |
| Email templates | Settings → Email Template — Printable Format, Template Code (dropdown label and email subject), Template (body). | Applet-local. |
| Approval workflow | None in this applet (routes and settings components checked). | Whoever approves a supplier claim does it before FINAL, outside the applet. |
| e-Invoice | E-Invoice tab → Submission, where Skip E-Invoice is ticked; SELF-BILLED on the listing marks the note self-billed. At FINAL the note is treated as skipped when its own tick, its branch’s skip setting or its supplier’s is on. | A note that is self-billed and skipped when it is finalised is not submitted. SELF-BILLED pressed on a note that is already FINAL queues it for submission whether it is skipped or not, so check the skip before you press it. Skipping also does not stop matching: a FINAL note that is not self-billed, in a company whose e-Invoice status is ENABLED, with a supplier that has a tax identification number (TIN) on record, goes to the purchase-document matching queue whether it is skipped or not; there the supplier’s issued e-Invoice is matched against it. A supplier with no TIN on record is not queued. Use Select From Another Supplier to correct the issuer details before submitting a self-billed one. |

Branch settings

| Sub-tab | What it controls |
|---|---|
| Branch Details | Read-only Branch Name, Branch Code, Company; Sales Agent; Rounding Five Cent with a rounding item; Group Discount Item used for header-level discounts. |
| Default Settlement Method, Item Category Filter, Pricing Scheme | The branch’s default settlement methods, the line picker’s categories and the pricing schemes, for this branch only. This applet’s Payment tab does not read the default settlement methods back, so a payment line’s method is always picked by hand. |
| Printable Format | Branch default printable format, used by the edit screen’s Export tab in place of PRINTABLE. |
ENABLE_EMPLOYEE_LOGIN_AUTO_DETECTION or by hand.Who can change what
Server-side. Every API call on the document is gated by
TNT_API_DOC_INTERNAL_PURCHASE_DEBIT_NOTE_{CREATE,READ,UPDATE,DELETE}_TGT_GUID, each assignable with a
target of type Company, Branch, Location or Entity through Permission Wizard or Permission Set.
File Import has its own set,
API_TNT_DM_ERP_INTERNAL_PURCHASE_DEBIT_NOTE_IMPORT_FILE_HDR_{ADMIN,CREATE,READ,UPDATE,DELETE,OWNER,MEMBER}
(READ / UPDATE / DELETE targeted by Company, Branch or Location). These are the only server-side permissions
on the document. A 403 can also come from a FINAL refused on a note that is already FINAL.
Client-side permissions registered for this applet: 34 ACTIVE, one DELETED. Twenty of them show a
price, quantity, discount, amount, unit-ratio or tax-code field on the line form, each the SHOW_*
partner of a HIDE_* setting. A twenty-first, INTERNAL_PURCHASE_DEBIT_NOTE_DISPLAY_PRICING, decides
whether the Lines tab draws its price, tax and amount columns. They are worth granting as one bundle to the
people who negotiate with suppliers, and not one at a time. Ten more show header fields: the five client
document numbers and their type, the three document numbers, and the transaction date picker.
Two more matter:
SHOW_COSTING_DETAILS— the costing sub-panel on a line.SHOW_DISABLE_EDITING_AMOUNT_TXN_SETTING— a permission that gates a setting. The Lock Amount toggle is shown on the Application Settings screen only to a holder. An administrator who cannot find that toggle is missing a permission on their own account, or can set it from the line form’s gear.
Registered and doing nothing. IPDN_HIDE_TRACKING_ID_AND_PERMIT_NO is ACTIVE in the registry and
nothing uses it. Granting it
does not hide Tracking ID or Permit No from anybody; the fields are governed by the HIDE_TRACKING_ID and
HIDE_PERMIT_NO settings for the whole tenant, and any user can also hide them for themselves from the Main Details gear. Its companion IPDN_DISPLAY_TRACKING_ID_AND_PERMIT_NO is
DELETED and cannot be granted at all. Earlier versions of this page described the first as a working
per-user hide.
Checked in code and missing from the registry, so no role can hold them: SHOW_GENDOC_FINAL_BUTTON,
SHOW_GENDOC_DISCARD_BUTTON, SHOW_GENDOC_VOID_BUTTON, SHOW_CLONE_BUTTON and SHOW_FILE_IMPORT_MENU.
Each is the intended escape from the matching HIDE_* setting, so hiding one of those buttons or that
menu hides it from everyone until BigLedger adds the code to this applet’s permission list.
Settings → Client Side Permission only grants a code the list already holds; it cannot create one.
Feature Visibility (shared; the applet has its address, but the Settings menu has no link to it) hides whole menus per team and is a different mechanism again.
Fields
Main Details
| Field | Meaning | Required | Notes / validation |
|---|---|---|---|
| Company | Legal entity that owns the document. | Yes | Filled from the branch. Drives GL-code lookup and the fiscal-period lock. |
| Branch | Branch recording the liability reduction. | Yes | Default from DEFAULT_BRANCH or the personal default. |
| Location | Stock location on the header. | Yes | Default from the branch’s MAIN_LOCATION. No stock movement is posted. |
| Purchaser | Employee responsible. | No | Auto-filled only when ENABLE_EMPLOYEE_LOGIN_AUTO_DETECTION is on. |
| Tenant / Company / Branch Doc No | Three running numbers. | System | The tenant number is given at the first save; the company and branch numbers when the note goes FINAL. Shown per SHOW_DOC_NO_* permission. SHOW_CUSTOM_DOC_NO exposes a custom number field. |
| Transaction Date | Accounting date. | Not enforced by the form | At FINAL it is refused with The selected date falls within a locked fiscal period when the company’s period is closed with LOCK_ALL or LOCK_TXN. Changing it rewrites every Payment line’s date to match unless ENABLE_EDIT_PAYMENT_DATE is on. Locks at FINAL, VOID or DISCARDED; the picker is inactive without the SHOW_TRANSACTION_DATE permission. |
| Reference, Remarks | Free text. | No | Duplicate Reference. banner when ENABLE_DUPLICATE_REFERENCE_CHECK is on — a warning, not a block. Remarks become the description of the journal’s supplier and tax lines; the journal header’s description comes from a document description this applet has no field for, so it is blank on a note keyed here. A note from File Import carries the file’s header description, and one from intercompany processing an Auto Created From … text. |
| Permit No, Tracking ID | Statutory / logistics references. | No | Hidden by HIDE_PERMIT_NO / HIDE_TRACKING_ID (the IPDN_HIDE_TRACKING_ID_AND_PERMIT_NO permission does nothing; see Who can change what). |
| Currency, Base Currency, Currency Rate, Forex Source | Document currency and rate. | Filled from the branch’s currency (MYR when it has none) | Rate locked by CANNOT_EDIT_CURRENCY_RATE and after FINAL. The backend re-validates the exchange rate at FINAL. |
| External Documents (Quotation, Order, Delivery Order, Invoice, Others) + dates | Five reference / date pairs (xtn_doc_ref_1..5). | Per MANDATORY_… settings | Panel rendered only for this applet in Application Settings. |
Account
| Field | Meaning | Required | Notes / validation |
|---|---|---|---|
| Entity (Supplier) | Supplier being debited. | Yes (entityId required validator) | Must be an entity flagged as supplier; its AR/AP object type selects CREDITOR (AP trade) vs CREDITOR_NON_TRADE (AP other). A supplier set to skip e-Invoice makes every note for it skipped at FINAL. |
| Entity Branch | One of the supplier’s own branches (the list is that supplier’s, not yours). | No | Choosing one overwrites Bill To and Ship To with that branch’s addresses; None blanks both. Picking a different supplier shows an empty choice but keeps the earlier branch on the note, so choose one of the new supplier’s branches, or None. |
| E-Invoice identity | TIN, ID type, ID number, SST number. | For e-Invoice only | Editable inline; Select From Another Supplier copies from another entity. |
Lines
| Field | Meaning | Required | Notes / validation |
|---|---|---|---|
| Item | Item or GL-code item. | Yes | GL_CODE items skip the numeric validators below. |
| Quantity | Units. | Yes (qty required, minimum 1) | Quantity signum is 0 — no stock movement. |
| UOM, UOM ratio | Unit of measure and how many base units it holds. | No | Picking a UOM fills the ratio from the item; the ratio stays editable. Quantity is held in base units: Quantity by UOM is quantity ÷ ratio, and typing it sets quantity to that figure × ratio, rounded. The ratio and quantity are read as whole numbers in the calculation, so a ratio of 2.5 is worked as 2. The UOM picker follows the pricing-scheme setting (HIDE_UNIT_PRICE_STD_PRICING_SCHEME), not a UOM setting. |
| Unit price (std / txn / net, incl. and excl. tax, per UOM) | Pricing. | netAmt, netAmtWithTax, txnAmt required for non-GL items | Minimum 0. Standard price editable only with ENABLE_EDITING_UNIT_PRICE_STD; transaction amount locked by DISABLE_EDITING_AMOUNT_TXN. |
| Unit discount, discount amount | Line discount, taken off before tax. | No | The two are one figure: discount amount = unit discount × quantity, and typing the amount divides it back into the unit discount. Tax and WHT are then worked on the price after discount. |
| Tax code, tax %, tax amount | GST/SST. | No | Tax % ≥ 0. Posts to the company default INPUT_TAX. |
| WHT code, WHT %, WHT amount | Withholding tax. | No | WHT % is read-only and comes from the WHT code’s rate. WHT amount = amount after discount × WHT %, and it is subtracted from the line total (net + tax − WHT). The posting writes no journal line for it — the purchase line posts the net amount, the tax line the tax, and the supplier line their total — so record the withheld tax separately if you use it. |
| Branch (line) | Branch for the journal line. | Yes | Defaults to the header branch. |
| Segment, Dimension, Profit Centre, Project | Accounting tags. | Per MANDATORY_… | Fall back to header values on the journal line. |
| GL code (line) | Overrides the purchase GL code for this line — first in the precedence. | No | Hidden by HIDE_LINE_ITEMS_GL_CODE. |
| Remarks | Line text. | No | Becomes the journal line description. |
Payment, Department Hdr, Contra
| Tab | Fields | Notes |
|---|---|---|
| Payment | Settlement method, amount, date, remarks. | Date editable only with ENABLE_EDIT_PAYMENT_DATE. The applet refuses a line above the outstanding balance with the snack-bar Payment Exceeds Outstanding — a client-side check. |
| Department Hdr | Segment, Dimension, Profit Centre, Project. | Header defaults for every journal line. |
| Contra | Target purchase invoice, contra amount, date. | Date editable only with EDIT_CONTRA_TXN_DATE. |
Lifecycle and effects
| Status | Meaning | Allowed next |
|---|---|---|
| DRAFT | Editable. No journal; its ARAP figures are worked out at each save, but no report and no contra picker counts a draft. | FINAL, DISCARDED |
| FINAL | Posted. Header locked. | VOID |
| VOID | Reversed. This applet asks for no reason and sends none, so a VOID made here adds no reason to the note: write down why in your own void register before you press VOID, because an auditor will not find it on the note. | none |
| DISCARDED | Abandoned draft. Stays on the listing unless a default posting status filters it out. | none |
Backend checks on FINAL:
| Check | Result when it fails |
|---|---|
| Document is not already FINAL | HTTP 403 Generic Document has already been posted to FINAL |
| A foreign-currency note carries an exchange rate, and the rate is consistent | Generic Document exchange rate is required before posting to FINAL, or another exchange-rate error |
| Every account-code (GL Code) item line has a GL code on the line, on the item or on an item-company link | Item … has no linked GL Code. Link a GL Code in Doc Item Maintenance before creating this transaction. |
| Every made-to-order item has a pricing logic of CHILD or PARENT on its item record | Made-to-order item … must have pricing logic CHILD or PARENT. |
| Serial / batch / bin quantities consistent | serial, batch or bin validation errors |
Transaction date not in a LOCK_ALL / LOCK_TXN fiscal period | The selected date falls within a locked fiscal period. |
The listing’s DISCARD and VOID confirmation dialogs are client-side prompts, not backend checks.
On a foreign-currency note the note is saved FINAL first, and most of these checks then run on its base-currency copy, so a refusal there leaves the note FINAL with its copy never posted, and a second FINAL is refused as already posted. The journal of a foreign-currency note sits on that copy, which the note’s BASE button opens. Whoever finalised the note opens the copy straight after: a copy that is not FINAL is a case for BigLedger support.
What FINAL does once validation passes: sets Skip E-Invoice from the document / branch / supplier, applies the transaction-date logic, generates the running numbers, creates a base-currency shadow copy of a foreign-currency note and posts that copy instead, and queues the main posting job and the message-template (email / notification) job, then returns. The journal and the e-Invoice matching are produced afterwards by the follow-on jobs your tenant subscribes to, a per-tenant set this applet does not show; the payable figures were already on the note from its last save.
What posting does
| Item | Value |
|---|---|
| Document type | INTERNAL_PURCHASE_DEBIT_NOTE |
| Direction | Reduces what you owe the supplier; moves no stock |
| The journal | Each goods line credits the purchase account; tax lines credit INPUT_TAX; the balancing supplier line debits CREDITOR / CREDITOR_NON_TRADE. Net effect Dr Creditor / Cr Purchase, Cr Input Tax — the supplier balance falls. The ordinary purchase journal applies: supplier CREDITOR, goods PURCHASE, tax INPUT_TAX. |
| Which GL code a goods line uses | line GL code → document header GL code → the item’s company GL link for PURCHASE (ROUNDING for a header-adjustment item) → company default PURCHASE. A line whose GL code cannot be found at any level is silently left out of the journal; the same applies to a tax line without an INPUT_TAX default. An account-code (GL Code) item line is the exception: after the item link it falls back to the item’s own GL code instead of the company default, and when none is found the posting fails rather than drop the line. |
| Hard stops in posting (after FINAL) | The journal job, not FINAL, fails: MISSING_DEFAULT_GL_CODE: CREDITOR / CREDITOR_NON_TRADE when the payable account is unmapped; MISSING_CASHBOOK: STL_MTHD [code] / MISSING_GL_CODE: STL_MTHD [code] for a settlement line whose method has no cashbook or GL code; TOTAL_DEBITS_AND_TOTAL_CREDITS_NOT_BALANCES: Total Debits: …, Total Credits: … when an omitted line leaves the journal unbalanced, which happens only when the supplier has no AR/AP type (with one, the supplier line is short by the omitted amount and the journal posts wrong, with no error — see Troubleshooting); NO_JOURNAL_CREATED when the journal comes to zero. FINAL has already succeeded when these fire; the note stays FINAL with an empty Journal Txn grid on its Trace Document tab. No screen shows which of these fired until the posting is re-run: Resolve in Financial Report’s Trace Document shows the reason if pressed before the cause is fixed, CREATE on Ledger And Journal’s Missing Journal shows only its code, and BigLedger support can read it. |
| Settlement lines | Each Payment-tab line posts to the settlement method’s cashbook GL and reduces the creditor line by the same amount. |
| Stock | None. A FINAL debit note writes no inventory transaction, so it never reaches the moving average: units still on the shelf keep the invoice’s higher cost while the credit lands on the purchase account. Whoever keeps the costing decides whether that difference matters; the repairs are under Purchase Invoice › costing and Reset MA. |
| What VOID reverses | VOID sets the status (and a reason only when the request carries one; this applet sends none), voids the forex shadow document if one exists, removes the document from historical aging, and starts the void jobs; the journal void job posts the mirror-image journal. |
| Back to DRAFT | Not offered by this applet. |
Which void jobs run — journal reversal, contra reversal, tax, cashbook — is your tenant’s job configuration, not an applet setting. Nor does VOID take a note out of the e-Invoice submission queue: a note with a live row there is refused VOID (see VOID and notes linked to an e-Invoice).
VOID and document links. VOID is refused while any later document still has an active link from this debit note. The server names those documents, but this applet shows only Cannot VOID the Document. The document(s) have been knocked off with another document(s)., so look for them on the note’s Doc Link tab and void them first; if the tab shows none, ask BigLedger support for the server’s list.
A contra is not a document link: a debit note that has already been contra’d against invoices is still voidable from the listing, and the void takes the contra with it where your tenant runs the contra void job. A foreign-currency note is voided through its base-currency copy, so a contra recorded against the note itself can survive: check the invoice’s Outstanding afterwards. Reverse the contra first if the settlement history must stay consistent.
VOID and self-billed notes. The server refuses to void a purchase debit note that is marked self-billed, with Generic Document cannot be changed to VOID because e-invoice is enabled. A self-billed note that is wrong is reversed with a Purchase Credit Note (Internal) for the same amount, which puts the supplier’s balance back in your books.
Mark that credit note self-billed as well: only then does it go to LHDN, as a self-billed debit note, and an ordinary credit note corrects your ledger and leaves the e-Invoice as it was. How the reversing e-Invoice refers to the original is not confirmed here, so check it on the credit note’s E-Invoice tab before you rely on it, and decide whether a note is self-billed before FINAL.
VOID and notes linked to an e-Invoice. VOID is also refused, with Generic Document cannot be changed to VOID because it is linked to an e-invoice, once the note carries an e-Invoice record, an LHDN identifier or a main-document e-Invoice reference, has a row in an e-Invoice submission or posting queue or pool that has not been deleted (whatever its status), or has an active match to an e-Invoice. An ordinary note matched to the supplier’s e-Invoice is one of these.
The tie protects the tax record: what has reached LHDN, or is waiting to, is not undone by a void here. Correct such a note with a Purchase Credit Note for the same amount. When the match is to an e-Invoice the supplier issued, that e-Invoice is the supplier’s to cancel or correct at LHDN, so the clerk who raises the correction tells the supplier.
Contra and settlement. The purchase report and the payment voucher treat a FINAL debit note like a payment: its positive ARAP balance is consumed by contra against purchase invoices of the same supplier and currency.
Intercompany. When the seller’s Sales Debit Note goes FINAL, the matching Purchase Debit Note is created in the buyer’s company as a DRAFT with the same lines (unless the pairing rule has Auto Final Target Doc); it posts nothing until you FINAL it. Do not finalise it as it arrives: the seller’s note raised what you owe, and this document type lowers it, so the two companies’ books would differ by twice the note. See Sales Debit Note › Intercompany for what to record instead.
The figures on a note, and when each is set
| Figure | Set when, from what | Moves when |
|---|---|---|
| A line’s tax amount | Worked out in your browser from the price after discount and the tax code’s rate, rounded to two places per line, and stored at Save. The input-tax journal line posts the stored figure. | When that line is edited and saved. |
| ARAP tab: Product & Services, Settlement, Doc Open Amount | Worked out by the server at every save from the goods lines and the Payment-tab lines; Doc Open is the two together. Stored on the note. | When the lines change. A contra never changes Doc Open. |
| Contra and Outstanding | Contra is the total of the contras saved against the note; Outstanding is Doc Open plus Contra. | The moment a contra is saved: on this note’s Contra tab, on a payment voucher’s, or in the Creditor Report applet. |
| The original invoice’s Outstanding | The invoice’s own figure. Search Document only records which invoice lines and quantities the note answers. | When a contra between the two is saved. Until then the invoice reads unpaid and keeps its age on the aging report, with the note beside it as a separate open item. |
| The supplier’s total owed on the creditor reports | Read live, when you search, from the balances of the supplier’s FINAL documents. | At FINAL: the note is a row of its own, opposite in sign to an invoice, so the total falls before anything is knocked off. |
| The journal | Built by the posting job after FINAL from the note’s stored lines (for a foreign-currency note, from its base-currency copy). | Only when someone re-posts it from Financial Report’s Trace Document, which rebuilds it from the same stored lines. |
| The exchange rate | The rate on the header when FINAL is pressed. The base-currency copy is made from it. | Never: it locks at FINAL, and the creditor reports keep the note at its own rate rather than revaluing it (Debtor and Creditor Report). |
A freight overcharge at GadgetSphere Online
GadgetSphere Online Sdn Bhd (GSO) buys 50 ultraportable laptops from a regional distributor in Singapore. The purchase invoice, in USD, includes USD 600.00 of freight, although the agreed terms make freight free above 40 units. The distributor agrees and sends a credit memo for USD 600.00.
- The note. A Purchase Debit Note in USD to that supplier, one line for USD 600.00, with the line’s GL code set to the account the invoice charged the freight to, so the credit lands where the charge did. No tax code, if the invoice’s freight line carried none.
- The rate. The note carries its own exchange rate, and FINAL refuses a USD note without one. It need not be the invoice’s rate; each document keeps its own.
- The journal, posted on the base-currency copy: Dr
LIAB-SUPPLIER-TRADE, Cr the freight account, both USD 600.00 at the note’s own rate. - The payable. The supplier’s total on the Creditor Aging Report falls at FINAL. The invoice still reads its full Outstanding until you contra the two: open the note’s Contra tab and pick the invoice. The picker offers only FINAL documents of this supplier, in the note’s currency, whose balance has the opposite sign.
- Had the distributor instead billed the freight after the invoice, what GSO owes would rise: that is a Purchase Credit Note, not this document.
Verify one note in four places
Run this the day a note goes FINAL, on a ringgit note with nothing on its Payment tab and no WHT code on its lines. Each place says what a mismatch means and who puts it right.
- The note’s Trace Document → Journal Txn. One debit to the supplier’s payable account equal to the note’s total, and credits adding up to the same figure. An empty grid means the posting job failed after FINAL: whoever maintains the chart of accounts fixes the mapping named in Troubleshooting, then presses Resolve. A supplier line smaller than the note’s total means a line found no GL code and was dropped; the third Troubleshooting row repairs it.
- The note’s ARAP tab. Doc Open Amount equals the note’s total, and Outstanding equals Doc Open until a contra is saved.
- The supplier on the Creditor Aging Report. The total is lower than before FINAL by the note’s total. Unchanged means the note is still DRAFT, or it was raised against a different supplier record: the clerk who keyed it opens the Account tab.
- The original invoice’s ARAP tab. After the contra, Outstanding is lower by the contra amount and Doc Open is unchanged. Unchanged Outstanding means no contra was saved. Until there is one, the invoice looks unpaid to whoever prepares the next payment run, so that person filters the Creditor Outstanding Document Report by supplier before paying: a debit-note row of the opposite sign is money to take off the invoice first.
At month end, trade creditors on the Financial Report and the creditor reports must have moved by the same amount; the sign-off is on the Debtor and Creditor Report page. The reports moving while the ledger did not points back to step 1.
Related applets
- Purchase Invoice (Internal) — the document being reduced; Search Document pulls its lines in, and a contra settles one against the other.
- Purchase Credit Note (Internal) and Purchase Return (Internal) — the opposite-sign note, and the same-sign document that also moves stock out.
- Payment Voucher (Internal) — the other settlement document against purchase invoices; its Contra tab can apply this note.
- Sales Debit Note (Internal) — the intercompany source that creates this document as a draft in the buying company.
- Debtor and Creditor Report, Creditor Report and Purchase Report — where the balance and settlement show up.
- Purchase Order (Internal), Purchase GRN (Internal), the master data under Before you can use it, and My E-Invoice Admin for the e-Invoice queues.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Note is FINAL and Trace Document → Journal Txn is empty. The reason BigLedger support reads is MISSING_DEFAULT_GL_CODE: CREDITOR (or CREDITOR_NON_TRADE); no screen shows it until the posting is re-run: Resolve in Trace Document shows the full reason, and CREATE on Ledger And Journal’s Missing Journal shows only its code | The company has no default GL-code link for the supplier’s AR/AP type; FINAL succeeded and the journal job failed afterwards. | Add the link in Chart of Account → company default GL codes, 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. On a foreign-currency note the check reads Not applicable for Forex Document: the journal belongs to the note’s base-currency copy, so run the check on the copy. |
Note is FINAL, no journal, and the reason BigLedger support reads is TOTAL_DEBITS_AND_TOTAL_CREDITS_NOT_BALANCES (Resolve, pressed before the fix, shows Total Debits: …, Total Credits: …) | A line (or its tax line) could not resolve a GL code at any level — line, header, item-company link, company default PURCHASE / INPUT_TAX — and was dropped from the journal without a message, and the supplier has no AR/AP type, so no supplier line was built to balance the rest. | Give the supplier an AR/AP type (without one no supplier line is built and the journal cannot balance), map PURCHASE and INPUT_TAX for the company or give a goods line’s item a PURCHASE link (a FINAL note’s lines can no longer be edited), then Missing Journal → Resolve in Financial Report’s Trace Document. |
| No error, but trade creditors no longer agrees with the creditor ageing, and purchases or input tax are short by the same amount | A line resolved no GL code and was left out of the journal; the supplier’s line was built from the lines that remained, so it is short by the same amount and the journal balanced and posted. The note is FINAL with a journal, so Trace Document finds nothing, and the supplier statement and ageing (built from documents) look right. Before go-live, check the company has a default for the purchase and input-tax codes (an item’s own link stands in for the purchase code only) | Map PURCHASE and INPUT_TAX for the company, or give a goods line’s item a PURCHASE link. Then open each affected FINAL note in Error Checking › Trace Document and press Repost beside Posting Journal, which deletes the short journal and rebuilds it. Never Repost or Resolve a voided note: Repost shows there too, and it would delete the reversal and post the journal again. Repost successful means the rebuild ran: check that the supplier line now equals the note’s total. A failed Repost shows nothing and may already have deleted the old journal, so check the Journal Txn grid: if it is empty, press Resolve on Missing Journal, which posts it or shows why not. Or post a correcting journal. |
Note is FINAL with an empty Journal Txn grid; the reason BigLedger support reads is MISSING_CASHBOOK / MISSING_GL_CODE: STL_MTHD [code] | A settlement line uses a settlement-method item with no cashbook, or a cashbook without a GL code — the journal job failed after FINAL. | Map the settlement item to a cashbook with a GL code, then Missing Journal → Resolve in Financial Report’s Trace Document. Where your company also writes cashbook lines for this document’s payment lines, that line is missing too, and Trace Document does not restore it for this document type: ask BigLedger support. |
| The selected date falls within a locked fiscal period | Transaction date is in a LOCK_ALL / LOCK_TXN period. | Change the date or reopen the period. |
| Generic Document has already been posted to FINAL | Two users (or bulk FINAL plus the edit screen) posted the same draft. | Refresh; no action needed. |
| FINAL from the edit screen posted an edit you had not saved | FINAL on the edit screen sends the note as it stands on the screen (header, lines and payments), not the last saved copy. | Read the screen before FINAL. The header of a FINAL note is locked (the external references, Reference and Remarks stay editable): void it and raise it again, or, where VOID is refused because the note is self-billed or linked to an e-Invoice, reverse it with a Purchase Credit Note (see Lifecycle and effects). |
No PDF opens after FINAL although ENABLE_AUTO_POPUP is on, or SINGLE/MULTIPLE PRINT is greyed out | No default printable format (PRINTABLE) — toast No Default Printable Selected. | Mark a format as default in Printable Format Settings. |
| File Import menu missing | HIDE_FILE_IMPORT_MENU is stored on and the user lacks SHOW_FILE_IMPORT_MENU. | Application Settings has no switch for it in this applet (see Applet settings), so ask BigLedger to add SHOW_FILE_IMPORT_MENU to this applet’s permission list, then grant it under Client Side Permission. |
| FINAL / VOID / DISCARD button missing for every user | HIDE_GENDOC_*_BUTTON is on and the user lacks the SHOW_GENDOC_*_BUTTON permission (not seeded by default). | Turn the setting off, or ask BigLedger to add the code to this applet’s permission list, then grant it under Client Side Permission. |
| A toggle in Application Settings does nothing | It is one of the keys listed under On the screen and doing nothing — the applet does not consume it. | No fix needed; the key has no effect in this applet. |
Import rows rejected for AMOUNT_TAX_GST or the e-Invoice tax-exemption columns | Older sample files predate the columns added for purchase uploads. | Download the current Sample Format and re-map. |
| Document went into e-Invoice processing although it should not | A self-billed note with no skip set is submitted, and so is a skipped FINAL note once SELF-BILLED is pressed on it. An ordinary note is queued for matching whatever the skip says. | For a note marked self-billed while it is a draft, tick Skip E-Invoice on its E-Invoice tab before FINAL, or have the skip set on the branch or the supplier. Do not press SELF-BILLED on a FINAL note you mean to keep out. For an ordinary note there is nothing to switch off: the matching queue submits nothing to LHDN. |
| The supplier’s balance went down, not up | Expected — this document has amount signum +1 (Dr Creditor). | Use a Purchase Credit Note (Internal) or a purchase invoice for a supplier’s extra charge. |
| Debit note not offered in the Payment Voucher contra picker | Different currency, non-FINAL status, or zero ARAP balance. | Check the note’s currency against the voucher’s, its posting status and the ARAP tab. |
| A DRAFT shows lines you did not key | It was generated from a related company’s Sales Debit Note by intercompany processing. | Review, then FINAL or DISCARD; the source is on Trace Document / Doc Link. |
| Clone does nothing | Clone runs as a background job; the screen looks for the copy up to four times, two seconds apart. | Wait for Cloned Document Ready; if Cloned document not found, reload the listing or clone again. |
Related documentation
- Purchasing module and its related applets
- MyInvois setup and e-Invoice validation — the guides that cover purchase-side e-Invoice processing
- Purchase Credit Note (Internal) — the companion reference page