[object Object]

← back to Reidwitlin Landing

discounts are line-specific (Steve): Artmura % unconfirmed — removed inherited newwall 20%, Get Price confirms; module sync incl. no-DW-SKU-in-outbound-email rule

466dd2a489094f22e82c9158eea7989c711b7de1 · 2026-07-02 11:34:57 -0700 · Steve Abrams

Files touched

Diff

commit 466dd2a489094f22e82c9158eea7989c711b7de1
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Jul 2 11:34:57 2026 -0700

    discounts are line-specific (Steve): Artmura % unconfirmed — removed inherited newwall 20%, Get Price confirms; module sync incl. no-DW-SKU-in-outbound-email rule
---
 lib/vendor-requests.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/vendor-requests.js b/lib/vendor-requests.js
index 37d0fb2..872fdd7 100644
--- a/lib/vendor-requests.js
+++ b/lib/vendor-requests.js
@@ -49,10 +49,13 @@ function composeEmail(type, vendor, item, reqNo) {
   const ask = type === 'stock'
     ? 'Could you please check current stock availability on the following item?'
     : 'Could you please confirm our current net / wholesale cost (and any applicable discount) on the following item?';
+  // HARD RULE (Steve 2026-07-02): outbound emails NEVER mention our internal
+  // (DW) SKU numbers — manufacturer SKU + REQ number only.
   const subjectHead = type === 'stock' ? 'Stock check' : 'Pricing request';
-  const subject = `${subjectHead} — ${item.title || item.mfr_sku} (${item.mfr_sku || item.dw_sku})${acct ? ` — Acct #${acct}` : ''} — ${reqNo}`;
+  const subjectSku = item.mfr_sku ? ` (${item.mfr_sku})` : '';
+  const subject = `${subjectHead} — ${item.title || item.mfr_sku || 'item inquiry'}${subjectSku}${acct ? ` — Acct #${acct}` : ''} — ${reqNo}`;
   const rows = [
-    ['Pattern', item.title], ['Item / SKU', item.mfr_sku], ['Our ref', item.dw_sku],
+    ['Pattern', item.title], ['Item / SKU', item.mfr_sku],
     ['Quantity', item.qty || (type === 'stock' ? 'to be confirmed' : null)],
     ['Note', item.note],
   ].filter(r => r[1]);

← 7aa3cbb buy-from distributor support: Artmura purchases route via Ne  ·  back to Reidwitlin Landing  ·  chore: addendum gate clean, v0.2.1 (session close) 41474dc →