@darkpos/pricing 1.0.7 → 1.0.8
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.
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const Order = Object.freeze({
|
|
2
|
+
OPEN: 'open',
|
|
3
|
+
HOLD: 'hold',
|
|
4
|
+
VOID: 'void',
|
|
5
|
+
CLOSED: 'close',
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const Invoice = Object.freeze({
|
|
9
|
+
PARTIAL: 'partial',
|
|
10
|
+
PENDING: 'pending',
|
|
11
|
+
CLOSED: 'close',
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const Kitchen = Object.freeze({
|
|
15
|
+
OPEN: 'open',
|
|
16
|
+
CLOSED: 'closed',
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const Delivery = Object.freeze({
|
|
20
|
+
NONE: 'none',
|
|
21
|
+
BOOKED: 'booked',
|
|
22
|
+
PICKED: 'picked',
|
|
23
|
+
DELIVER: 'deliver',
|
|
24
|
+
DELIVERED: 'delivered',
|
|
25
|
+
DELIVERED_PARTIAL: 'delivered.partial',
|
|
26
|
+
RETURNED: 'returned',
|
|
27
|
+
RETURNED_PARTIAL: 'returned.partial',
|
|
28
|
+
HELD_NOT_READY: 'held.not.ready',
|
|
29
|
+
HELD_FOR_RELEASE_APPROVAL: 'held.for.release.approval',
|
|
30
|
+
CANCELLED: 'cancelled',
|
|
31
|
+
LOST: 'lost',
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
module.exports = Object.freeze({
|
|
35
|
+
Order,
|
|
36
|
+
Invoice,
|
|
37
|
+
Kitchen,
|
|
38
|
+
Delivery,
|
|
39
|
+
});
|
|
@@ -122,7 +122,7 @@ module.exports = ({
|
|
|
122
122
|
quantity: 1,
|
|
123
123
|
_id: helpers.getObjectID(),
|
|
124
124
|
};
|
|
125
|
-
const totalPieces = itemActions.
|
|
125
|
+
const totalPieces = itemActions.getItemsTotalPieces(item);
|
|
126
126
|
const index = splitOrders.findIndex(
|
|
127
127
|
newOrder =>
|
|
128
128
|
newOrder.items &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darkpos/pricing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Pricing calculator",
|
|
5
5
|
"author": "Dark POS",
|
|
6
6
|
"license": "ISC",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"supertest": "^6.2.3",
|
|
36
36
|
"supervisor": "^0.12.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "b31bb375499da3a545e82e4364569b271eb0d98d"
|
|
39
39
|
}
|