From 89e7f6426670fd9e4f69d60e11dcbbd64c60ba6a Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 1 Aug 2026 08:24:49 +0000 Subject: [PATCH] Name the basis in Nett Discount mode, and drop the SP incentives preamble MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Nett Discount the suffix read just "% on MRP". The discount there comes off MRP incl GST and lands on the incl-GST price, so there is no GST clause to add — but the absence of one was left to be inferred. It now says "% on MRP (incl GST)", on both the cost and selling cards. Discount + GST is unchanged. The paragraph above the SP incentive rows is gone. The CP panel never had one, and the sentence restated what the totals underneath already show. Also removes a duplicated comment left over from an earlier edit. 1549 assertions, 0 failures. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_014vjNhTSno87yfot5BbyX4w --- assets/app.js | 6 +++++- index.html | 2 -- tests/features.test.js | 12 +++++++----- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/assets/app.js b/assets/app.js index b05eabd..c8fc161 100644 --- a/assets/app.js +++ b/assets/app.js @@ -2910,7 +2910,11 @@ function discSuffix(mode,gst){ then wraps as "% on MRP" / "+ 18% GST" rather than leaving the "+" dangling at the end of the first line. */ var base='%\u00A0on\u00A0MRP'; - return (mode==='excl') ? base+' +\u00A0'+gst+'%\u00A0GST' : base; + // Nett Discount takes the price straight off MRP incl GST and lands on the + // incl-GST price, so there is no GST clause to add — say which basis it is + // rather than leaving the reader to work it out from the absence of one. + return (mode==='excl') ? base+' +\u00A0'+gst+'%\u00A0GST' + : base+' (incl\u00A0GST)'; } /* ── Dynamic GST label updater ── */ function updateGSTLabels(){ diff --git a/index.html b/index.html index 5c16730..5ca1560 100644 --- a/index.html +++ b/index.html @@ -394,7 +394,6 @@

Price Calc

-
@@ -436,7 +435,6 @@

Incentives on SP

-

Optional discounts to customer that reduce effective selling price. Profit = Eff. SP − Eff. CP.