@darkpos/pricing 1.0.116 → 1.0.117

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.
@@ -107,6 +107,7 @@ module.exports = ({ actions, itemActions, modifierActions, settings, _ }) => {
107
107
  item,
108
108
  itemIndex,
109
109
  overridenQuantity,
110
+ autoBarcode,
110
111
  }) {
111
112
  if (!orderProp || !item) return orderProp;
112
113
 
@@ -146,6 +147,10 @@ module.exports = ({ actions, itemActions, modifierActions, settings, _ }) => {
146
147
  }
147
148
  }
148
149
 
150
+ if (autoBarcode && !orderItem.serial) {
151
+ orderItem.serial = autoBarcode;
152
+ }
153
+
149
154
  if (overridenQuantity > -1) {
150
155
  orderItem.quantity = overridenQuantity;
151
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkpos/pricing",
3
- "version": "1.0.116",
3
+ "version": "1.0.117",
4
4
  "description": "Pricing calculator",
5
5
  "author": "Dark POS",
6
6
  "license": "ISC",
@@ -55,5 +55,5 @@
55
55
  "supertest": "^6.2.3",
56
56
  "supervisor": "^0.12.0"
57
57
  },
58
- "gitHead": "f61e54dc3685291e31f65a542255e54d6c0923fe"
58
+ "gitHead": "3519ea921f066379601e455e8d838bdad9378dd0"
59
59
  }