@bookmypuja-tech/bmp-pdf 0.1.2 → 0.1.4

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.
package/dist/index.d.ts CHANGED
@@ -37,6 +37,7 @@ interface IPujaReport {
37
37
  pujas: {
38
38
  name: string;
39
39
  repeatCount?: Number;
40
+ pujaQty?: Number;
40
41
  participantName: string;
41
42
  participantNakshatra: string;
42
43
  pujaDate: Date;
package/dist/index.js CHANGED
@@ -530,7 +530,7 @@ var PujaReportReceipt2Inch = (data) => {
530
530
  day: "numeric",
531
531
  year: "numeric"
532
532
  })), /* @__PURE__ */ React5.createElement(Line3, null), data.pujas.map((puja, index) => {
533
- return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(Text5, null, puja.name, " ", "(", "qty:", " ", Boolean(puja.repeatCount) ? String(puja.repeatCount) : String(1), ")"), puja.prasadam ? /* @__PURE__ */ React5.createElement(Text5, null, puja.prasadam) : null, /* @__PURE__ */ React5.createElement(Text5, { align: "right" }, "Price: ", String(puja.pujaAmount), ", ", puja.pujaDate.toLocaleDateString("en-US", {
533
+ return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(Text5, null, puja.name, " ", Number(puja.pujaQty) > 1 ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, "(", "qty: ", String(puja.pujaQty), ")") : null), puja.prasadam ? /* @__PURE__ */ React5.createElement(Text5, null, puja.prasadam) : null, /* @__PURE__ */ React5.createElement(Text5, { align: "right" }, "Price: ", String(puja.pujaAmount), ", ", puja.pujaDate.toLocaleDateString("en-US", {
534
534
  month: "short",
535
535
  day: "numeric",
536
536
  year: "numeric"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bookmypuja-tech/bmp-pdf",
3
3
  "description": "PDF Report Generation for Temple360 and T-360 by BookMyPuja",
4
- "version": "0.1.2",
4
+ "version": "0.1.4",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",