@darkpos/pricing 1.0.115 → 1.0.116
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.
|
@@ -1728,7 +1728,21 @@ describe('hasModifier Function', () => {
|
|
|
1728
1728
|
expect(updatedOrder2.items[1]).toMatchObject({
|
|
1729
1729
|
_id: 1,
|
|
1730
1730
|
itemId: 'ab',
|
|
1731
|
-
modifiers: [
|
|
1731
|
+
modifiers: [
|
|
1732
|
+
{
|
|
1733
|
+
_id: 'groupMod10',
|
|
1734
|
+
attributes: ['group'],
|
|
1735
|
+
properties: {
|
|
1736
|
+
group: {
|
|
1737
|
+
items: [{ _id: 'abc', name: 'related item abc', itemId: 'abc' }],
|
|
1738
|
+
modifiers: [{ _id: '123', name: 'related mod' }],
|
|
1739
|
+
},
|
|
1740
|
+
},
|
|
1741
|
+
conditions: { valid: true },
|
|
1742
|
+
compute: null,
|
|
1743
|
+
_computed: { amount: 0, description: 'undefined' },
|
|
1744
|
+
},
|
|
1745
|
+
],
|
|
1732
1746
|
price: 0,
|
|
1733
1747
|
total: 0,
|
|
1734
1748
|
subTotals: {
|
package/lib/order/resetItem.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darkpos/pricing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.116",
|
|
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": "
|
|
58
|
+
"gitHead": "f61e54dc3685291e31f65a542255e54d6c0923fe"
|
|
59
59
|
}
|