@fas-core/shared-types 1.0.138 → 1.0.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3237,12 +3237,7 @@ var quoteSettlement = (quote) => {
|
|
|
3237
3237
|
var isRepQuoteOrderable = (quote, now = /* @__PURE__ */ new Date()) => isNetsuiteOrigin(quote) && quoteCanBeOrdered(quote, now) && quote.payableOnline !== true;
|
|
3238
3238
|
|
|
3239
3239
|
// src/order/statusTone.ts
|
|
3240
|
-
var recordStatusTone = (record, now = /* @__PURE__ */ new Date()) =>
|
|
3241
|
-
const status = String(record.status ?? "");
|
|
3242
|
-
if (record.convertedOrder && status.startsWith("QUOTE_")) return StatusToneEnum.CLOSED;
|
|
3243
|
-
if (isQuoteLapsing(record, now)) return StatusToneEnum.WAITING;
|
|
3244
|
-
return statusTone(status);
|
|
3245
|
-
};
|
|
3240
|
+
var recordStatusTone = (record, now = /* @__PURE__ */ new Date()) => isQuoteLapsing(record, now) ? StatusToneEnum.WAITING : statusTone(String(record.status ?? ""));
|
|
3246
3241
|
var statusTagColor = (record) => STATUS_TONE_COLORS[recordStatusTone(record)];
|
|
3247
3242
|
|
|
3248
3243
|
// src/orderItem/netsuiteLine.ts
|