Skip to content

Shopping Cart (Internal)

Work the pre-orders that customers, storefronts and staff have created. This page is for the order desk that corrects, finalises and clears those carts. A cart names the customer, the branch and location, the items and any payments already taken. Finalising a cart writes no journal and moves no stock; what it does is make the lines available to the Sales Order applet’s knock-off tab, and only when the company’s knock-off configuration has a Shopping Cart to Sales Order row. A paid storefront cart becomes a sales order on its own, without passing through here, unless Cart Security holds back a payment whose amount no longer matches the cart.

Your job, and the screen for it

The jobScreen or tabRead
Raise a cart for a customer — pick the customer first and the addresses after, because choosing a customer clears any address already chosenInternal Shopping Cart Create (Main Details, Account, Line Items, Payment), then CreateFields
Correct a cart before it becomes an order — a new Bill To or Ship To address on an existing cart is not saved, and its Member Card box opens no picker; correct those on the sales orderShopping Cart listing, open the cart (Internal Shopping Cart View), then SAVEFields; Troubleshooting
Finalise a cart so a sales order can knock it off — one-way, and opens nothing without an enabled Shopping Cart → Sales Order rowFINAL above the listing (ticked rows) or Final on the View screenLifecycle and effects
Turn a FINAL cart into a sales orderIn the Sales Order (Internal) applet: its Search Shopping Cart tab or Shopping Cart knock-off panelWhere it fits
Remove a cart — only DELETE frees a customer’s one-cart place; do not FINAL a cart to make roomDELETE at the foot of the View screen (click twice), only on a cart that is not FINAL and only with the delete-button setting onLifecycle and effects; Troubleshooting
Set up branches and locations, customers with addresses, items, settlement methods and the knock-off rowOrganisation (incl. Company › Knock Off Configuration), Customer Maintenance, Doc Item Maintenance and Cashbook appletsBefore you can use it

Overview

The Shopping Cart (Internal) applet is the back-office window onto INTERNAL_SHOPPING_CART documents (short code SHPCRT). A cart is a pre-order: a customer, a branch and location, a list of items and, optionally, a list of payments the customer has already made. Carts reach this listing from four places — staff create them here, customer logins create them in the Shopping Cart Customer Access (Internal) applet, CP Commerce storefronts create them when a shopper adds to cart and for a point purchase, and the Unified Contact Center’s Shopping cart panel creates them from a conversation.

Staff open a cart to correct the customer, the recipient details, the items or the payments, then press SAVE and only then set it to FINAL so a Sales Order can be raised against it, or delete it. FINAL changes the posting status of the cart as last saved; corrections still on screen are not sent with it. On a cart that already exists, a new Bill To or Ship To address is accepted by its picker and then saved as it was, and the Member Card box opens no picker at all (see Fields).

A cart is not an accounting document. Its amount and quantity signums are both zero, so FINAL writes no journal and moves no stock. What FINAL does is make the cart lines available to the Sales Order (Internal) applet’s “Search Shopping Cart” / “Shopping Cart” knock-off tabs — provided the company’s Knock Off Configuration has a Shopping Cart → Sales Order row.

Where it fits

DirectionDocument / appletHow it connects
UpstreamShopping Cart Customer Access (Internal)Customer logins create and edit their own INTERNAL_SHOPPING_CART (one cart per customer, and the login must be linked to that customer). The same carts appear in this listing.
UpstreamCP Commerce Admin storefrontsStorefronts create carts too, when a shopper adds to cart and for a point purchase; a paid storefront cart is turned into an INTERNAL_SALES_ORDER by the storefront itself, without visiting this applet.
Master dataCustomer Maintenance, Doc Item Maintenance, Cashbook, Tax Configuration, OrganisationCustomer (with addresses, credit terms and limits), items (txn_class = PNS), settlement methods (STL_MTHD items), SST / WHT codes, branch and location.
DownstreamSales Order (Internal) (v2 applet)After FINAL, cart lines enter the generic line open queue (INTERNAL_SHOPPING_CART → INTERNAL_SALES_ORDER) and are picked up by the Sales Order’s “Search Shopping Cart” tab and “Shopping Cart” knock-off panel.
Downstream (not wired)Receipt Voucher (Internal)The code contains a “convert to receipt voucher” effect (create an INTERNAL_RECEIPT_VOUCHER from the payment lines, then delete the cart) but no button calls it — see Lifecycle.

Screens and menus

The sidebar has one menu item, Shopping Cart. Screens are the usual two-column stack: the listing on the left, the selected screen on the right.

  • Internal Shopping Cart Listing — ag-grid, client-side pagination over the first 50 carts in the server’s key order, not by date, then sorted by Updated Date; with more than 50 carts a recent one can be missing, so search for it. Columns: Doc Short Code (checkbox), Doc No, Branch, Posting Status (blank shown as DRAFT), Customer Name, Creation Date, Sales Agent, Amount Txn, Updated Date, Doc Remarks. Branch, agent and customer names cost three extra calls per cart. The FINAL button above the grid finalises every ticked row that is not already FINAL. Advanced search: free-text keyword (cart search word, branch name and customer name, results unioned, 500 each) or the fields Customer Name, Creation Date from/to, Branch.
  • Internal Shopping Cart Create — buttons RESET and Create (disabled while Main Details is invalid or no customer is selected). Four tabs: Main Details, Account (Entity Details / Bill To / Ship To), Line Items, Payment. In vertical orientation the tabs become expansion panels.
  • Internal Shopping Cart View — buttons RESET, Final, SAVE (disabled while Main Details is invalid), and a DELETE button at the bottom that needs a second click (CLICK AGAIN TO CONFIRM, 3-second window). Same four tabs. Once the cart is FINAL, Branch, Location, Member Card, Currency and Entity ID are locked, and the + and line DELETE buttons are hidden.
  • Pickers opened from the form: Select Member (Create screen only), Select Customer, Select Billing Address, Select Shipping Address, Add Payment, Select Line Item (item search with txn_class = PNS, columns Item Code, Item Name, UOM, Unit Price, System Stock Balance), Add Line Item, Edit Line Item.
  • Customer create/edit — the Select Customer screen has a select/edit toggle; edit mode opens a full customer editor (Main, Category, Login, Payment Config, Tax, Address, Contact, Branch, Item Pricing, Remark, Credit Term, Credit Limit) that writes to the same entity tables as the Customer Maintenance applet.
  • Settings (gear): System Configuration › Application Settings, Default Selection, Printables; Server Side Permissions › Permission Set, User Permission, Role Permission. The shared menu also lists Permission Wizard and, under Developer Tools, Release Notes and Audit Trail, but this applet has no route for those three, so each opens the 404 page. The routes feature-visibility and webhook also exist (and settings with no sub-path redirects to feature-visibility) but have no menu link; the shared Feature Visibility screen only logs the permission list and the shared Webhook screen is a sample-data stub.
  • Personalization: Default Selection only.
Line Items panel of a new shopping cart with an empty grid
Line Items panel on a new cart: the + button opens the item search, totals sit above the grid.
Entity Details panel with Bill To and Ship To sub-panels above the Line Items grid
Account panel in vertical orientation: Entity Details, then Bill To and Ship To, then Line Items.
Line Items grid showing one test item with the Delivery slider
Line Items grid: Item Code, Item Name, UOM, Delivery slider, Qty, then Unit Price, SST/VAT/GST and Txn Amount to the right.
Payment panel with Total and Outstanding and an empty payments grid
Payment panel: Total is the sum of payment lines, Outstanding is the line-item total minus payments.

Configuration

Before you can use it

  • Company, branch and location in the Organisation applet. Branch and Location are required on every cart; selecting a branch fills Company and Currency, and the branch’s MAIN_LOCATION extension fills Location.
  • Knock Off Configuration (Organisation › Company): a LINE flow INTERNAL_SHOPPING_CART → INTERNAL_SALES_ORDER, enabled. Without it, FINAL opens nothing for the Sales Order, and the Sales Order applet hides its Shopping Cart knock-off panel.
  • Customers in Customer Maintenance with at least one address; the Bill To / Ship To pickers list only the selected customer’s addresses.
  • Sales agents — employee entities; Sales Agent is required.
  • Items with txn_class = PNS in Doc Item Maintenance; pricing schemes if the Add Line Item dialog should offer them.
  • Settlement methods in the Cashbook applet: STL_MTHD items whose SETTLEMENT_TYPE extension is one of CASH, CASH_BACK, CREDIT_CARD, VOUCHER, BANK_TRANSFER, MEMBERSHIP_POINT_CURRENCY, CHEQUE. The Add Payment dialog switches its fields on this value, and lists only the methods linked to a branch. In the build tenants are served it asks for that list without naming the cart’s branch, so expect it to come back empty (see Payment and Add Payment).
  • Tax codes (SST and WHT) in Tax Configuration, unless the tax selectors are hidden.
  • Server-side permissions TNT_API_DOC_INTERNAL_SHOPPING_CARTS_CREATE_TGT_GUID, …_READ_TGT_GUID, …_UPDATE_TGT_GUID, …_DELETE_TGT_GUID assigned through Settings › Permission Set / User Permission / Role Permission. FINAL uses the UPDATE permission; DELETE uses the DELETE permission.

Applet settings

Settings live in four places: the shared settings screen (Settings › Application Settings), this applet’s own Default Selection screen (saved with the same applet-wide settings), its own Printables screen, and Personalization › Default Selection (per login). There is no inline gear. Anyone with access to the applet’s Settings menu can change applet-wide settings; personal settings are per login and win over applet-wide values where both exist.

The table lists only the settings that are shown, saved and actually used by the cart screens.

SettingWhereWhat it controlsDefaultEffect when changed
HIDE_UNIT_PRICE_STD_PRICING_SCHEMEApplication Settings › Line ItemsPricing-scheme / UOM selector in Add and Edit Line ItemOff (nothing is pre-hidden for this applet code)Field disappears unless the login holds the matching SHOW_* client-side permission
HIDE_UNIT_PRICE_STD_EXCL_TAX, HIDE_UNIT_PRICE_STD_INCL_TAXsameStandard unit price excl./incl. tax (read-only)Offsame
HIDE_UNIT_DISCOUNT, HIDE_UNIT_DISCOUNT_UOM_EXCL_TAX, HIDE_DISCOUNT_AMOUNT_EXCL_TAXsameThe three discount inputs: per unit, per unit of the chosen UOM, and for the whole lineOffHiding all three does not stop a discount. A lower Unit Price Net, Unit Price Txn, Amount Net or Txn Amount typed into the same dialog is worked back into a discount; a lower Unit Price Txn by UOM lowers the standard price instead, so Discount Amount does not show it. To stop staff changing the price, hide all eight and the Pricing Scheme selector (HIDE_UNIT_PRICE_STD_PRICING_SCHEME), because a scheme picked there replaces the price too. None of the three discount inputs refuses a negative number, so a minus sign raises the price.
HIDE_QTY_BASE, HIDE_QTY_UOM, HIDE_UOM_TO_BASE_RATIOsameQuantity, quantity by UOM, UOM-to-base ratioOffsame. Hiding both quantity inputs leaves the line at its default quantity
HIDE_UNIT_PRICE_STD_UOM_EXCL_TAX, HIDE_UNIT_PRICE_STD_UOM_INCL_TAX, HIDE_UNIT_PRICE_NET_UOM_EXCL_TAX, HIDE_UNIT_PRICE_TXN_UOM_INCL_TAX, HIDE_UNIT_PRICE_NET_EXCL_TAX, HIDE_UNIT_PRICE_TXNsameSix unit prices. Three are typed-in: Unit Price Net (excl. tax), Unit Price Txn by UOM (incl. tax) and Unit Price Txn (incl. tax). The other three only display a valueOffEach typed-in price recalculates the amounts and tax on the line, and all but Unit Price Txn by UOM recalculate the discount. Hiding one of the three display-only prices takes information away without taking any control away
HIDE_AMOUNT_STD_EXCL_TAX, HIDE_AMOUNT_NET_EXCL_TAX, HIDE_AMOUNT_TXNsameLine amounts. Amount STD (unit price × quantity) only displays a value. Amount Net and Txn Amount are typed-inOffA typed Txn Amount is worked back from the item’s standard price with its cents dropped, so the discount and Amount STD it produces are out by those cents. For a price that ends in cents, enter the discount or Amount Net instead, and check Discount Amount before you press Add
HIDE_TAX_CONFIG_SELECTION, HIDE_WHT_CONFIG_SELECTIONsameSST selector + rate + amount; WHT selector + rate + amountOffsame. With the tax selector hidden, a line added from the item search carries no tax code and no tax
SHOW_DOCUMENT_DELETE_BUTTONApplication Settings › Main DetailsThe DELETE button at the bottom of the View screenOff — no DELETE buttonRead when the View screen opens; never shown on a FINAL cart
VERTICAL_ORIENTATIONApplication Settings › Gen Doc ListingTabs (off) or expansion panels (on) on Create, View and Edit Line ItemOffPersonal DEFAULT_ORIENTATION overrides it: HORIZONTAL forces tabs, VERTICAL forces panels
EXPAND_MAIN_DETAILS, EXPAND_ACCOUNT, EXPAND_LINE_ITEMSApplication Settings › Gen Doc ListingWhich panel opens first in vertical orientationOff (first panel)The first key that is on wins; panels marked on stay expanded
DEFAULT_LANGUAGE_CODEDefault Selection › Default LanguageApplet UI languageenPersonal language (Personalization › Default Selection) takes precedence
DEFAULT_TOGGLE_COLUMN (personal)Personalization › Default SelectionListing layout SINGLE / DOUBLEUnset (double column on desktop)Evaluated together with VERTICAL_ORIENTATION in the container
DEFAULT_ORIENTATION (personal)Personalization › Default SelectionHORIZONTAL / VERTICAL form layoutUnset (follows master VERTICAL_ORIENTATION)See VERTICAL_ORIENTATION

Keys the screens read without a control on the shared screen for this applet code: EXPAND_PAYMENTS (the Create/View panel list expects it; the shared screen renders EXPAND_SETTLEMENT instead, so the Payment panel can never be pre-expanded).

Keys rendered and saved but never read by the cart form:

  • DEFAULT_BRANCH, DEFAULT_LOCATION — Default Selection saves them into master settings (and the personal screen into personal settings), but neither the Create form nor the Add Line Item dialog reads them: a new cart always starts with an empty Branch and Location. The master screen also pre-fills its own controls from the personal settings, so what it shows after a reload may not be what it saved.
  • Everything else the shared Application Settings screen renders for this applet code (about 200 toggles, e.g. DISALLOW_SELL_BELOW_MIN_PRICE, HIDE_PERMIT_NO, HIDE_TRACKING_ID, HIDE_SALES_AGENT, HIDE_SERVER_DOC_1..3, DEFAULT_POSTING_STATUS, ENABLE_AUTO_PRINT, CANNOT_EDIT_CURRENCY_RATE, FINAL_STATUS_GUID). None of them is consumed by this applet’s code. In particular there is no LOCK_PURCHASER_TO_CURRENT_USER, no HIDE_DOC_NO_* key and no “mandatory reason” setting in this applet.
  • Printables (Settings › Printables): the screen uploads Jasper formats and stores the default under the extension INTERNAL_SALES_QUOTATION_APPLET_EXT_CODE_PRINTABLE_FORMAT_GUID_INTERNAL_SALES_QUOTATION, and its listing is filtered to txn_type = INTERNAL_SALES_QUOTATION — constants copied from the Sales Quotation applet. The print effect (printJasperPdf$) is commented out and the Export tab is not rendered, so nothing in this applet prints.

Document behaviour settings

No exposed control found: the applet reads no FINAL_STATUS_GUID, workflow, void-reason, auto-print or e-Invoice key. FINAL, delete and the missing VOID / DISCARD are fixed in code — see Lifecycle.

Settings in other applets that control this applet

SettingWhere it is setEffect here
Knock Off Configuration row INTERNAL_SHOPPING_CART → INTERNAL_SALES_ORDER, flow type LINE, enabledOrganisation › CompanyWhether FINAL writes line open-queue rows and whether the Sales Order v2 applet shows its Shopping Cart knock-off panel
HIDE_SEARCH_BY_SHOPPING_CART_TAB, HIDE_KO_SHOPPING_CART_TABSales Order (Internal) v2 › Application SettingsHide the tabs through which a FINAL cart is turned into a Sales Order
Settlement method items (SETTLEMENT_TYPE)CashbookWhich payment types the Add Payment dialog offers and which fields it asks for; only methods linked to a branch are listed
Cart Security (line integrity)CP Commerce Admin › Website › Cart Security tabWhen it is on, storefront and customer-access saves are checked and their lines signed. At checkout an unchanged line is accepted, and any other line, including one edited here, is checked as a save would be and signed again. An unsigned staff edit is not refused for that alone, but a shopper’s browser can still hold the old line: if you changed a line’s standard price, checkout can refuse that line until the shopper removes it and adds it again (unless the item price check accepts the browser’s price as the store’s current price), and a price or discount the website’s own rules do not account for can be refused or flagged, as the tab is set — see Troubleshooting

Feature visibility / permissions

21 client-side permissions are defined for this applet: the 20 SHOW_* counterparts of the line-detail HIDE_* settings above, plus SHOW_COSTING_DETAILS. The Add and Edit Line Item dialogs show a field when it is not hidden or the user holds its SHOW_* permission — so a tenant-wide hide can be reopened for a role or user by granting the SHOW_X permission. SHOW_COSTING_DETAILS does nothing in this applet. No permission gates Create, FINAL or DELETE on the screen; those are enforced by the server-side TNT_API_DOC_INTERNAL_SHOPPING_CARTS_* permissions (Settings › Permission Set).

Fields

Main Details

The tab opens with Doc Short Code (always SHPCRT, read-only) and, on an existing cart only, the three document numbers Doc No (Tenant), Doc No (Company) and Doc No (Branch). The three number boxes accept typing, but nothing you type is kept: SAVE sends back the numbers the cart was loaded with. The other free-text boxes are Reference, Permit No, Tracking ID and Remarks. Remarks is what the listing’s Doc Remarks column shows.

On an existing cart, clearing Reference, Remarks or CRM Contact and pressing SAVE keeps the old text: the form passes on only a box that has something in it. To blank one of them, type a replacement, such as a single dash. Permit No, Tracking ID and Sales Lead are saved exactly as they stand, empty or not.

FieldWhat it holdsRequiredWhat to know
BranchThe selling branch; choosing it fills Company and CurrencyYesLocked once FINAL. On SAVE the company is re-read from the branch record, so a branch that has moved company takes the cart with it
LocationPre-filled from the branch’s main locationYesLocked once FINAL
Sales AgentAn employee, kept in the cart’s customer detailsYesListing shows the agent name
CurrencyFrom the branchYesLocked once FINAL
Credit Terms, Credit LimitWhatever the cart already carries; choosing a customer here copies neither, so on a cart raised in this applet both stay emptyMarked required but disabledDisabled controls do not block Save; display only
Transaction DateThe cart’s date; a new cart takes the date the applet was opened, so reload it on a new dayNoShown read-only, with no date picker. On SAVE the server’s stored date is re-applied
Sales LeadCorporate / Non-CorporateNoDefaults to Corporate
CRM ContactA plain text box, although the value is stored as a link to a CRM contact recordNoTyping a name here makes Create or SAVE fail with an error toast, because a name is not a record link. Leave it empty. A cart that already carries a contact shows the link’s code here, not a name
Member CardChosen through the Select Member screen on a new cart; the box shows the membership’s internal code, not the card numberNoLocked once FINAL. On an existing cart, clicking the box opens nothing, so the member stays as it was. On a new cart, the pick is overwritten with an empty value by the next update to Main Details, which the pick itself triggers, while the box goes on showing it; so do not rely on this box. Record the member on the sales order

Account

Sub-tabFieldRequiredNotes
Entity DetailsEntity ID (opens Select Customer)YesThe only required Account field; Create is disabled until it is set. Locked once FINAL
Entity DetailsName, Type, Identity Type, Description, Email, Phone, Status; GL Code, ID Number, Currency—Read-only. The first seven are copied from the customer record when you choose it; GL Code, ID Number and Currency are shown but this applet never fills them
Bill ToName, Email, Phone; Address (opens Select Billing Address); Address Line 1–5, City, State, Postcode, CountryNoAddress fields read-only; picker limited to the customer’s addresses and disabled until a customer is chosen. On an existing cart, a new address picked here is not saved

Ship To has the same shape for the recipient: Recipient Name, Phone No and Email are typed; the address is chosen from the customer’s shipping addresses. Choosing a customer copies the customer’s name, email and phone into both Bill To and Ship To and clears any address already chosen, so pick the customer first and the addresses after. Phone No is a number box on both sub-tabs, so a leading zero is dropped. On an existing cart, a Ship To address picked from the list is accepted and then saved as it was, the same as Bill To. The recipient’s name, email and phone are saved. To send an order to a different address, correct it on the sales order after knock-off.

Line Items and Add / Edit Line Item

Grid columns: Item Code, Item Name, UOM, Delivery (a slider showing the line quantity), Qty, Unit Price, SST/VAT/GST, Txn Amount; Total and Tax above the grid. The + button opens the item search (products and services only). Unit Price in the grid is the price before discount and before tax (Amount Net plus Discount, divided by quantity), while Total is the sum of Txn Amount, after discount and with tax. On a discounted line, Unit Price × Qty plus tax will not equal the Txn Amount beside it, and that is expected. The line’s Remarks box is not a grid column: open the line to read it.

FieldMeaningRequiredNotes
Item Code / Item NameFrom the selected item—Code read-only, name editable, also after FINAL
Pricing Scheme / UOMPricing-scheme UOM selector—Hidden by HIDE_UNIT_PRICE_STD_PRICING_SCHEME. It offers each scheme’s purchase price, not its sales price, and picking one replaces the line’s price, so check the price before Add
Unit Price STD (excl. / incl. tax), by UOMStandard prices—Read-only; hidden by the matching HIDE_*
Unit Discount, Unit Discount by UOM, Discount AmountDiscountsNoHidden by the matching HIDE_*; a negative value is accepted and raises the price
Quantity, Quantity by UOM, UOM to Base RatioQuantities—Ratio read-only
Unit Price Net / Txn, Std / Net / Txn AmountComputed amounts—Net and Txn prices and amounts can be typed and recalculate the line; Amount STD is read-only. In Edit Line Item a new Unit Price Net changes the amounts, but the stored unit net price stays as it was and shows again when you reopen the line
Tax Code, Tax %, Tax AmountSST selector and computed values—Hidden together by HIDE_TAX_CONFIG_SELECTION. The selector lists the input and purchase tax codes, not the sales output codes, so check the code you pick against the item
WHT Code, WHT %, WHT AmountWithholding tax—Hidden together by HIDE_WHT_CONFIG_SELECTION

On a FINAL cart, Edit Line Item locks every field except Item Name and Remarks. Those two can still be changed and saved after the cart is final, so a correction to a description does not need a new cart.

Payment and Add Payment

Grid columns: Date, Amount (net), Details (the settlement method), Remarks. Total = sum of payment lines; Outstanding = line-item total − payments. On an existing cart, SAVE stores payments as settlement lines on the cart itself, marked as receipt lines (payment lines for CASH_BACK). On SAVE the server gives every line, payments included, the cart’s transaction date, whatever date the dialog showed. A payment larger than the cart’s outstanding balance is refused when you press Add.

Three cautions before you rely on this tab, all read in the code of the build tenants are served, not run:

  • The payment-method list is likely to be empty. Add Payment asks for the methods linked to a branch but does not say which branch, and the server refuses that request as badly formed. If the list is empty, the payment is recorded later instead: on the sales order after knock-off, or as a receipt voucher, by whoever takes the money.
  • On a new cart, Create sends the line items only. Payments added before Create are dropped. Add them after the cart exists, open it again and press SAVE.
  • Some typed values are not kept, as the table says.
Settlement typeRequired fieldsWhat is kept
CASHDate, Amount (≥ 0.01)As typed
CASH_BACKDate, Cash Back, AmountAs typed; Cash Back for Settlement is read-only
CREDIT_CARDDate, Amount, Card No, Name on Card, Card Issuer (typed), Type (VISA / MASTERCARD), Year, Month, CVVThe card expiry (Year, Month) is not saved
VOUCHERAmount, Voucher NoAs typed
BANK_TRANSFERDate, Amount, Transaction NoTransaction No is not saved
MEMBERSHIP_POINT_CURRENCYDate, Point CCY (Gold / Silver / Rebate Point), Amount, Point Currency for SettlementPoint Currency for Settlement is required but read-only and nothing fills it, so Add stays disabled and a points payment can never be added here
CHEQUEDate, Amount, Cheque NoCheque No is required but read-only, so Add stays disabled and a cheque payment can never be added here

Lifecycle and effects

Which rules apply. This applet saves carts as ordinary documents. The one-cart-per-customer rule and the linked-login check apply only to the Customer Access applet — staff can raise more than one cart for a customer here, and the storefront’s create route runs neither check.

Statuses. Empty posting status (shown as DRAFT) → FINAL. FINAL is one-way; pressing Final on a FINAL cart shows the toast This document has been posted without contacting the server. There is no VOID or DISCARD button. DELETE is offered only on non-FINAL carts and only when SHOW_DOCUMENT_DELETE_BUTTON is on; the server checks TNT_API_DOC_INTERNAL_SHOPPING_CARTS_DELETE_TGT_GUID and removes the cart with its lines and links — it is not a DISCARD and the listing no longer shows the cart.

What posting does.

  • Document type: INTERNAL_SHOPPING_CART, short code SHPCRT.
  • No money and no stock. A cart carries no amounts that post and moves no stock; a cart sent through the API as anything else is rejected.
  • Journal: none. If journal posting is switched on for every FINAL, its job ends with NO_JOURNAL_CREATED for a cart.
  • Stock: none, and no cost update.
  • What VOID reverses: nothing; there is no VOID.

What FINAL does do. The shared FINAL checks apply: a bin quantity check on lines that name a bin, and a refusal when the transaction date falls in a company period locked with LOCK_ALL or LOCK_TXN. The serial and batch quantity checks are skipped, because this applet does not ask for them and a cart line moves no stock; a serial number repeated within the cart still refuses FINAL.

After FINAL. The main posting job runs, and — with an enabled INTERNAL_SHOPPING_CART → INTERNAL_SALES_ORDER line flow — opens the cart’s lines for the Sales Order v2 applet to knock off. The message-template job is queued as for every document, and the save of the new status raises the INTERNAL_SHOPPING_CART_UPDATED webhook event; the …_CREATED events the platform raises on FINAL are for sales invoices only.

Convert and Print. Neither can be done from this applet: the Convert and Export tabs and printing are not available on the View screen. Storefront carts are converted to Sales Orders by the storefront checkout, not by this applet.

One phone, two shops, one Saturday

A worked weekend that follows this applet’s cart beside a marketplace order — one flagship smartphone sold on the website and in the Shopee shop, the Shopee order cancelled, the payout netted — is told once, where the marketplace shape is, on Use cases §3. For this applet the point is the first step: the website order was converted from the cart when the card payment came back, with the payment on it as a settlement line.

Related applets

  • Shopping Cart Customer Access (Internal) — the customer-facing twin: same document type, ecom endpoint with one cart per customer entity; staff review those carts here.
  • CP Commerce Admin — storefronts create carts of this type when a shopper adds to cart and for a point purchase; the website’s Cart Security tab decides whether cart lines are checked and signed.
  • Sales Order (Internal) — the only document that consumes a FINAL cart (Search Shopping Cart / Shopping Cart knock-off, v2 applet).
  • Receipt Voucher (Internal) — the payment lines are shaped as receipt-voucher lines; the cart-to-RV conversion exists in code without a button.
  • Customer Maintenance — customer, addresses, credit terms and limits; the embedded customer editor here writes the same records.
  • Cashbook — settlement methods offered by Add Payment.
  • Organisation — branch main location, and the Knock Off Configuration row that connects carts to sales orders.
  • Tax Configuration and Doc Item Maintenance — tax codes and the PNS items offered by the item search.

Troubleshooting

SymptomCauseFix
The Sales Order applet’s “Search Shopping Cart” tab shows nothing, or the “Shopping Cart” knock-off panel is missingThe cart is not FINAL, or the company has no enabled INTERNAL_SHOPPING_CART → INTERNAL_SALES_ORDER LINE row in Knock Off Configuration (the panel is shown only when that row is enabled; open-queue rows are written only through it)FINAL the cart; add / enable the row in Organisation › Company › Knock Off Configuration, then re-FINAL a fresh cart (existing FINAL carts get no queue rows retroactively)
No DELETE button on a cartSHOW_DOCUMENT_DELETE_BUTTON is off, or the cart is FINALTurn the setting on in Application Settings; FINAL carts cannot be deleted from the UI
Final shows This document has been postedThe cart is already FINAL; the client refuses a second FINALNothing to do; there is no un-FINAL
Final is refused for a locked periodThe transaction date falls in a company fiscal period locked with LOCK_ALL / LOCK_TXNUnlock the period, or reload the applet and raise a new cart, which takes the date the applet was opened: this screen shows the date read-only, and SAVE re-applies the stored date anyway
A price, discount or tax field is missing from Add / Edit Line ItemThe matching HIDE_* setting is on and the login lacks the SHOW_* client-side permissionTurn the setting off, or grant the SHOW_* permission to the role
Default Branch / Location saved in Default Selection never appear on a new cartThe cart form does not use them; the Default Selection screen also displays personal values rather than applet-wide valuesSelect Branch and Location on every cart; treat the Default Selection screen as inert
A storefront checkout is refused, or the order is flagged, after staff edited the cart hereWith Cart Security on, checkout checks again any line changed since its last storefront save, including your edit and any line that was never signed. A line whose standard price you changed can be refused if the shopper’s browser still holds the old price, and a discount or price the website’s own rules do not account for is refused or flagged, as the tab is setGive discounts through the website’s price book or promotions rather than by editing the cart line, or have the shopper remove the item and add it again. A flagged order is reviewed before release, as Cart Security describes
A customer’s cart created from the Customer Access applet is refused because the customer already has a cartCustomer Access allows one cart per customer, and the rule counts every cart of that customer that has not been deleted — whatever its posting status, and including carts staff raised here. A finalised cart still blocks a new one, and so does a discarded one — this applet has no DISCARD, but the Customer Access applet’s DISCARD button and the API can discard a cart that is not FINALDelete the existing cart, then retry — only DELETE frees the place. Do not FINAL a cart to make room: it goes on blocking, and this screen offers no DELETE on a FINAL cart (see Statuses under Lifecycle and effects). For the customer’s side, and a finalised cart, see the Customer Access troubleshooting
A new Bill To or Ship To address is gone after SAVE on an existing cart, or the Member Card box does nothingOn the View screen the two address pickers accept a choice that nothing records, so SAVE sends the cart’s original values; the Member Card box is not wired to a picker thereCorrect the address or member on the sales order after knock-off; on a new cart, pick the customer first and the addresses after
Create or SAVE fails with an error after something was typed into CRM ContactThe box is plain text, but the value must be a link to a CRM contact record, so a typed name is refusedEmpty the box and save again. On an existing cart, emptying it does not clear a value that was saved earlier
A document number typed into Doc No (Tenant / Company / Branch) did not changeThose boxes are editable, but SAVE sends back the numbers the cart was loaded withNothing to fix. The cart’s numbers are not edited from this screen
After typing a Txn Amount, the discount is out by a few cents, or is negativeA typed Txn Amount is worked back from the standard price with its cents droppedEnter the discount or Amount Net instead, and check Discount Amount before Add
Nothing prints; no Convert actionExport, Convert and printing are not available in this applet. The Printables screen lists and edits Sales Quotation print formats, not cart formatsPrint from the Sales Order once the cart is knocked off. Leave Printables alone: replacing or deleting a format there changes the Sales Quotation’s format
Keyword search returns unrelated cartsThe keyword is matched separately against carts, branch names and customer names and the results are unionedUse the Customer Name / Branch fields of the advanced search instead
Payments added on a new cart are missing after CreateCreate sends the line items onlyOpen the cart, add the payments again and press SAVE
Add Payment offers no payment methodThe dialog asks for the branch’s methods without naming the branch, and the server refuses the requestRecord the payment on the sales order after knock-off, or as a receipt voucher
A cart you just raised is not in the listingThe listing loads the first 50 carts in the server’s key order, not the newest 50Use the advanced search (Customer Name, Creation Date, Branch)
Listing is slow with many cartsEach of the first 50 rows triggers three extra reads (branch, agent, customer)Known cost of the client-side listing; narrow with the advanced search

Related documentation

Last updated on