recaho-print-react 0.0.163 → 0.0.164

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.
@@ -4492,7 +4492,9 @@ const R2 = (s, i, o) => {
4492
4492
  }, yf = (s, i, o = {}) => new Promise(async (c, h) => {
4493
4493
  var p, d, x, u, v, b, y;
4494
4494
  try {
4495
- const { invoiceFormat: w, custName: k, custMobile: N, custAddress: B, formSchemas: T, userData: S = {} } = o, { itemList: D } = s;
4495
+ const { invoiceFormat: w, custName: k, custMobile: N, custAddress: B, formSchemas: T, userData: S = {} } = o;
4496
+ console.log("formSchemas", T), console.log("orderData", s);
4497
+ const { itemList: D } = s;
4496
4498
  let V = S == null ? void 0 : S.userRole;
4497
4499
  if (S.userRole == "admin" ? V = "ADMIN" : V = S == null ? void 0 : S.name, !(D != null && D.length)) return;
4498
4500
  let L = i.printerSize, F = Gl(null, { type: "BILL", siteSetting: i }, { occupiedServer: o.occupiedServer });
@@ -4527,7 +4529,7 @@ const R2 = (s, i, o) => {
4527
4529
  var q1;
4528
4530
  return Q1.customType == "GUEST" && ((q1 = Q1.availability) == null ? void 0 : q1.includes("BILL"));
4529
4531
  });
4530
- if (H1 != -1 && s.noOfGuest && U1.push({
4532
+ if (console.log("isguest", H1), H1 != -1 && s.noOfGuest && U1.push({
4531
4533
  customName: H1 ? T[H1].customName : "",
4532
4534
  customValue: s.noOfGuest
4533
4535
  }), (b = s.customFeilds) != null && b.length) {
@@ -4539,6 +4541,7 @@ const R2 = (s, i, o) => {
4539
4541
  });
4540
4542
  u1.customFields = U1;
4541
4543
  }
4544
+ console.log("customFields :::", U1);
4542
4545
  let V1 = null, X1 = null;
4543
4546
  w.companyLogo && (V1 = await vi(`https://${w.companyLogo.bucket}.s3.amazonaws.com/${w.companyLogo.key}`)), w.qrcode && (X1 = await vi(`https://${w.qrcode.bucket}.s3.amazonaws.com/${w.qrcode.key}`));
4544
4547
  var m = "Unknown OS";
@@ -27191,6 +27194,7 @@ var Gs = Pl(), na = "normal-class";
27191
27194
  (Gs == "Android OS" || Gs === "iOS") && (na = "bold-class");
27192
27195
  const Gn = (s) => {
27193
27196
  var L1, re, Q1, q1, de;
27197
+ console.log("props", s);
27194
27198
  const i = s.additionalActions ?? {}, { invoiceFormat: o = {} } = s, { cashGivenDetails: c = [] } = s, h = N3(null), m = s.settingData ? s.settingData : s.value.settingData, p = localStorage.getItem("siteId"), { staticDataKOT: d, printer: x, type: u } = s.printerDataObject, v = ((re = (L1 = s.value) == null ? void 0 : L1.settingData) == null ? void 0 : re.curr) ?? ((Q1 = s.settingData) == null ? void 0 : Q1.curr) ?? "INR";
27195
27199
  m == null || m.fontTheme;
27196
27200
  let b = s.printerDataObject.paperSize, y = Gl(
@@ -28311,6 +28315,7 @@ const Gn = (s) => {
28311
28315
  return j;
28312
28316
  }, X1 = (Q, j, h1, a1) => {
28313
28317
  var D1, Z1, ue, se, me, ie, ee, he, ye, je, P1, be, Ie, ke, ge, Qe, De, Pe, Ee, xe, M, Y, O, $, Z, p1, W, N1, H, f1, c1, k1, X, x1, j1, i1, S1, M1, E1, z1, Y1, R, m1, y1, s1;
28318
+ console.log("staticData", j);
28314
28319
  const w1 = V1(m.customLabelsMap), T1 = v2(Nb(m.paymentModes), "internalName"), v1 = (A1) => {
28315
28320
  var U;
28316
28321
  return (U = T1[A1]) != null && U.displayName ? T1[A1].displayName.toUpperCase() : A1;
@@ -30134,7 +30139,9 @@ const Gn = (s) => {
30134
30139
  }
30135
30140
  }), T8 = async (s, i, o) => new Promise(async (c, h) => {
30136
30141
  try {
30137
- let m = await yf(s, i, o), p = [];
30142
+ let m = await yf(s, i, o);
30143
+ console.log("resp", m);
30144
+ let p = [];
30138
30145
  await new Promise(async (x) => {
30139
30146
  if (o.isSplitBill && m.obj.splitDetails && m.obj.splitDetails.length) {
30140
30147
  const u = m.obj.splitDetails.map((v, b) => new Promise((y) => {