@managesome/eposmatic-toolkit 0.2.224 → 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
  };
@@ -254,7 +254,7 @@ function getTaxNumberTitle(country_alpha_2, tax_invoice_provider) {
254
254
  if (country_alpha_2 === constants_1.COUNTRY_ALPHA_2_ENUM.PK) {
255
255
  switch (tax_invoice_provider) {
256
256
  case constants_1.TAX_INVOICE_PROVIDER_ENUM.FBR:
257
- title = 'STRN';
257
+ title = 'NTN';
258
258
  break;
259
259
  case constants_1.TAX_INVOICE_PROVIDER_ENUM.PRA:
260
260
  title = 'P-NTN';
@@ -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 ?? 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
@@ -198,7 +198,7 @@ exports.TenantSchema = new mongoose_1.Schema({
198
198
  },
199
199
  web_allow_ordering_till_closing_time: {
200
200
  type: Boolean,
201
- default: true,
201
+ default: false,
202
202
  },
203
203
  web_enable_takeaway: {
204
204
  type: Boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.224",
3
+ "version": "0.2.226",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",