shareneus 1.5.29 → 1.5.31

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.
@@ -243,6 +243,7 @@ function GetServicePriceForPriceList(service, priceList, equipment = null, quant
243
243
  if (!service || !priceList) {
244
244
  return service;
245
245
  }
246
+ console.log(service, priceList, equipment, quantity);
246
247
  const resolvedQty = Math.max(1, Number(quantity) || 1);
247
248
  const warnings = [];
248
249
  const priceListId = (_b = (_a = priceList === null || priceList === void 0 ? void 0 : priceList._id) === null || _a === void 0 ? void 0 : _a.toString) === null || _b === void 0 ? void 0 : _b.call(_a);
@@ -254,6 +255,7 @@ function GetServicePriceForPriceList(service, priceList, equipment = null, quant
254
255
  // Check if equipment-based service (FitPriceCosts) or simple service (Price)
255
256
  if (service.FitPriceCosts && service.FitPriceCosts.length > 0) {
256
257
  // Equipment-based service - need equipment information
258
+ console.log('Equipment-based service pricing detected.', !equipment);
257
259
  if (!equipment) {
258
260
  warnings.push("Equipment information required for equipment-based service pricing.");
259
261
  service.PriceListWarnings = warnings;
@@ -374,6 +376,7 @@ function GetServicePriceForPriceList(service, priceList, equipment = null, quant
374
376
  let baseCostSource = "BASE";
375
377
  if (service.FitPriceCosts && service.FitPriceCosts.length > 0) {
376
378
  // Equipment-based service - need equipment information
379
+ console.log('Equipment-based service pricing detected.', !equipment);
377
380
  if (!equipment) {
378
381
  warnings.push("Equipment information required for equipment-based service costing.");
379
382
  service.PriceListWarnings = warnings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.5.29",
3
+ "version": "1.5.31",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",