@managesome/eposmatic-toolkit 0.2.225 → 0.2.226
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.
|
@@ -86,7 +86,6 @@ function generateOrderOnCreate(order, withIterations) {
|
|
|
86
86
|
}
|
|
87
87
|
: {}),
|
|
88
88
|
...(order.categories != null ? { categories: generateOrderCategories(order.categories) } : {}),
|
|
89
|
-
order_taker_details: order.order_taker_details ?? order.staff_details,
|
|
90
89
|
_id: new mongoose_1.default.Types.ObjectId(order._id),
|
|
91
90
|
iterations: withIterations ? getOrderIterations(order.iterations) : [],
|
|
92
91
|
};
|
|
@@ -739,7 +739,7 @@ function receiptEngine(payload, mappedItems = {}) {
|
|
|
739
739
|
const staff_name = payload.printer_settings.print_staff_name && payload.order.staff_details != null
|
|
740
740
|
? (payload.order.staff_details.staff_name ?? null)
|
|
741
741
|
: null;
|
|
742
|
-
const order_taker_name = payload.order.order_taker_details?.staff_name ??
|
|
742
|
+
const order_taker_name = payload.order.order_taker_details?.staff_name ?? null;
|
|
743
743
|
const rider_name = payload.order.delivery_details?.rider_details?.staff_name ?? null;
|
|
744
744
|
let payment_status = null;
|
|
745
745
|
// Helper to get expected payment label suffix
|