@bookmypuja-tech/bmp-pdf 0.3.43 → 0.3.45
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 +1 -60
- package/dist/index.js +714 -792
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -222,7 +222,7 @@ var A4Print = ({
|
|
|
222
222
|
var A4Print_default = A4Print;
|
|
223
223
|
|
|
224
224
|
// src/index.tsx
|
|
225
|
-
import
|
|
225
|
+
import React19 from "react";
|
|
226
226
|
|
|
227
227
|
// src/sizes/T2Inch.tsx
|
|
228
228
|
import React2 from "react";
|
|
@@ -422,172 +422,13 @@ var T2Inch = ({
|
|
|
422
422
|
};
|
|
423
423
|
var T2Inch_default = T2Inch;
|
|
424
424
|
|
|
425
|
-
// src/sizes/receipt/DevoteeReceipt2Inch.tsx
|
|
426
|
-
import React3 from "react";
|
|
427
|
-
import {
|
|
428
|
-
Printer,
|
|
429
|
-
Br,
|
|
430
|
-
Line,
|
|
431
|
-
render,
|
|
432
|
-
Text as Text3
|
|
433
|
-
} from "react-thermal-printer";
|
|
434
|
-
var DevoteeReceipt2Inch = (data) => {
|
|
435
|
-
const timeRightNow = /* @__PURE__ */ new Date();
|
|
436
|
-
let datesArray = [];
|
|
437
|
-
if (data.dates) {
|
|
438
|
-
for (let i = 0; i < data.dates.length; i++) {
|
|
439
|
-
if (i == data.dates.length - 1) {
|
|
440
|
-
datesArray.push(
|
|
441
|
-
/* @__PURE__ */ React3.createElement(Text3, null, data.dates[i].toLocaleDateString("en-US", {
|
|
442
|
-
month: "short",
|
|
443
|
-
day: "numeric",
|
|
444
|
-
year: "numeric"
|
|
445
|
-
}))
|
|
446
|
-
);
|
|
447
|
-
} else {
|
|
448
|
-
datesArray.push(
|
|
449
|
-
/* @__PURE__ */ React3.createElement(Text3, null, data.dates[i].toLocaleDateString("en-US", {
|
|
450
|
-
month: "short",
|
|
451
|
-
day: "numeric",
|
|
452
|
-
year: "numeric"
|
|
453
|
-
}) + ", ", data.dates[i + 1].toLocaleDateString("en-US", {
|
|
454
|
-
month: "short",
|
|
455
|
-
day: "numeric",
|
|
456
|
-
year: "numeric"
|
|
457
|
-
}))
|
|
458
|
-
);
|
|
459
|
-
}
|
|
460
|
-
i++;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
return /* @__PURE__ */ React3.createElement(Printer, { type: "epson", width: 32, characterSet: "iso8859_15_latin9" }, /* @__PURE__ */ React3.createElement(Text3, { align: "center", bold: true }, data.templeName), /* @__PURE__ */ React3.createElement(Text3, { align: "center" }, data.address), data.receiptNumber ? /* @__PURE__ */ React3.createElement(Text3, { align: "center" }, "Invoice no: #", String(data.receiptNumber)) : null, /* @__PURE__ */ React3.createElement(Text3, { align: "center" }, "Print:", " ", timeRightNow.toLocaleDateString("en-US", {
|
|
464
|
-
month: "short",
|
|
465
|
-
day: "numeric",
|
|
466
|
-
year: "numeric"
|
|
467
|
-
}), ",", " ", timeRightNow.toLocaleTimeString("en-US", {
|
|
468
|
-
hour: "numeric",
|
|
469
|
-
minute: "numeric",
|
|
470
|
-
hour12: true
|
|
471
|
-
}).toLowerCase()), /* @__PURE__ */ React3.createElement(Line, null), /* @__PURE__ */ React3.createElement(Text3, { bold: true, align: "center" }, "Booking Details"), /* @__PURE__ */ React3.createElement(Br, null), /* @__PURE__ */ React3.createElement(Text3, { bold: true }, "Puja: ", data.pujaName, " ", Number(data.pujaQty) > 1 ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, "(", "qty: ", String(data.pujaQty), ")") : null), data.date ? /* @__PURE__ */ React3.createElement(Text3, null, "Puja Date:", " ", data.date?.toLocaleDateString("en-US", {
|
|
472
|
-
month: "short",
|
|
473
|
-
day: "numeric",
|
|
474
|
-
year: "numeric"
|
|
475
|
-
})) : null, data.participants.map((participant, index) => {
|
|
476
|
-
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, data.participants.length > 1 ? /* @__PURE__ */ React3.createElement(Br, null) : null, /* @__PURE__ */ React3.createElement(Text3, null, "Name: ", participant.participantName), /* @__PURE__ */ React3.createElement(Text3, null, "Nakshatra: ", participant.participantNakshatra));
|
|
477
|
-
}), data.participants.length > 1 ? /* @__PURE__ */ React3.createElement(Br, null) : null, /* @__PURE__ */ React3.createElement(Text3, { align: "right" }, "Price: ", String(data.pujaPrice)), data.status ? /* @__PURE__ */ React3.createElement(Text3, { align: "right" }, data.status) : null, data.dates ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(Br, null), /* @__PURE__ */ React3.createElement(Text3, { bold: true, align: "center" }, "Puja Dates")) : null, data.dates ? datesArray : null, /* @__PURE__ */ React3.createElement(Line, null), /* @__PURE__ */ React3.createElement(Text3, { align: "center" }, "Thank You"), /* @__PURE__ */ React3.createElement(Text3, { align: "center" }, "bookmypuja.app"), /* @__PURE__ */ React3.createElement(Br, null));
|
|
478
|
-
};
|
|
479
|
-
var getDevoteeReceipt2InchBase64Data = async (receiptData) => {
|
|
480
|
-
const data = await render(DevoteeReceipt2Inch(receiptData));
|
|
481
|
-
return btoa(String.fromCharCode.apply(null, Array.from(data)));
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
// src/sizes/receipt/TotalReceipt2Inch.tsx
|
|
485
|
-
import React4 from "react";
|
|
486
|
-
import {
|
|
487
|
-
Printer as Printer2,
|
|
488
|
-
Br as Br2,
|
|
489
|
-
Line as Line2,
|
|
490
|
-
render as render2,
|
|
491
|
-
Text as Text4,
|
|
492
|
-
Image as Image3
|
|
493
|
-
} from "react-thermal-printer";
|
|
494
|
-
var TotalReceipt2Inch = (data) => {
|
|
495
|
-
const timeRightNow = /* @__PURE__ */ new Date();
|
|
496
|
-
return /* @__PURE__ */ React4.createElement(Printer2, { type: "epson", width: 32, characterSet: "iso8859_15_latin9" }, /* @__PURE__ */ React4.createElement(Text4, { align: "center", bold: true }, data.templeName), /* @__PURE__ */ React4.createElement(Text4, { align: "center" }, data.address), data.receiptNumber ? /* @__PURE__ */ React4.createElement(Text4, { align: "center" }, "Invoice no: #", String(data.receiptNumber)) : null, /* @__PURE__ */ React4.createElement(Text4, { align: "center" }, "Print:", " ", timeRightNow.toLocaleDateString("en-US", {
|
|
497
|
-
month: "short",
|
|
498
|
-
day: "numeric",
|
|
499
|
-
year: "numeric"
|
|
500
|
-
}), ",", " ", timeRightNow.toLocaleTimeString("en-US", {
|
|
501
|
-
hour: "numeric",
|
|
502
|
-
minute: "numeric",
|
|
503
|
-
hour12: true
|
|
504
|
-
}).toLowerCase()), /* @__PURE__ */ React4.createElement(Line2, null), /* @__PURE__ */ React4.createElement(Text4, { bold: true, align: "center" }, "Booking Receipt"), /* @__PURE__ */ React4.createElement(Br2, null), /* @__PURE__ */ React4.createElement(Text4, null, "Total Bookings: ", String(data.numberOfPujas)), /* @__PURE__ */ React4.createElement(Text4, null, "Total Amount: ", String(data.totalAmount)), /* @__PURE__ */ React4.createElement(Br2, null), /* @__PURE__ */ React4.createElement(
|
|
505
|
-
Image3,
|
|
506
|
-
{
|
|
507
|
-
src: "https://files.20022005.xyz/praying.png",
|
|
508
|
-
align: "center"
|
|
509
|
-
}
|
|
510
|
-
), /* @__PURE__ */ React4.createElement(Line2, null), /* @__PURE__ */ React4.createElement(Text4, { align: "center" }, "Thank You"), /* @__PURE__ */ React4.createElement(Text4, { align: "center" }, "bookmypuja.app"), /* @__PURE__ */ React4.createElement(Br2, null));
|
|
511
|
-
};
|
|
512
|
-
var getTotalReceipt2InchBase64Data = async (receiptData) => {
|
|
513
|
-
const data = await render2(TotalReceipt2Inch(receiptData));
|
|
514
|
-
return btoa(String.fromCharCode.apply(null, Array.from(data)));
|
|
515
|
-
};
|
|
516
|
-
|
|
517
|
-
// src/sizes/receipt/PujaReport2Inch.tsx
|
|
518
|
-
import React5 from "react";
|
|
519
|
-
import {
|
|
520
|
-
Printer as Printer3,
|
|
521
|
-
Br as Br3,
|
|
522
|
-
Line as Line3,
|
|
523
|
-
render as render3,
|
|
524
|
-
Text as Text5
|
|
525
|
-
} from "react-thermal-printer";
|
|
526
|
-
var PujaReportReceipt2Inch = (data) => {
|
|
527
|
-
const timeRightNow = /* @__PURE__ */ new Date();
|
|
528
|
-
const isSingleDate = data.dates[0].toISOString().split("T")[0] === data.dates[1].toISOString().split("T")[0];
|
|
529
|
-
return /* @__PURE__ */ React5.createElement(Printer3, { type: "epson", width: 32, characterSet: "iso8859_15_latin9" }, /* @__PURE__ */ React5.createElement(Text5, { bold: true, align: "center" }, data.templeName), isSingleDate ? /* @__PURE__ */ React5.createElement(Text5, { align: "center" }, data.dates[0].toLocaleDateString("en-US", {
|
|
530
|
-
month: "short",
|
|
531
|
-
day: "numeric",
|
|
532
|
-
year: "numeric"
|
|
533
|
-
})) : /* @__PURE__ */ React5.createElement(Text5, { align: "center" }, data.dates[0].toLocaleDateString("en-US", {
|
|
534
|
-
month: "short",
|
|
535
|
-
day: "numeric",
|
|
536
|
-
year: "numeric"
|
|
537
|
-
}) + " - ", data.dates[1].toLocaleDateString("en-US", {
|
|
538
|
-
month: "short",
|
|
539
|
-
day: "numeric",
|
|
540
|
-
year: "numeric"
|
|
541
|
-
})), /* @__PURE__ */ React5.createElement(Line3, null), data.pujas.map((puja, index) => {
|
|
542
|
-
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", {
|
|
543
|
-
month: "short",
|
|
544
|
-
day: "numeric",
|
|
545
|
-
year: "numeric"
|
|
546
|
-
})), /* @__PURE__ */ React5.createElement(Text5, null, puja.participantName), /* @__PURE__ */ React5.createElement(Text5, null, puja.participantNakshatra), /* @__PURE__ */ React5.createElement(Line3, null));
|
|
547
|
-
}), /* @__PURE__ */ React5.createElement(Text5, { align: "right" }, "Total Pujas: ", String(data.pujas.length)), /* @__PURE__ */ React5.createElement(Text5, { align: "right" }, "Total Amount:", " ", String(
|
|
548
|
-
data.pujas.reduce((acc, puja) => {
|
|
549
|
-
return acc + Number(puja.pujaAmount);
|
|
550
|
-
}, 0)
|
|
551
|
-
)), /* @__PURE__ */ React5.createElement(Line3, null), /* @__PURE__ */ React5.createElement(Text5, { align: "center" }, "Thank You"), /* @__PURE__ */ React5.createElement(Text5, { align: "center" }, "bookmypuja.app"), /* @__PURE__ */ React5.createElement(Br3, null));
|
|
552
|
-
};
|
|
553
|
-
var getPujaReportReceipt2InchBase64Data = async (receiptData) => {
|
|
554
|
-
const data = await render3(PujaReportReceipt2Inch(receiptData));
|
|
555
|
-
return btoa(String.fromCharCode.apply(null, Array.from(data)));
|
|
556
|
-
};
|
|
557
|
-
|
|
558
|
-
// src/sizes/receipt/QuickReceipt2Inch.tsx
|
|
559
|
-
import React6 from "react";
|
|
560
|
-
import { Br as Br4, Cut as Cut4, Line as Line4, Printer as Printer4, render as render4, Text as Text6 } from "react-thermal-printer";
|
|
561
|
-
var QuickReceipt2Inch = (data) => {
|
|
562
|
-
const timeRightNow = /* @__PURE__ */ new Date();
|
|
563
|
-
return /* @__PURE__ */ React6.createElement(Printer4, { type: "epson", width: 32, characterSet: "iso8859_15_latin9" }, data.pujas.map((puja) => {
|
|
564
|
-
return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(Text6, { align: "center", bold: true }, data.templeName), /* @__PURE__ */ React6.createElement(Text6, { align: "center" }, data.address), data.receiptNumber ? /* @__PURE__ */ React6.createElement(Text6, { align: "center" }, "Invoice no: ", String(data.receiptNumber)) : null, /* @__PURE__ */ React6.createElement(Text6, { align: "center" }, "Print:", " ", timeRightNow.toLocaleDateString("en-US", {
|
|
565
|
-
month: "short",
|
|
566
|
-
day: "numeric",
|
|
567
|
-
year: "numeric"
|
|
568
|
-
}), ",", " ", timeRightNow.toLocaleTimeString("en-US", {
|
|
569
|
-
hour: "numeric",
|
|
570
|
-
minute: "numeric",
|
|
571
|
-
hour12: true
|
|
572
|
-
}).toLowerCase()), /* @__PURE__ */ React6.createElement(Line4, null), /* @__PURE__ */ React6.createElement(Text6, { bold: true, size: { height: 2, width: 1 } }, puja.name, Number(puja.pujaQty) > 1 && ` (Qty:${puja.pujaQty})`), /* @__PURE__ */ React6.createElement(Text6, { align: "left" }, puja.pujaDate.toLocaleDateString("en-US", {
|
|
573
|
-
month: "short",
|
|
574
|
-
day: "numeric",
|
|
575
|
-
year: "numeric"
|
|
576
|
-
}), " ", "Rs ", Number(puja.pujaAmount).toLocaleString("en-IN")), /* @__PURE__ */ React6.createElement(Br4, null), /* @__PURE__ */ React6.createElement(Br4, null), /* @__PURE__ */ React6.createElement(Br4, null), /* @__PURE__ */ React6.createElement(Br4, null), /* @__PURE__ */ React6.createElement(Br4, null), /* @__PURE__ */ React6.createElement(Line4, null), /* @__PURE__ */ React6.createElement(Text6, { align: "center" }, "Thank You"), /* @__PURE__ */ React6.createElement(Text6, { align: "center" }, "bookmypuja.app"), /* @__PURE__ */ React6.createElement(Cut4, { lineFeeds: 2 }));
|
|
577
|
-
}));
|
|
578
|
-
};
|
|
579
|
-
var getQuickReceipt2InchBase64Data = async (receiptData) => {
|
|
580
|
-
const data = await render4(QuickReceipt2Inch(receiptData));
|
|
581
|
-
return btoa(String.fromCharCode.apply(null, Array.from(data)));
|
|
582
|
-
};
|
|
583
|
-
|
|
584
425
|
// src/sizes/a4/A4KitchenReport.tsx
|
|
585
|
-
import { Document as Document4, Image as
|
|
426
|
+
import { Document as Document4, Image as Image3, Page as Page4, View as View3 } from "@react-pdf/renderer";
|
|
586
427
|
|
|
587
428
|
// src/components/Text.tsx
|
|
588
|
-
import { Text as
|
|
429
|
+
import { Text as Text3 } from "@react-pdf/renderer";
|
|
589
430
|
import { maxBy } from "lodash";
|
|
590
|
-
import
|
|
431
|
+
import React3 from "react";
|
|
591
432
|
var majorLanguagesRanges = {
|
|
592
433
|
Latin: /[A-Za-z\u00AA\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uAB66-\uAB69\uFB00-\uFB06\uFF21-\uFF3A\uFF41-z]|\uD801[\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]/g,
|
|
593
434
|
SC: /[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9]|\uD81B[\uDFE2\uDFE3\uDFF0\uDFF1]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]/g,
|
|
@@ -676,7 +517,7 @@ var TextParsedAfterDetectingLanguage = ({ style = {}, children }) => {
|
|
|
676
517
|
textParts.forEach((part, index) => {
|
|
677
518
|
const fontFamily = part.script === "Latin" || !part.script ? "Noto Sans" : `Noto Sans ${part.script}`;
|
|
678
519
|
finalText.push(
|
|
679
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ React3.createElement(Text3, { key: index, style: { fontFamily } }, part.text)
|
|
680
521
|
);
|
|
681
522
|
});
|
|
682
523
|
}
|
|
@@ -689,20 +530,20 @@ var TextParsedAfterDetectingLanguage = ({ style = {}, children }) => {
|
|
|
689
530
|
} else {
|
|
690
531
|
finalStyles = [defaultStyle];
|
|
691
532
|
}
|
|
692
|
-
return /* @__PURE__ */
|
|
533
|
+
return /* @__PURE__ */ React3.createElement(Text3, { style: finalStyles }, finalText?.length ? finalText : children);
|
|
693
534
|
};
|
|
694
535
|
var Text_default = TextParsedAfterDetectingLanguage;
|
|
695
536
|
|
|
696
537
|
// src/sizes/a4/A4KitchenReport.tsx
|
|
697
|
-
import
|
|
538
|
+
import React4 from "react";
|
|
698
539
|
var A4KitchenReport = ({
|
|
699
540
|
date,
|
|
700
541
|
templeName,
|
|
701
542
|
data,
|
|
702
543
|
reportTiming
|
|
703
544
|
}) => {
|
|
704
|
-
return /* @__PURE__ */
|
|
705
|
-
|
|
545
|
+
return /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(Document4, null, /* @__PURE__ */ React4.createElement(Page4, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React4.createElement(
|
|
546
|
+
Image3,
|
|
706
547
|
{
|
|
707
548
|
fixed: true,
|
|
708
549
|
style: {
|
|
@@ -712,7 +553,7 @@ var A4KitchenReport = ({
|
|
|
712
553
|
},
|
|
713
554
|
src: bmpLogo
|
|
714
555
|
}
|
|
715
|
-
), /* @__PURE__ */
|
|
556
|
+
), /* @__PURE__ */ React4.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */ React4.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, reportTimingsObj[reportTiming], " Report") : null, /* @__PURE__ */ React4.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Temple Prasad (Kitchen) Report"), /* @__PURE__ */ React4.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), data.length > 0 ? /* @__PURE__ */ React4.createElement(
|
|
716
557
|
View3,
|
|
717
558
|
{
|
|
718
559
|
style: {
|
|
@@ -721,7 +562,7 @@ var A4KitchenReport = ({
|
|
|
721
562
|
marginTop: 20
|
|
722
563
|
}
|
|
723
564
|
},
|
|
724
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ React4.createElement(
|
|
725
566
|
View3,
|
|
726
567
|
{
|
|
727
568
|
style: {
|
|
@@ -732,7 +573,7 @@ var A4KitchenReport = ({
|
|
|
732
573
|
fontWeight: "semibold"
|
|
733
574
|
}
|
|
734
575
|
},
|
|
735
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ React4.createElement(
|
|
736
577
|
View3,
|
|
737
578
|
{
|
|
738
579
|
style: {
|
|
@@ -741,9 +582,9 @@ var A4KitchenReport = ({
|
|
|
741
582
|
width: "20%"
|
|
742
583
|
}
|
|
743
584
|
},
|
|
744
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ React4.createElement(Text_default, null, "Sr no")
|
|
745
586
|
),
|
|
746
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ React4.createElement(
|
|
747
588
|
View3,
|
|
748
589
|
{
|
|
749
590
|
style: {
|
|
@@ -752,9 +593,9 @@ var A4KitchenReport = ({
|
|
|
752
593
|
width: "60%"
|
|
753
594
|
}
|
|
754
595
|
},
|
|
755
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ React4.createElement(Text_default, null, "Prasad Name")
|
|
756
597
|
),
|
|
757
|
-
/* @__PURE__ */
|
|
598
|
+
/* @__PURE__ */ React4.createElement(
|
|
758
599
|
View3,
|
|
759
600
|
{
|
|
760
601
|
style: {
|
|
@@ -763,11 +604,11 @@ var A4KitchenReport = ({
|
|
|
763
604
|
width: "20%"
|
|
764
605
|
}
|
|
765
606
|
},
|
|
766
|
-
/* @__PURE__ */
|
|
607
|
+
/* @__PURE__ */ React4.createElement(Text_default, null, "Quantity")
|
|
767
608
|
)
|
|
768
609
|
),
|
|
769
610
|
data.map((item, index) => {
|
|
770
|
-
return /* @__PURE__ */
|
|
611
|
+
return /* @__PURE__ */ React4.createElement(
|
|
771
612
|
View3,
|
|
772
613
|
{
|
|
773
614
|
style: {
|
|
@@ -778,7 +619,7 @@ var A4KitchenReport = ({
|
|
|
778
619
|
fontSize: 10
|
|
779
620
|
}
|
|
780
621
|
},
|
|
781
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ React4.createElement(
|
|
782
623
|
View3,
|
|
783
624
|
{
|
|
784
625
|
style: {
|
|
@@ -787,9 +628,9 @@ var A4KitchenReport = ({
|
|
|
787
628
|
width: "20%"
|
|
788
629
|
}
|
|
789
630
|
},
|
|
790
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ React4.createElement(Text_default, null, index + 1)
|
|
791
632
|
),
|
|
792
|
-
/* @__PURE__ */
|
|
633
|
+
/* @__PURE__ */ React4.createElement(
|
|
793
634
|
View3,
|
|
794
635
|
{
|
|
795
636
|
style: {
|
|
@@ -798,9 +639,9 @@ var A4KitchenReport = ({
|
|
|
798
639
|
width: "60%"
|
|
799
640
|
}
|
|
800
641
|
},
|
|
801
|
-
/* @__PURE__ */
|
|
642
|
+
/* @__PURE__ */ React4.createElement(Text_default, null, item.name)
|
|
802
643
|
),
|
|
803
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ React4.createElement(
|
|
804
645
|
View3,
|
|
805
646
|
{
|
|
806
647
|
style: {
|
|
@@ -809,17 +650,27 @@ var A4KitchenReport = ({
|
|
|
809
650
|
width: "20%"
|
|
810
651
|
}
|
|
811
652
|
},
|
|
812
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ React4.createElement(Text_default, null, item.quantity)
|
|
813
654
|
)
|
|
814
655
|
);
|
|
815
656
|
})
|
|
657
|
+
) : /* @__PURE__ */ React4.createElement(
|
|
658
|
+
Text_default,
|
|
659
|
+
{
|
|
660
|
+
style: {
|
|
661
|
+
fontSize: 18,
|
|
662
|
+
textAlign: "center",
|
|
663
|
+
marginTop: 100
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"No data available for the selected date range"
|
|
816
667
|
))));
|
|
817
668
|
};
|
|
818
669
|
var A4KitchenReport_default = A4KitchenReport;
|
|
819
670
|
|
|
820
671
|
// src/sizes/a4/A4TransactionReport.tsx
|
|
821
|
-
import { Document as Document5, Image as
|
|
822
|
-
import
|
|
672
|
+
import { Document as Document5, Image as Image4, Page as Page5, View as View4 } from "@react-pdf/renderer";
|
|
673
|
+
import React5 from "react";
|
|
823
674
|
var A4TransactionReport = ({
|
|
824
675
|
date,
|
|
825
676
|
templeName,
|
|
@@ -837,8 +688,8 @@ var A4TransactionReport = ({
|
|
|
837
688
|
}
|
|
838
689
|
return acc + item.creditedAmount;
|
|
839
690
|
}, 0);
|
|
840
|
-
return /* @__PURE__ */
|
|
841
|
-
|
|
691
|
+
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(Document5, null, /* @__PURE__ */ React5.createElement(Page5, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React5.createElement(
|
|
692
|
+
Image4,
|
|
842
693
|
{
|
|
843
694
|
fixed: true,
|
|
844
695
|
style: {
|
|
@@ -848,15 +699,15 @@ var A4TransactionReport = ({
|
|
|
848
699
|
},
|
|
849
700
|
src: bmpLogo
|
|
850
701
|
}
|
|
851
|
-
), /* @__PURE__ */
|
|
702
|
+
), /* @__PURE__ */ React5.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React5.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Transactions Report"), /* @__PURE__ */ React5.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), data.length > 0 ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(Text_default, { style: { fontSize: 10, marginTop: 10 } }, "Total Bookings: ", totalAmount.toLocaleString("en-IN", {
|
|
852
703
|
maximumFractionDigits: 2,
|
|
853
704
|
style: "currency",
|
|
854
705
|
currency: "INR"
|
|
855
|
-
})), /* @__PURE__ */
|
|
706
|
+
})), /* @__PURE__ */ React5.createElement(Text_default, { style: { fontSize: 10 } }, "Total Credited Amount: ", totalCreditedAmount.toLocaleString("en-IN", {
|
|
856
707
|
maximumFractionDigits: 2,
|
|
857
708
|
style: "currency",
|
|
858
709
|
currency: "INR"
|
|
859
|
-
})), /* @__PURE__ */
|
|
710
|
+
})), /* @__PURE__ */ React5.createElement(
|
|
860
711
|
View4,
|
|
861
712
|
{
|
|
862
713
|
style: {
|
|
@@ -865,7 +716,7 @@ var A4TransactionReport = ({
|
|
|
865
716
|
marginTop: 20
|
|
866
717
|
}
|
|
867
718
|
},
|
|
868
|
-
/* @__PURE__ */
|
|
719
|
+
/* @__PURE__ */ React5.createElement(
|
|
869
720
|
View4,
|
|
870
721
|
{
|
|
871
722
|
style: {
|
|
@@ -876,7 +727,7 @@ var A4TransactionReport = ({
|
|
|
876
727
|
fontSize: 10
|
|
877
728
|
}
|
|
878
729
|
},
|
|
879
|
-
/* @__PURE__ */
|
|
730
|
+
/* @__PURE__ */ React5.createElement(
|
|
880
731
|
View4,
|
|
881
732
|
{
|
|
882
733
|
style: {
|
|
@@ -885,9 +736,9 @@ var A4TransactionReport = ({
|
|
|
885
736
|
width: "8%"
|
|
886
737
|
}
|
|
887
738
|
},
|
|
888
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Sr no")
|
|
889
740
|
),
|
|
890
|
-
/* @__PURE__ */
|
|
741
|
+
/* @__PURE__ */ React5.createElement(
|
|
891
742
|
View4,
|
|
892
743
|
{
|
|
893
744
|
style: {
|
|
@@ -896,9 +747,9 @@ var A4TransactionReport = ({
|
|
|
896
747
|
width: "23%"
|
|
897
748
|
}
|
|
898
749
|
},
|
|
899
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Date")
|
|
900
751
|
),
|
|
901
|
-
/* @__PURE__ */
|
|
752
|
+
/* @__PURE__ */ React5.createElement(
|
|
902
753
|
View4,
|
|
903
754
|
{
|
|
904
755
|
style: {
|
|
@@ -907,9 +758,9 @@ var A4TransactionReport = ({
|
|
|
907
758
|
width: "19%"
|
|
908
759
|
}
|
|
909
760
|
},
|
|
910
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Invoice")
|
|
911
762
|
),
|
|
912
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ React5.createElement(
|
|
913
764
|
View4,
|
|
914
765
|
{
|
|
915
766
|
style: {
|
|
@@ -918,9 +769,9 @@ var A4TransactionReport = ({
|
|
|
918
769
|
width: "15%"
|
|
919
770
|
}
|
|
920
771
|
},
|
|
921
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Booking Amt")
|
|
922
773
|
),
|
|
923
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ React5.createElement(
|
|
924
775
|
View4,
|
|
925
776
|
{
|
|
926
777
|
style: {
|
|
@@ -929,9 +780,9 @@ var A4TransactionReport = ({
|
|
|
929
780
|
borderRight: "1px solid black"
|
|
930
781
|
}
|
|
931
782
|
},
|
|
932
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Credited Amt")
|
|
933
784
|
),
|
|
934
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ React5.createElement(
|
|
935
786
|
View4,
|
|
936
787
|
{
|
|
937
788
|
style: {
|
|
@@ -939,11 +790,11 @@ var A4TransactionReport = ({
|
|
|
939
790
|
width: "20%"
|
|
940
791
|
}
|
|
941
792
|
},
|
|
942
|
-
/* @__PURE__ */
|
|
793
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Transaction ID")
|
|
943
794
|
)
|
|
944
795
|
),
|
|
945
796
|
data.map((item, index) => {
|
|
946
|
-
return /* @__PURE__ */
|
|
797
|
+
return /* @__PURE__ */ React5.createElement(
|
|
947
798
|
View4,
|
|
948
799
|
{
|
|
949
800
|
style: {
|
|
@@ -954,7 +805,7 @@ var A4TransactionReport = ({
|
|
|
954
805
|
fontSize: 10
|
|
955
806
|
}
|
|
956
807
|
},
|
|
957
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ React5.createElement(
|
|
958
809
|
View4,
|
|
959
810
|
{
|
|
960
811
|
style: {
|
|
@@ -963,9 +814,9 @@ var A4TransactionReport = ({
|
|
|
963
814
|
width: "8%"
|
|
964
815
|
}
|
|
965
816
|
},
|
|
966
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, index + 1)
|
|
967
818
|
),
|
|
968
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ React5.createElement(
|
|
969
820
|
View4,
|
|
970
821
|
{
|
|
971
822
|
style: {
|
|
@@ -974,9 +825,9 @@ var A4TransactionReport = ({
|
|
|
974
825
|
width: "23%"
|
|
975
826
|
}
|
|
976
827
|
},
|
|
977
|
-
/* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.date, " ", item.time)
|
|
978
829
|
),
|
|
979
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ React5.createElement(
|
|
980
831
|
View4,
|
|
981
832
|
{
|
|
982
833
|
style: {
|
|
@@ -985,9 +836,9 @@ var A4TransactionReport = ({
|
|
|
985
836
|
width: "19%"
|
|
986
837
|
}
|
|
987
838
|
},
|
|
988
|
-
/* @__PURE__ */
|
|
839
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.invoiceNumber)
|
|
989
840
|
),
|
|
990
|
-
item.status == "cancelled" ? /* @__PURE__ */
|
|
841
|
+
item.status == "cancelled" ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
|
|
991
842
|
View4,
|
|
992
843
|
{
|
|
993
844
|
style: {
|
|
@@ -995,7 +846,7 @@ var A4TransactionReport = ({
|
|
|
995
846
|
width: "50%"
|
|
996
847
|
}
|
|
997
848
|
},
|
|
998
|
-
/* @__PURE__ */
|
|
849
|
+
/* @__PURE__ */ React5.createElement(
|
|
999
850
|
Text_default,
|
|
1000
851
|
{
|
|
1001
852
|
style: {
|
|
@@ -1004,7 +855,7 @@ var A4TransactionReport = ({
|
|
|
1004
855
|
},
|
|
1005
856
|
"CANCELLED"
|
|
1006
857
|
)
|
|
1007
|
-
)) : /* @__PURE__ */
|
|
858
|
+
)) : /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
|
|
1008
859
|
View4,
|
|
1009
860
|
{
|
|
1010
861
|
style: {
|
|
@@ -1013,12 +864,12 @@ var A4TransactionReport = ({
|
|
|
1013
864
|
width: "15%"
|
|
1014
865
|
}
|
|
1015
866
|
},
|
|
1016
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.bookingAmount.toLocaleString("en-IN", {
|
|
1017
868
|
maximumFractionDigits: 2,
|
|
1018
869
|
style: "currency",
|
|
1019
870
|
currency: "INR"
|
|
1020
871
|
}))
|
|
1021
|
-
), /* @__PURE__ */
|
|
872
|
+
), /* @__PURE__ */ React5.createElement(
|
|
1022
873
|
View4,
|
|
1023
874
|
{
|
|
1024
875
|
style: {
|
|
@@ -1027,12 +878,12 @@ var A4TransactionReport = ({
|
|
|
1027
878
|
borderRight: "1px solid black"
|
|
1028
879
|
}
|
|
1029
880
|
},
|
|
1030
|
-
/* @__PURE__ */
|
|
881
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.creditedAmount.toLocaleString("en-IN", {
|
|
1031
882
|
maximumFractionDigits: 2,
|
|
1032
883
|
style: "currency",
|
|
1033
884
|
currency: "INR"
|
|
1034
885
|
}))
|
|
1035
|
-
), /* @__PURE__ */
|
|
886
|
+
), /* @__PURE__ */ React5.createElement(
|
|
1036
887
|
View4,
|
|
1037
888
|
{
|
|
1038
889
|
style: {
|
|
@@ -1040,17 +891,27 @@ var A4TransactionReport = ({
|
|
|
1040
891
|
width: "20%"
|
|
1041
892
|
}
|
|
1042
893
|
},
|
|
1043
|
-
/* @__PURE__ */
|
|
894
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.transactionId)
|
|
1044
895
|
))
|
|
1045
896
|
);
|
|
1046
897
|
})
|
|
898
|
+
)) : /* @__PURE__ */ React5.createElement(
|
|
899
|
+
Text_default,
|
|
900
|
+
{
|
|
901
|
+
style: {
|
|
902
|
+
fontSize: 18,
|
|
903
|
+
textAlign: "center",
|
|
904
|
+
marginTop: 100
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"No data available for the selected date range"
|
|
1047
908
|
))));
|
|
1048
909
|
};
|
|
1049
910
|
var A4TransactionReport_default = A4TransactionReport;
|
|
1050
911
|
|
|
1051
912
|
// src/sizes/a4/A4PrasadDelivery.tsx
|
|
1052
|
-
import { Document as Document6, Image as
|
|
1053
|
-
import
|
|
913
|
+
import { Document as Document6, Image as Image5, Page as Page6, View as View5 } from "@react-pdf/renderer";
|
|
914
|
+
import React6 from "react";
|
|
1054
915
|
var A4PrasadDelivery = ({
|
|
1055
916
|
date,
|
|
1056
917
|
templeName,
|
|
@@ -1070,8 +931,8 @@ var A4PrasadDelivery = ({
|
|
|
1070
931
|
address
|
|
1071
932
|
};
|
|
1072
933
|
});
|
|
1073
|
-
return /* @__PURE__ */
|
|
1074
|
-
|
|
934
|
+
return /* @__PURE__ */ React6.createElement(Document6, null, /* @__PURE__ */ React6.createElement(Page6, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React6.createElement(
|
|
935
|
+
Image5,
|
|
1075
936
|
{
|
|
1076
937
|
fixed: true,
|
|
1077
938
|
style: {
|
|
@@ -1081,7 +942,7 @@ var A4PrasadDelivery = ({
|
|
|
1081
942
|
},
|
|
1082
943
|
src: bmpLogo
|
|
1083
944
|
}
|
|
1084
|
-
), /* @__PURE__ */
|
|
945
|
+
), /* @__PURE__ */ React6.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React6.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Delivery Address"), /* @__PURE__ */ React6.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), data.length > 0 ? /* @__PURE__ */ React6.createElement(
|
|
1085
946
|
View5,
|
|
1086
947
|
{
|
|
1087
948
|
style: {
|
|
@@ -1090,7 +951,7 @@ var A4PrasadDelivery = ({
|
|
|
1090
951
|
marginTop: 20
|
|
1091
952
|
}
|
|
1092
953
|
},
|
|
1093
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ React6.createElement(
|
|
1094
955
|
View5,
|
|
1095
956
|
{
|
|
1096
957
|
style: {
|
|
@@ -1101,7 +962,7 @@ var A4PrasadDelivery = ({
|
|
|
1101
962
|
fontSize: 10
|
|
1102
963
|
}
|
|
1103
964
|
},
|
|
1104
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ React6.createElement(
|
|
1105
966
|
View5,
|
|
1106
967
|
{
|
|
1107
968
|
style: {
|
|
@@ -1110,9 +971,9 @@ var A4PrasadDelivery = ({
|
|
|
1110
971
|
width: "10%"
|
|
1111
972
|
}
|
|
1112
973
|
},
|
|
1113
|
-
/* @__PURE__ */
|
|
974
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Date")
|
|
1114
975
|
),
|
|
1115
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ React6.createElement(
|
|
1116
977
|
View5,
|
|
1117
978
|
{
|
|
1118
979
|
style: {
|
|
@@ -1121,9 +982,9 @@ var A4PrasadDelivery = ({
|
|
|
1121
982
|
width: "13%"
|
|
1122
983
|
}
|
|
1123
984
|
},
|
|
1124
|
-
/* @__PURE__ */
|
|
985
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Invoice")
|
|
1125
986
|
),
|
|
1126
|
-
/* @__PURE__ */
|
|
987
|
+
/* @__PURE__ */ React6.createElement(
|
|
1127
988
|
View5,
|
|
1128
989
|
{
|
|
1129
990
|
style: {
|
|
@@ -1132,9 +993,9 @@ var A4PrasadDelivery = ({
|
|
|
1132
993
|
width: "18%"
|
|
1133
994
|
}
|
|
1134
995
|
},
|
|
1135
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Devotee Name")
|
|
1136
997
|
),
|
|
1137
|
-
/* @__PURE__ */
|
|
998
|
+
/* @__PURE__ */ React6.createElement(
|
|
1138
999
|
View5,
|
|
1139
1000
|
{
|
|
1140
1001
|
style: {
|
|
@@ -1143,9 +1004,9 @@ var A4PrasadDelivery = ({
|
|
|
1143
1004
|
width: "25%"
|
|
1144
1005
|
}
|
|
1145
1006
|
},
|
|
1146
|
-
/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Address")
|
|
1147
1008
|
),
|
|
1148
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ React6.createElement(
|
|
1149
1010
|
View5,
|
|
1150
1011
|
{
|
|
1151
1012
|
style: {
|
|
@@ -1154,9 +1015,9 @@ var A4PrasadDelivery = ({
|
|
|
1154
1015
|
width: "20%"
|
|
1155
1016
|
}
|
|
1156
1017
|
},
|
|
1157
|
-
/* @__PURE__ */
|
|
1018
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Puja Name")
|
|
1158
1019
|
),
|
|
1159
|
-
/* @__PURE__ */
|
|
1020
|
+
/* @__PURE__ */ React6.createElement(
|
|
1160
1021
|
View5,
|
|
1161
1022
|
{
|
|
1162
1023
|
style: {
|
|
@@ -1164,11 +1025,11 @@ var A4PrasadDelivery = ({
|
|
|
1164
1025
|
width: "15%"
|
|
1165
1026
|
}
|
|
1166
1027
|
},
|
|
1167
|
-
/* @__PURE__ */
|
|
1028
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Amount")
|
|
1168
1029
|
)
|
|
1169
1030
|
),
|
|
1170
1031
|
data.map((item, index) => {
|
|
1171
|
-
return /* @__PURE__ */
|
|
1032
|
+
return /* @__PURE__ */ React6.createElement(
|
|
1172
1033
|
View5,
|
|
1173
1034
|
{
|
|
1174
1035
|
style: {
|
|
@@ -1179,7 +1040,7 @@ var A4PrasadDelivery = ({
|
|
|
1179
1040
|
fontSize: 10
|
|
1180
1041
|
}
|
|
1181
1042
|
},
|
|
1182
|
-
/* @__PURE__ */
|
|
1043
|
+
/* @__PURE__ */ React6.createElement(
|
|
1183
1044
|
View5,
|
|
1184
1045
|
{
|
|
1185
1046
|
style: {
|
|
@@ -1188,13 +1049,13 @@ var A4PrasadDelivery = ({
|
|
|
1188
1049
|
width: "10%"
|
|
1189
1050
|
}
|
|
1190
1051
|
},
|
|
1191
|
-
/* @__PURE__ */
|
|
1052
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, new Date(item.date).toLocaleDateString("en-GB", {
|
|
1192
1053
|
day: "2-digit",
|
|
1193
1054
|
month: "2-digit",
|
|
1194
1055
|
year: "2-digit"
|
|
1195
1056
|
}))
|
|
1196
1057
|
),
|
|
1197
|
-
/* @__PURE__ */
|
|
1058
|
+
/* @__PURE__ */ React6.createElement(
|
|
1198
1059
|
View5,
|
|
1199
1060
|
{
|
|
1200
1061
|
style: {
|
|
@@ -1203,9 +1064,9 @@ var A4PrasadDelivery = ({
|
|
|
1203
1064
|
width: "13%"
|
|
1204
1065
|
}
|
|
1205
1066
|
},
|
|
1206
|
-
/* @__PURE__ */
|
|
1067
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.invoiceNumber)
|
|
1207
1068
|
),
|
|
1208
|
-
/* @__PURE__ */
|
|
1069
|
+
/* @__PURE__ */ React6.createElement(
|
|
1209
1070
|
View5,
|
|
1210
1071
|
{
|
|
1211
1072
|
style: {
|
|
@@ -1214,9 +1075,9 @@ var A4PrasadDelivery = ({
|
|
|
1214
1075
|
width: "18%"
|
|
1215
1076
|
}
|
|
1216
1077
|
},
|
|
1217
|
-
/* @__PURE__ */
|
|
1078
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.devoteeName)
|
|
1218
1079
|
),
|
|
1219
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ React6.createElement(
|
|
1220
1081
|
View5,
|
|
1221
1082
|
{
|
|
1222
1083
|
style: {
|
|
@@ -1225,9 +1086,9 @@ var A4PrasadDelivery = ({
|
|
|
1225
1086
|
width: "25%"
|
|
1226
1087
|
}
|
|
1227
1088
|
},
|
|
1228
|
-
/* @__PURE__ */
|
|
1089
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.address)
|
|
1229
1090
|
),
|
|
1230
|
-
/* @__PURE__ */
|
|
1091
|
+
/* @__PURE__ */ React6.createElement(
|
|
1231
1092
|
View5,
|
|
1232
1093
|
{
|
|
1233
1094
|
style: {
|
|
@@ -1236,9 +1097,9 @@ var A4PrasadDelivery = ({
|
|
|
1236
1097
|
width: "20%"
|
|
1237
1098
|
}
|
|
1238
1099
|
},
|
|
1239
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.pujaName)
|
|
1240
1101
|
),
|
|
1241
|
-
/* @__PURE__ */
|
|
1102
|
+
/* @__PURE__ */ React6.createElement(
|
|
1242
1103
|
View5,
|
|
1243
1104
|
{
|
|
1244
1105
|
style: {
|
|
@@ -1246,7 +1107,7 @@ var A4PrasadDelivery = ({
|
|
|
1246
1107
|
width: "15%"
|
|
1247
1108
|
}
|
|
1248
1109
|
},
|
|
1249
|
-
/* @__PURE__ */
|
|
1110
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.amount.toLocaleString("en-IN", {
|
|
1250
1111
|
maximumFractionDigits: 2,
|
|
1251
1112
|
style: "currency",
|
|
1252
1113
|
currency: "INR"
|
|
@@ -1254,13 +1115,23 @@ var A4PrasadDelivery = ({
|
|
|
1254
1115
|
)
|
|
1255
1116
|
);
|
|
1256
1117
|
})
|
|
1118
|
+
) : /* @__PURE__ */ React6.createElement(
|
|
1119
|
+
Text_default,
|
|
1120
|
+
{
|
|
1121
|
+
style: {
|
|
1122
|
+
fontSize: 18,
|
|
1123
|
+
textAlign: "center",
|
|
1124
|
+
marginTop: 100
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
"No data available for the selected date range"
|
|
1257
1128
|
)));
|
|
1258
1129
|
};
|
|
1259
1130
|
var A4PrasadDelivery_default = A4PrasadDelivery;
|
|
1260
1131
|
|
|
1261
1132
|
// src/sizes/a4/A4PrasadReport.tsx
|
|
1262
|
-
import { Document as Document7, Image as
|
|
1263
|
-
import
|
|
1133
|
+
import { Document as Document7, Image as Image6, Page as Page7, View as View6 } from "@react-pdf/renderer";
|
|
1134
|
+
import React7 from "react";
|
|
1264
1135
|
var A4PrasadReport = ({
|
|
1265
1136
|
date,
|
|
1266
1137
|
templeName,
|
|
@@ -1270,8 +1141,8 @@ var A4PrasadReport = ({
|
|
|
1270
1141
|
const sortedPrasadItems = data.sort((a, b) => {
|
|
1271
1142
|
return a.invoiceNumber.localeCompare(b.invoiceNumber);
|
|
1272
1143
|
});
|
|
1273
|
-
return /* @__PURE__ */
|
|
1274
|
-
|
|
1144
|
+
return /* @__PURE__ */ React7.createElement(Document7, null, /* @__PURE__ */ React7.createElement(Page7, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React7.createElement(
|
|
1145
|
+
Image6,
|
|
1275
1146
|
{
|
|
1276
1147
|
fixed: true,
|
|
1277
1148
|
style: {
|
|
@@ -1281,7 +1152,7 @@ var A4PrasadReport = ({
|
|
|
1281
1152
|
},
|
|
1282
1153
|
src: bmpLogo
|
|
1283
1154
|
}
|
|
1284
|
-
), /* @__PURE__ */
|
|
1155
|
+
), /* @__PURE__ */ React7.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */ React7.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, reportTimingsObj[reportTiming], " Report") : null, /* @__PURE__ */ React7.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Report"), /* @__PURE__ */ React7.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), data.length > 0 ? /* @__PURE__ */ React7.createElement(
|
|
1285
1156
|
View6,
|
|
1286
1157
|
{
|
|
1287
1158
|
style: {
|
|
@@ -1290,7 +1161,7 @@ var A4PrasadReport = ({
|
|
|
1290
1161
|
marginTop: 20
|
|
1291
1162
|
}
|
|
1292
1163
|
},
|
|
1293
|
-
/* @__PURE__ */
|
|
1164
|
+
/* @__PURE__ */ React7.createElement(
|
|
1294
1165
|
View6,
|
|
1295
1166
|
{
|
|
1296
1167
|
style: {
|
|
@@ -1301,7 +1172,7 @@ var A4PrasadReport = ({
|
|
|
1301
1172
|
fontSize: 10
|
|
1302
1173
|
}
|
|
1303
1174
|
},
|
|
1304
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ React7.createElement(
|
|
1305
1176
|
View6,
|
|
1306
1177
|
{
|
|
1307
1178
|
style: {
|
|
@@ -1310,9 +1181,9 @@ var A4PrasadReport = ({
|
|
|
1310
1181
|
width: "10%"
|
|
1311
1182
|
}
|
|
1312
1183
|
},
|
|
1313
|
-
/* @__PURE__ */
|
|
1184
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Sr no")
|
|
1314
1185
|
),
|
|
1315
|
-
/* @__PURE__ */
|
|
1186
|
+
/* @__PURE__ */ React7.createElement(
|
|
1316
1187
|
View6,
|
|
1317
1188
|
{
|
|
1318
1189
|
style: {
|
|
@@ -1321,9 +1192,9 @@ var A4PrasadReport = ({
|
|
|
1321
1192
|
width: "20%"
|
|
1322
1193
|
}
|
|
1323
1194
|
},
|
|
1324
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Invoice Number")
|
|
1325
1196
|
),
|
|
1326
|
-
/* @__PURE__ */
|
|
1197
|
+
/* @__PURE__ */ React7.createElement(
|
|
1327
1198
|
View6,
|
|
1328
1199
|
{
|
|
1329
1200
|
style: {
|
|
@@ -1332,9 +1203,9 @@ var A4PrasadReport = ({
|
|
|
1332
1203
|
width: "23%"
|
|
1333
1204
|
}
|
|
1334
1205
|
},
|
|
1335
|
-
/* @__PURE__ */
|
|
1206
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Devotee Name")
|
|
1336
1207
|
),
|
|
1337
|
-
/* @__PURE__ */
|
|
1208
|
+
/* @__PURE__ */ React7.createElement(
|
|
1338
1209
|
View6,
|
|
1339
1210
|
{
|
|
1340
1211
|
style: {
|
|
@@ -1343,9 +1214,9 @@ var A4PrasadReport = ({
|
|
|
1343
1214
|
width: "30%"
|
|
1344
1215
|
}
|
|
1345
1216
|
},
|
|
1346
|
-
/* @__PURE__ */
|
|
1217
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Prasad Name")
|
|
1347
1218
|
),
|
|
1348
|
-
/* @__PURE__ */
|
|
1219
|
+
/* @__PURE__ */ React7.createElement(
|
|
1349
1220
|
View6,
|
|
1350
1221
|
{
|
|
1351
1222
|
style: {
|
|
@@ -1354,9 +1225,9 @@ var A4PrasadReport = ({
|
|
|
1354
1225
|
borderRight: "1px solid black"
|
|
1355
1226
|
}
|
|
1356
1227
|
},
|
|
1357
|
-
/* @__PURE__ */
|
|
1228
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Qty")
|
|
1358
1229
|
),
|
|
1359
|
-
/* @__PURE__ */
|
|
1230
|
+
/* @__PURE__ */ React7.createElement(
|
|
1360
1231
|
View6,
|
|
1361
1232
|
{
|
|
1362
1233
|
style: {
|
|
@@ -1364,11 +1235,11 @@ var A4PrasadReport = ({
|
|
|
1364
1235
|
width: "7%"
|
|
1365
1236
|
}
|
|
1366
1237
|
},
|
|
1367
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Mode")
|
|
1368
1239
|
)
|
|
1369
1240
|
),
|
|
1370
1241
|
data.map((item, index) => {
|
|
1371
|
-
return /* @__PURE__ */
|
|
1242
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1372
1243
|
View6,
|
|
1373
1244
|
{
|
|
1374
1245
|
style: {
|
|
@@ -1379,7 +1250,7 @@ var A4PrasadReport = ({
|
|
|
1379
1250
|
fontSize: 10
|
|
1380
1251
|
}
|
|
1381
1252
|
},
|
|
1382
|
-
/* @__PURE__ */
|
|
1253
|
+
/* @__PURE__ */ React7.createElement(
|
|
1383
1254
|
View6,
|
|
1384
1255
|
{
|
|
1385
1256
|
style: {
|
|
@@ -1388,9 +1259,9 @@ var A4PrasadReport = ({
|
|
|
1388
1259
|
width: "10%"
|
|
1389
1260
|
}
|
|
1390
1261
|
},
|
|
1391
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, index + 1)
|
|
1392
1263
|
),
|
|
1393
|
-
/* @__PURE__ */
|
|
1264
|
+
/* @__PURE__ */ React7.createElement(
|
|
1394
1265
|
View6,
|
|
1395
1266
|
{
|
|
1396
1267
|
style: {
|
|
@@ -1399,9 +1270,9 @@ var A4PrasadReport = ({
|
|
|
1399
1270
|
width: "20%"
|
|
1400
1271
|
}
|
|
1401
1272
|
},
|
|
1402
|
-
/* @__PURE__ */
|
|
1273
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.invoiceNumber)
|
|
1403
1274
|
),
|
|
1404
|
-
/* @__PURE__ */
|
|
1275
|
+
/* @__PURE__ */ React7.createElement(
|
|
1405
1276
|
View6,
|
|
1406
1277
|
{
|
|
1407
1278
|
style: {
|
|
@@ -1412,9 +1283,9 @@ var A4PrasadReport = ({
|
|
|
1412
1283
|
flexWrap: "wrap"
|
|
1413
1284
|
}
|
|
1414
1285
|
},
|
|
1415
|
-
/* @__PURE__ */
|
|
1286
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.devoteeName)
|
|
1416
1287
|
),
|
|
1417
|
-
/* @__PURE__ */
|
|
1288
|
+
/* @__PURE__ */ React7.createElement(
|
|
1418
1289
|
View6,
|
|
1419
1290
|
{
|
|
1420
1291
|
style: {
|
|
@@ -1423,9 +1294,9 @@ var A4PrasadReport = ({
|
|
|
1423
1294
|
width: "30%"
|
|
1424
1295
|
}
|
|
1425
1296
|
},
|
|
1426
|
-
/* @__PURE__ */
|
|
1297
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.prasadName)
|
|
1427
1298
|
),
|
|
1428
|
-
/* @__PURE__ */
|
|
1299
|
+
/* @__PURE__ */ React7.createElement(
|
|
1429
1300
|
View6,
|
|
1430
1301
|
{
|
|
1431
1302
|
style: {
|
|
@@ -1434,9 +1305,9 @@ var A4PrasadReport = ({
|
|
|
1434
1305
|
borderRight: "1px solid black"
|
|
1435
1306
|
}
|
|
1436
1307
|
},
|
|
1437
|
-
/* @__PURE__ */
|
|
1308
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.quantity)
|
|
1438
1309
|
),
|
|
1439
|
-
/* @__PURE__ */
|
|
1310
|
+
/* @__PURE__ */ React7.createElement(
|
|
1440
1311
|
View6,
|
|
1441
1312
|
{
|
|
1442
1313
|
style: {
|
|
@@ -1444,17 +1315,27 @@ var A4PrasadReport = ({
|
|
|
1444
1315
|
width: "7%"
|
|
1445
1316
|
}
|
|
1446
1317
|
},
|
|
1447
|
-
/* @__PURE__ */
|
|
1318
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.collectionMode)
|
|
1448
1319
|
)
|
|
1449
1320
|
);
|
|
1450
1321
|
})
|
|
1322
|
+
) : /* @__PURE__ */ React7.createElement(
|
|
1323
|
+
Text_default,
|
|
1324
|
+
{
|
|
1325
|
+
style: {
|
|
1326
|
+
fontSize: 18,
|
|
1327
|
+
textAlign: "center",
|
|
1328
|
+
marginTop: 100
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
"No data available for the selected date range"
|
|
1451
1332
|
)));
|
|
1452
1333
|
};
|
|
1453
1334
|
var A4PrasadReport_default = A4PrasadReport;
|
|
1454
1335
|
|
|
1455
1336
|
// src/sizes/a4/A4PujaList.tsx
|
|
1456
|
-
import { Document as Document8, Image as
|
|
1457
|
-
import
|
|
1337
|
+
import { Document as Document8, Image as Image7, Page as Page8, View as View7 } from "@react-pdf/renderer";
|
|
1338
|
+
import React8 from "react";
|
|
1458
1339
|
var A4PujaList = ({
|
|
1459
1340
|
date,
|
|
1460
1341
|
templeName,
|
|
@@ -1466,8 +1347,22 @@ var A4PujaList = ({
|
|
|
1466
1347
|
let pujasRequiresCoupon = pujas.some(
|
|
1467
1348
|
(puja) => puja.bookings.some((booking) => booking.requires_coupon)
|
|
1468
1349
|
);
|
|
1469
|
-
|
|
1470
|
-
|
|
1350
|
+
if (!pujas || pujas.length === 0) {
|
|
1351
|
+
return /* @__PURE__ */ React8.createElement(Document8, null, /* @__PURE__ */ React8.createElement(Page8, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React8.createElement(
|
|
1352
|
+
Image7,
|
|
1353
|
+
{
|
|
1354
|
+
fixed: true,
|
|
1355
|
+
style: {
|
|
1356
|
+
height: 15,
|
|
1357
|
+
width: 75,
|
|
1358
|
+
marginBottom: 10
|
|
1359
|
+
},
|
|
1360
|
+
src: bmpLogo
|
|
1361
|
+
}
|
|
1362
|
+
), /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, reportTimingsObj[reportTiming], " Report") : null, /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold", marginTop: 10 } }, "Puja List"), /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 12, marginTop: 100, textAlign: "center" } }, "No data available for the selected date range")));
|
|
1363
|
+
}
|
|
1364
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(Document8, null, /* @__PURE__ */ React8.createElement(Page8, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React8.createElement(
|
|
1365
|
+
Image7,
|
|
1471
1366
|
{
|
|
1472
1367
|
fixed: true,
|
|
1473
1368
|
style: {
|
|
@@ -1477,9 +1372,9 @@ var A4PujaList = ({
|
|
|
1477
1372
|
},
|
|
1478
1373
|
src: bmpLogo
|
|
1479
1374
|
}
|
|
1480
|
-
), /* @__PURE__ */
|
|
1375
|
+
), /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, reportTimingsObj[reportTiming], " Report") : null, pujas.some(
|
|
1481
1376
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
1482
|
-
) && /* @__PURE__ */
|
|
1377
|
+
) && /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold", marginTop: 10 } }, "Early Reminders for Upcoming Pujas"), /* @__PURE__ */ React8.createElement(View7, { wrap: false, style: { marginTop: 10 } }, /* @__PURE__ */ React8.createElement(
|
|
1483
1378
|
View7,
|
|
1484
1379
|
{
|
|
1485
1380
|
style: {
|
|
@@ -1488,7 +1383,7 @@ var A4PujaList = ({
|
|
|
1488
1383
|
border: "1px solid black"
|
|
1489
1384
|
}
|
|
1490
1385
|
},
|
|
1491
|
-
/* @__PURE__ */
|
|
1386
|
+
/* @__PURE__ */ React8.createElement(
|
|
1492
1387
|
View7,
|
|
1493
1388
|
{
|
|
1494
1389
|
style: {
|
|
@@ -1499,9 +1394,9 @@ var A4PujaList = ({
|
|
|
1499
1394
|
width: "10%"
|
|
1500
1395
|
}
|
|
1501
1396
|
},
|
|
1502
|
-
/* @__PURE__ */
|
|
1397
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Sr No")
|
|
1503
1398
|
),
|
|
1504
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ React8.createElement(
|
|
1505
1400
|
View7,
|
|
1506
1401
|
{
|
|
1507
1402
|
style: {
|
|
@@ -1512,9 +1407,9 @@ var A4PujaList = ({
|
|
|
1512
1407
|
width: "60%"
|
|
1513
1408
|
}
|
|
1514
1409
|
},
|
|
1515
|
-
/* @__PURE__ */
|
|
1410
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Puja Name")
|
|
1516
1411
|
),
|
|
1517
|
-
/* @__PURE__ */
|
|
1412
|
+
/* @__PURE__ */ React8.createElement(
|
|
1518
1413
|
View7,
|
|
1519
1414
|
{
|
|
1520
1415
|
style: {
|
|
@@ -1525,9 +1420,9 @@ var A4PujaList = ({
|
|
|
1525
1420
|
width: "10%"
|
|
1526
1421
|
}
|
|
1527
1422
|
},
|
|
1528
|
-
/* @__PURE__ */
|
|
1423
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Qty")
|
|
1529
1424
|
),
|
|
1530
|
-
/* @__PURE__ */
|
|
1425
|
+
/* @__PURE__ */ React8.createElement(
|
|
1531
1426
|
View7,
|
|
1532
1427
|
{
|
|
1533
1428
|
style: {
|
|
@@ -1538,7 +1433,7 @@ var A4PujaList = ({
|
|
|
1538
1433
|
width: "20%"
|
|
1539
1434
|
}
|
|
1540
1435
|
},
|
|
1541
|
-
/* @__PURE__ */
|
|
1436
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Date")
|
|
1542
1437
|
)
|
|
1543
1438
|
))), pujas.some(
|
|
1544
1439
|
(puja) => puja.bookings.some(
|
|
@@ -1549,7 +1444,7 @@ var A4PujaList = ({
|
|
|
1549
1444
|
(booking) => booking.is_early_reminder && !booking.requires_coupon
|
|
1550
1445
|
).map((booking, bookingIndex) => {
|
|
1551
1446
|
serialOfEarlyReminders++;
|
|
1552
|
-
return /* @__PURE__ */
|
|
1447
|
+
return /* @__PURE__ */ React8.createElement(
|
|
1553
1448
|
View7,
|
|
1554
1449
|
{
|
|
1555
1450
|
key: `${pujaIndex}-${bookingIndex}`,
|
|
@@ -1560,7 +1455,7 @@ var A4PujaList = ({
|
|
|
1560
1455
|
borderTop: "none"
|
|
1561
1456
|
}
|
|
1562
1457
|
},
|
|
1563
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ React8.createElement(
|
|
1564
1459
|
View7,
|
|
1565
1460
|
{
|
|
1566
1461
|
style: {
|
|
@@ -1570,9 +1465,9 @@ var A4PujaList = ({
|
|
|
1570
1465
|
width: "10%"
|
|
1571
1466
|
}
|
|
1572
1467
|
},
|
|
1573
|
-
/* @__PURE__ */
|
|
1468
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, serialOfEarlyReminders)
|
|
1574
1469
|
),
|
|
1575
|
-
/* @__PURE__ */
|
|
1470
|
+
/* @__PURE__ */ React8.createElement(
|
|
1576
1471
|
View7,
|
|
1577
1472
|
{
|
|
1578
1473
|
style: {
|
|
@@ -1582,9 +1477,9 @@ var A4PujaList = ({
|
|
|
1582
1477
|
width: "60%"
|
|
1583
1478
|
}
|
|
1584
1479
|
},
|
|
1585
|
-
/* @__PURE__ */
|
|
1480
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, puja.name)
|
|
1586
1481
|
),
|
|
1587
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ React8.createElement(
|
|
1588
1483
|
View7,
|
|
1589
1484
|
{
|
|
1590
1485
|
style: {
|
|
@@ -1594,9 +1489,9 @@ var A4PujaList = ({
|
|
|
1594
1489
|
width: "10%"
|
|
1595
1490
|
}
|
|
1596
1491
|
},
|
|
1597
|
-
/* @__PURE__ */
|
|
1492
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.quantity)
|
|
1598
1493
|
),
|
|
1599
|
-
/* @__PURE__ */
|
|
1494
|
+
/* @__PURE__ */ React8.createElement(
|
|
1600
1495
|
View7,
|
|
1601
1496
|
{
|
|
1602
1497
|
style: {
|
|
@@ -1606,11 +1501,11 @@ var A4PujaList = ({
|
|
|
1606
1501
|
width: "20%"
|
|
1607
1502
|
}
|
|
1608
1503
|
},
|
|
1609
|
-
/* @__PURE__ */
|
|
1504
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.date ? new Date(booking.date).toDateString() : "")
|
|
1610
1505
|
)
|
|
1611
1506
|
);
|
|
1612
1507
|
})
|
|
1613
|
-
) : null, /* @__PURE__ */
|
|
1508
|
+
) : null, /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold", marginTop: 20 } }, "Puja List"), /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React8.createElement(
|
|
1614
1509
|
View7,
|
|
1615
1510
|
{
|
|
1616
1511
|
style: {
|
|
@@ -1625,7 +1520,7 @@ var A4PujaList = ({
|
|
|
1625
1520
|
))
|
|
1626
1521
|
return null;
|
|
1627
1522
|
serialOfNormalPujas = 0;
|
|
1628
|
-
return /* @__PURE__ */
|
|
1523
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(View7, { wrap: false, style: { marginBottom: 25 } }, /* @__PURE__ */ React8.createElement(View7, null, /* @__PURE__ */ React8.createElement(
|
|
1629
1524
|
Text_default,
|
|
1630
1525
|
{
|
|
1631
1526
|
style: {
|
|
@@ -1638,7 +1533,7 @@ var A4PujaList = ({
|
|
|
1638
1533
|
}
|
|
1639
1534
|
},
|
|
1640
1535
|
`${puja.name} - ${puja.bookings.length}`
|
|
1641
|
-
)), /* @__PURE__ */
|
|
1536
|
+
)), /* @__PURE__ */ React8.createElement(
|
|
1642
1537
|
View7,
|
|
1643
1538
|
{
|
|
1644
1539
|
style: {
|
|
@@ -1647,7 +1542,7 @@ var A4PujaList = ({
|
|
|
1647
1542
|
border: "1px solid black"
|
|
1648
1543
|
}
|
|
1649
1544
|
},
|
|
1650
|
-
/* @__PURE__ */
|
|
1545
|
+
/* @__PURE__ */ React8.createElement(
|
|
1651
1546
|
View7,
|
|
1652
1547
|
{
|
|
1653
1548
|
style: {
|
|
@@ -1658,9 +1553,9 @@ var A4PujaList = ({
|
|
|
1658
1553
|
width: "10%"
|
|
1659
1554
|
}
|
|
1660
1555
|
},
|
|
1661
|
-
/* @__PURE__ */
|
|
1556
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Sr No")
|
|
1662
1557
|
),
|
|
1663
|
-
/* @__PURE__ */
|
|
1558
|
+
/* @__PURE__ */ React8.createElement(
|
|
1664
1559
|
View7,
|
|
1665
1560
|
{
|
|
1666
1561
|
style: {
|
|
@@ -1671,9 +1566,9 @@ var A4PujaList = ({
|
|
|
1671
1566
|
width: "20%"
|
|
1672
1567
|
}
|
|
1673
1568
|
},
|
|
1674
|
-
/* @__PURE__ */
|
|
1569
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Invoice No")
|
|
1675
1570
|
),
|
|
1676
|
-
/* @__PURE__ */
|
|
1571
|
+
/* @__PURE__ */ React8.createElement(
|
|
1677
1572
|
View7,
|
|
1678
1573
|
{
|
|
1679
1574
|
style: {
|
|
@@ -1684,9 +1579,9 @@ var A4PujaList = ({
|
|
|
1684
1579
|
width: "35%"
|
|
1685
1580
|
}
|
|
1686
1581
|
},
|
|
1687
|
-
/* @__PURE__ */
|
|
1582
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Devotee Name")
|
|
1688
1583
|
),
|
|
1689
|
-
/* @__PURE__ */
|
|
1584
|
+
/* @__PURE__ */ React8.createElement(
|
|
1690
1585
|
View7,
|
|
1691
1586
|
{
|
|
1692
1587
|
style: {
|
|
@@ -1697,9 +1592,9 @@ var A4PujaList = ({
|
|
|
1697
1592
|
width: "25%"
|
|
1698
1593
|
}
|
|
1699
1594
|
},
|
|
1700
|
-
/* @__PURE__ */
|
|
1595
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Nakshatra")
|
|
1701
1596
|
),
|
|
1702
|
-
/* @__PURE__ */
|
|
1597
|
+
/* @__PURE__ */ React8.createElement(
|
|
1703
1598
|
View7,
|
|
1704
1599
|
{
|
|
1705
1600
|
style: {
|
|
@@ -1710,13 +1605,13 @@ var A4PujaList = ({
|
|
|
1710
1605
|
width: "10%"
|
|
1711
1606
|
}
|
|
1712
1607
|
},
|
|
1713
|
-
/* @__PURE__ */
|
|
1608
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Qty")
|
|
1714
1609
|
)
|
|
1715
1610
|
), puja.bookings.map((booking, bookingIndex) => {
|
|
1716
1611
|
if (booking.is_early_reminder || booking.requires_coupon)
|
|
1717
1612
|
return null;
|
|
1718
1613
|
serialOfNormalPujas++;
|
|
1719
|
-
return /* @__PURE__ */
|
|
1614
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(
|
|
1720
1615
|
View7,
|
|
1721
1616
|
{
|
|
1722
1617
|
style: {
|
|
@@ -1727,7 +1622,7 @@ var A4PujaList = ({
|
|
|
1727
1622
|
width: "100%"
|
|
1728
1623
|
}
|
|
1729
1624
|
},
|
|
1730
|
-
/* @__PURE__ */
|
|
1625
|
+
/* @__PURE__ */ React8.createElement(
|
|
1731
1626
|
View7,
|
|
1732
1627
|
{
|
|
1733
1628
|
style: {
|
|
@@ -1737,9 +1632,9 @@ var A4PujaList = ({
|
|
|
1737
1632
|
width: "10%"
|
|
1738
1633
|
}
|
|
1739
1634
|
},
|
|
1740
|
-
/* @__PURE__ */
|
|
1635
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, serialOfNormalPujas)
|
|
1741
1636
|
),
|
|
1742
|
-
/* @__PURE__ */
|
|
1637
|
+
/* @__PURE__ */ React8.createElement(
|
|
1743
1638
|
View7,
|
|
1744
1639
|
{
|
|
1745
1640
|
style: {
|
|
@@ -1748,7 +1643,7 @@ var A4PujaList = ({
|
|
|
1748
1643
|
width: "90%"
|
|
1749
1644
|
}
|
|
1750
1645
|
},
|
|
1751
|
-
/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ React8.createElement(
|
|
1752
1647
|
View7,
|
|
1753
1648
|
{
|
|
1754
1649
|
style: {
|
|
@@ -1756,7 +1651,7 @@ var A4PujaList = ({
|
|
|
1756
1651
|
flexDirection: "row"
|
|
1757
1652
|
}
|
|
1758
1653
|
},
|
|
1759
|
-
/* @__PURE__ */
|
|
1654
|
+
/* @__PURE__ */ React8.createElement(
|
|
1760
1655
|
View7,
|
|
1761
1656
|
{
|
|
1762
1657
|
style: {
|
|
@@ -1766,9 +1661,9 @@ var A4PujaList = ({
|
|
|
1766
1661
|
width: `${20 * 1.11111}%`
|
|
1767
1662
|
}
|
|
1768
1663
|
},
|
|
1769
|
-
/* @__PURE__ */
|
|
1664
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.invoiceNumber)
|
|
1770
1665
|
),
|
|
1771
|
-
/* @__PURE__ */
|
|
1666
|
+
/* @__PURE__ */ React8.createElement(
|
|
1772
1667
|
View7,
|
|
1773
1668
|
{
|
|
1774
1669
|
style: {
|
|
@@ -1778,9 +1673,9 @@ var A4PujaList = ({
|
|
|
1778
1673
|
width: `${35 * 1.11111}%`
|
|
1779
1674
|
}
|
|
1780
1675
|
},
|
|
1781
|
-
/* @__PURE__ */
|
|
1676
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.devoteeName)
|
|
1782
1677
|
),
|
|
1783
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ React8.createElement(
|
|
1784
1679
|
View7,
|
|
1785
1680
|
{
|
|
1786
1681
|
style: {
|
|
@@ -1790,9 +1685,9 @@ var A4PujaList = ({
|
|
|
1790
1685
|
width: `${25 * 1.11111}%`
|
|
1791
1686
|
}
|
|
1792
1687
|
},
|
|
1793
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.nakshatra)
|
|
1794
1689
|
),
|
|
1795
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ React8.createElement(
|
|
1796
1691
|
View7,
|
|
1797
1692
|
{
|
|
1798
1693
|
style: {
|
|
@@ -1802,10 +1697,10 @@ var A4PujaList = ({
|
|
|
1802
1697
|
width: `${10 * 1.11111}%`
|
|
1803
1698
|
}
|
|
1804
1699
|
},
|
|
1805
|
-
/* @__PURE__ */
|
|
1700
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.quantity)
|
|
1806
1701
|
)
|
|
1807
1702
|
),
|
|
1808
|
-
booking.priestNote && /* @__PURE__ */
|
|
1703
|
+
booking.priestNote && /* @__PURE__ */ React8.createElement(
|
|
1809
1704
|
View7,
|
|
1810
1705
|
{
|
|
1811
1706
|
style: {
|
|
@@ -1815,14 +1710,14 @@ var A4PujaList = ({
|
|
|
1815
1710
|
width: "100%"
|
|
1816
1711
|
}
|
|
1817
1712
|
},
|
|
1818
|
-
/* @__PURE__ */
|
|
1713
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.priestNote)
|
|
1819
1714
|
)
|
|
1820
1715
|
)
|
|
1821
1716
|
));
|
|
1822
1717
|
})));
|
|
1823
1718
|
})
|
|
1824
|
-
)), pujasRequiresCoupon ? /* @__PURE__ */
|
|
1825
|
-
|
|
1719
|
+
)), pujasRequiresCoupon ? /* @__PURE__ */ React8.createElement(Page8, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React8.createElement(
|
|
1720
|
+
Image7,
|
|
1826
1721
|
{
|
|
1827
1722
|
fixed: true,
|
|
1828
1723
|
style: {
|
|
@@ -1832,7 +1727,7 @@ var A4PujaList = ({
|
|
|
1832
1727
|
},
|
|
1833
1728
|
src: bmpLogo
|
|
1834
1729
|
}
|
|
1835
|
-
), /* @__PURE__ */
|
|
1730
|
+
), /* @__PURE__ */ React8.createElement(
|
|
1836
1731
|
View7,
|
|
1837
1732
|
{
|
|
1838
1733
|
style: {
|
|
@@ -1856,7 +1751,7 @@ var A4PujaList = ({
|
|
|
1856
1751
|
([invoiceNumber, bookings], groupIdx) => {
|
|
1857
1752
|
const bookingsArr = bookings;
|
|
1858
1753
|
const first = bookingsArr[0];
|
|
1859
|
-
return /* @__PURE__ */
|
|
1754
|
+
return /* @__PURE__ */ React8.createElement(
|
|
1860
1755
|
View7,
|
|
1861
1756
|
{
|
|
1862
1757
|
key: invoiceNumber,
|
|
@@ -1869,7 +1764,7 @@ var A4PujaList = ({
|
|
|
1869
1764
|
},
|
|
1870
1765
|
wrap: false
|
|
1871
1766
|
},
|
|
1872
|
-
/* @__PURE__ */
|
|
1767
|
+
/* @__PURE__ */ React8.createElement(
|
|
1873
1768
|
View7,
|
|
1874
1769
|
{
|
|
1875
1770
|
style: {
|
|
@@ -1879,7 +1774,7 @@ var A4PujaList = ({
|
|
|
1879
1774
|
gap: 10
|
|
1880
1775
|
}
|
|
1881
1776
|
},
|
|
1882
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ React8.createElement(
|
|
1883
1778
|
View7,
|
|
1884
1779
|
{
|
|
1885
1780
|
style: {
|
|
@@ -1888,14 +1783,14 @@ var A4PujaList = ({
|
|
|
1888
1783
|
gap: 10
|
|
1889
1784
|
}
|
|
1890
1785
|
},
|
|
1891
|
-
/* @__PURE__ */
|
|
1892
|
-
/* @__PURE__ */
|
|
1786
|
+
/* @__PURE__ */ React8.createElement(Text_default, { style: { fontWeight: "semibold" } }, invoiceNumber),
|
|
1787
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, first.date ? new Date(first.date).toDateString() : date.toDateString())
|
|
1893
1788
|
),
|
|
1894
|
-
/* @__PURE__ */
|
|
1789
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, first.phone_number)
|
|
1895
1790
|
),
|
|
1896
|
-
/* @__PURE__ */
|
|
1791
|
+
/* @__PURE__ */ React8.createElement(View7, { style: { height: 15, width: "100%" } }),
|
|
1897
1792
|
bookingsArr.map(
|
|
1898
|
-
(booking, idx) => /* @__PURE__ */
|
|
1793
|
+
(booking, idx) => /* @__PURE__ */ React8.createElement(
|
|
1899
1794
|
View7,
|
|
1900
1795
|
{
|
|
1901
1796
|
key: idx,
|
|
@@ -1905,10 +1800,10 @@ var A4PujaList = ({
|
|
|
1905
1800
|
marginTop: 25
|
|
1906
1801
|
}
|
|
1907
1802
|
},
|
|
1908
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, `${booking.devoteeName} ----- ${booking.nakshatra} ----- ${booking.pujaName}`)
|
|
1909
1804
|
)
|
|
1910
1805
|
),
|
|
1911
|
-
/* @__PURE__ */
|
|
1806
|
+
/* @__PURE__ */ React8.createElement(View7, null, /* @__PURE__ */ React8.createElement(
|
|
1912
1807
|
Text_default,
|
|
1913
1808
|
{
|
|
1914
1809
|
style: {
|
|
@@ -1929,8 +1824,8 @@ var A4PujaList = ({
|
|
|
1929
1824
|
var A4PujaList_default = A4PujaList;
|
|
1930
1825
|
|
|
1931
1826
|
// src/sizes/a4/A4Summary.tsx
|
|
1932
|
-
import
|
|
1933
|
-
import { Page as Page9, Document as Document9, Image as
|
|
1827
|
+
import React9 from "react";
|
|
1828
|
+
import { Page as Page9, Document as Document9, Image as Image8, View as View8 } from "@react-pdf/renderer";
|
|
1934
1829
|
var A4Summary = ({
|
|
1935
1830
|
templeName,
|
|
1936
1831
|
date,
|
|
@@ -1942,7 +1837,7 @@ var A4Summary = ({
|
|
|
1942
1837
|
const bTotalCount = b.nakshatras.length;
|
|
1943
1838
|
return bTotalCount - aTotalCount;
|
|
1944
1839
|
});
|
|
1945
|
-
return /* @__PURE__ */
|
|
1840
|
+
return /* @__PURE__ */ React9.createElement(Document9, null, /* @__PURE__ */ React9.createElement(
|
|
1946
1841
|
Page9,
|
|
1947
1842
|
{
|
|
1948
1843
|
size: "A4",
|
|
@@ -1951,8 +1846,8 @@ var A4Summary = ({
|
|
|
1951
1846
|
fontFamily: "Noto Sans"
|
|
1952
1847
|
}
|
|
1953
1848
|
},
|
|
1954
|
-
/* @__PURE__ */
|
|
1955
|
-
|
|
1849
|
+
/* @__PURE__ */ React9.createElement(
|
|
1850
|
+
Image8,
|
|
1956
1851
|
{
|
|
1957
1852
|
fixed: true,
|
|
1958
1853
|
style: {
|
|
@@ -1963,11 +1858,11 @@ var A4Summary = ({
|
|
|
1963
1858
|
src: bmpLogo
|
|
1964
1859
|
}
|
|
1965
1860
|
),
|
|
1966
|
-
/* @__PURE__ */
|
|
1967
|
-
reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */
|
|
1968
|
-
/* @__PURE__ */
|
|
1969
|
-
/* @__PURE__ */
|
|
1970
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ React9.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()),
|
|
1862
|
+
reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */ React9.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, reportTimingsObj[reportTiming], " Report") : null,
|
|
1863
|
+
/* @__PURE__ */ React9.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Puja Summary"),
|
|
1864
|
+
/* @__PURE__ */ React9.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`),
|
|
1865
|
+
pujas.length > 0 ? /* @__PURE__ */ React9.createElement(
|
|
1971
1866
|
View8,
|
|
1972
1867
|
{
|
|
1973
1868
|
style: {
|
|
@@ -1977,7 +1872,7 @@ var A4Summary = ({
|
|
|
1977
1872
|
}
|
|
1978
1873
|
},
|
|
1979
1874
|
sortedPujaList.map((item, index) => {
|
|
1980
|
-
return /* @__PURE__ */
|
|
1875
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(View8, { wrap: false, style: { marginBottom: 25 } }, /* @__PURE__ */ React9.createElement(View8, null, /* @__PURE__ */ React9.createElement(
|
|
1981
1876
|
Text_default,
|
|
1982
1877
|
{
|
|
1983
1878
|
style: {
|
|
@@ -1990,7 +1885,7 @@ var A4Summary = ({
|
|
|
1990
1885
|
}
|
|
1991
1886
|
},
|
|
1992
1887
|
`${item.name} - ${item.totalCount}`
|
|
1993
|
-
)), /* @__PURE__ */
|
|
1888
|
+
)), /* @__PURE__ */ React9.createElement(
|
|
1994
1889
|
View8,
|
|
1995
1890
|
{
|
|
1996
1891
|
style: {
|
|
@@ -1999,7 +1894,7 @@ var A4Summary = ({
|
|
|
1999
1894
|
border: "1px solid black"
|
|
2000
1895
|
}
|
|
2001
1896
|
},
|
|
2002
|
-
/* @__PURE__ */
|
|
1897
|
+
/* @__PURE__ */ React9.createElement(
|
|
2003
1898
|
View8,
|
|
2004
1899
|
{
|
|
2005
1900
|
style: {
|
|
@@ -2010,9 +1905,9 @@ var A4Summary = ({
|
|
|
2010
1905
|
width: "20%"
|
|
2011
1906
|
}
|
|
2012
1907
|
},
|
|
2013
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Sr No")
|
|
2014
1909
|
),
|
|
2015
|
-
/* @__PURE__ */
|
|
1910
|
+
/* @__PURE__ */ React9.createElement(
|
|
2016
1911
|
View8,
|
|
2017
1912
|
{
|
|
2018
1913
|
style: {
|
|
@@ -2023,9 +1918,9 @@ var A4Summary = ({
|
|
|
2023
1918
|
width: "60%"
|
|
2024
1919
|
}
|
|
2025
1920
|
},
|
|
2026
|
-
/* @__PURE__ */
|
|
1921
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Nakshatra")
|
|
2027
1922
|
),
|
|
2028
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ React9.createElement(
|
|
2029
1924
|
View8,
|
|
2030
1925
|
{
|
|
2031
1926
|
style: {
|
|
@@ -2035,10 +1930,10 @@ var A4Summary = ({
|
|
|
2035
1930
|
fontWeight: "semibold"
|
|
2036
1931
|
}
|
|
2037
1932
|
},
|
|
2038
|
-
/* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Quantity")
|
|
2039
1934
|
)
|
|
2040
1935
|
), item.nakshatras.map((nakshatra, nakshatraIndex) => {
|
|
2041
|
-
return /* @__PURE__ */
|
|
1936
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(
|
|
2042
1937
|
View8,
|
|
2043
1938
|
{
|
|
2044
1939
|
style: {
|
|
@@ -2048,7 +1943,7 @@ var A4Summary = ({
|
|
|
2048
1943
|
borderTop: "none"
|
|
2049
1944
|
}
|
|
2050
1945
|
},
|
|
2051
|
-
/* @__PURE__ */
|
|
1946
|
+
/* @__PURE__ */ React9.createElement(
|
|
2052
1947
|
View8,
|
|
2053
1948
|
{
|
|
2054
1949
|
style: {
|
|
@@ -2058,9 +1953,9 @@ var A4Summary = ({
|
|
|
2058
1953
|
width: "20%"
|
|
2059
1954
|
}
|
|
2060
1955
|
},
|
|
2061
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, nakshatraIndex + 1)
|
|
2062
1957
|
),
|
|
2063
|
-
/* @__PURE__ */
|
|
1958
|
+
/* @__PURE__ */ React9.createElement(
|
|
2064
1959
|
View8,
|
|
2065
1960
|
{
|
|
2066
1961
|
style: {
|
|
@@ -2070,9 +1965,9 @@ var A4Summary = ({
|
|
|
2070
1965
|
width: "60%"
|
|
2071
1966
|
}
|
|
2072
1967
|
},
|
|
2073
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, nakshatra.name)
|
|
2074
1969
|
),
|
|
2075
|
-
/* @__PURE__ */
|
|
1970
|
+
/* @__PURE__ */ React9.createElement(
|
|
2076
1971
|
View8,
|
|
2077
1972
|
{
|
|
2078
1973
|
style: {
|
|
@@ -2081,11 +1976,21 @@ var A4Summary = ({
|
|
|
2081
1976
|
width: "20%"
|
|
2082
1977
|
}
|
|
2083
1978
|
},
|
|
2084
|
-
/* @__PURE__ */
|
|
1979
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, nakshatra.count)
|
|
2085
1980
|
)
|
|
2086
1981
|
));
|
|
2087
1982
|
})));
|
|
2088
1983
|
})
|
|
1984
|
+
) : /* @__PURE__ */ React9.createElement(
|
|
1985
|
+
Text_default,
|
|
1986
|
+
{
|
|
1987
|
+
style: {
|
|
1988
|
+
fontSize: 18,
|
|
1989
|
+
textAlign: "center",
|
|
1990
|
+
marginTop: 100
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
"No data available for the selected date range"
|
|
2089
1994
|
)
|
|
2090
1995
|
));
|
|
2091
1996
|
};
|
|
@@ -2095,8 +2000,8 @@ var A4Summary_default = A4Summary;
|
|
|
2095
2000
|
import { Font as Font5 } from "@react-pdf/renderer";
|
|
2096
2001
|
|
|
2097
2002
|
// src/sizes/a4/A4CombinedReport.tsx
|
|
2098
|
-
import { Document as Document10, Image as
|
|
2099
|
-
import
|
|
2003
|
+
import { Document as Document10, Image as Image9, Page as Page10, View as View9 } from "@react-pdf/renderer";
|
|
2004
|
+
import React10 from "react";
|
|
2100
2005
|
var A4CombinedReport = ({
|
|
2101
2006
|
date,
|
|
2102
2007
|
templeName,
|
|
@@ -2124,8 +2029,22 @@ var A4CombinedReport = ({
|
|
|
2124
2029
|
const pujasRequiresCoupon = pujaData.some(
|
|
2125
2030
|
(puja) => puja.bookings.some((booking) => booking.requires_coupon)
|
|
2126
2031
|
);
|
|
2127
|
-
|
|
2128
|
-
|
|
2032
|
+
if (pujaData.length == 0 && prasadData.length == 0 && deliveryData.length == 0) {
|
|
2033
|
+
return /* @__PURE__ */ React10.createElement(Document10, null, /* @__PURE__ */ React10.createElement(Page10, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
2034
|
+
Image9,
|
|
2035
|
+
{
|
|
2036
|
+
fixed: true,
|
|
2037
|
+
style: {
|
|
2038
|
+
height: 15,
|
|
2039
|
+
width: 75,
|
|
2040
|
+
marginBottom: 10
|
|
2041
|
+
},
|
|
2042
|
+
src: bmpLogo
|
|
2043
|
+
}
|
|
2044
|
+
), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, reportTimingsObj[reportTiming], " Report") : null, /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Combined Report"), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 12, marginTop: 100, textAlign: "center" } }, "No data available for the selected date range")));
|
|
2045
|
+
}
|
|
2046
|
+
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(Document10, null, pujaData.length > 0 && /* @__PURE__ */ React10.createElement(Page10, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
2047
|
+
Image9,
|
|
2129
2048
|
{
|
|
2130
2049
|
fixed: true,
|
|
2131
2050
|
style: {
|
|
@@ -2135,15 +2054,15 @@ var A4CombinedReport = ({
|
|
|
2135
2054
|
},
|
|
2136
2055
|
src: bmpLogo
|
|
2137
2056
|
}
|
|
2138
|
-
), /* @__PURE__ */
|
|
2057
|
+
), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, reportTimingsObj[reportTiming], " Report") : null, pujaData.some(
|
|
2139
2058
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
2140
|
-
) && /* @__PURE__ */
|
|
2059
|
+
) && /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
|
|
2141
2060
|
Text_default,
|
|
2142
2061
|
{
|
|
2143
2062
|
style: { fontSize: 14, fontWeight: "bold", marginTop: 10 }
|
|
2144
2063
|
},
|
|
2145
2064
|
"Early Reminders for Upcoming Pujas"
|
|
2146
|
-
), /* @__PURE__ */
|
|
2065
|
+
), /* @__PURE__ */ React10.createElement(View9, { wrap: false, style: { marginTop: 10 } }, /* @__PURE__ */ React10.createElement(
|
|
2147
2066
|
View9,
|
|
2148
2067
|
{
|
|
2149
2068
|
style: {
|
|
@@ -2152,7 +2071,7 @@ var A4CombinedReport = ({
|
|
|
2152
2071
|
border: "1px solid black"
|
|
2153
2072
|
}
|
|
2154
2073
|
},
|
|
2155
|
-
/* @__PURE__ */
|
|
2074
|
+
/* @__PURE__ */ React10.createElement(
|
|
2156
2075
|
View9,
|
|
2157
2076
|
{
|
|
2158
2077
|
style: {
|
|
@@ -2163,9 +2082,9 @@ var A4CombinedReport = ({
|
|
|
2163
2082
|
width: "10%"
|
|
2164
2083
|
}
|
|
2165
2084
|
},
|
|
2166
|
-
/* @__PURE__ */
|
|
2085
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Sr No")
|
|
2167
2086
|
),
|
|
2168
|
-
/* @__PURE__ */
|
|
2087
|
+
/* @__PURE__ */ React10.createElement(
|
|
2169
2088
|
View9,
|
|
2170
2089
|
{
|
|
2171
2090
|
style: {
|
|
@@ -2176,9 +2095,9 @@ var A4CombinedReport = ({
|
|
|
2176
2095
|
width: "60%"
|
|
2177
2096
|
}
|
|
2178
2097
|
},
|
|
2179
|
-
/* @__PURE__ */
|
|
2098
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Puja Name")
|
|
2180
2099
|
),
|
|
2181
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ React10.createElement(
|
|
2182
2101
|
View9,
|
|
2183
2102
|
{
|
|
2184
2103
|
style: {
|
|
@@ -2189,9 +2108,9 @@ var A4CombinedReport = ({
|
|
|
2189
2108
|
width: "10%"
|
|
2190
2109
|
}
|
|
2191
2110
|
},
|
|
2192
|
-
/* @__PURE__ */
|
|
2111
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Qty")
|
|
2193
2112
|
),
|
|
2194
|
-
/* @__PURE__ */
|
|
2113
|
+
/* @__PURE__ */ React10.createElement(
|
|
2195
2114
|
View9,
|
|
2196
2115
|
{
|
|
2197
2116
|
style: {
|
|
@@ -2202,7 +2121,7 @@ var A4CombinedReport = ({
|
|
|
2202
2121
|
width: "20%"
|
|
2203
2122
|
}
|
|
2204
2123
|
},
|
|
2205
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Date")
|
|
2206
2125
|
)
|
|
2207
2126
|
))), pujaData.some(
|
|
2208
2127
|
(puja) => puja.bookings.some(
|
|
@@ -2213,7 +2132,7 @@ var A4CombinedReport = ({
|
|
|
2213
2132
|
(booking) => booking.is_early_reminder && !booking.requires_coupon
|
|
2214
2133
|
).map((booking, bookingIndex) => {
|
|
2215
2134
|
serialOfEarlyReminders++;
|
|
2216
|
-
return /* @__PURE__ */
|
|
2135
|
+
return /* @__PURE__ */ React10.createElement(
|
|
2217
2136
|
View9,
|
|
2218
2137
|
{
|
|
2219
2138
|
key: `${pujaIndex}-${bookingIndex}`,
|
|
@@ -2224,7 +2143,7 @@ var A4CombinedReport = ({
|
|
|
2224
2143
|
borderTop: "none"
|
|
2225
2144
|
}
|
|
2226
2145
|
},
|
|
2227
|
-
/* @__PURE__ */
|
|
2146
|
+
/* @__PURE__ */ React10.createElement(
|
|
2228
2147
|
View9,
|
|
2229
2148
|
{
|
|
2230
2149
|
style: {
|
|
@@ -2234,9 +2153,9 @@ var A4CombinedReport = ({
|
|
|
2234
2153
|
width: "10%"
|
|
2235
2154
|
}
|
|
2236
2155
|
},
|
|
2237
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, serialOfEarlyReminders)
|
|
2238
2157
|
),
|
|
2239
|
-
/* @__PURE__ */
|
|
2158
|
+
/* @__PURE__ */ React10.createElement(
|
|
2240
2159
|
View9,
|
|
2241
2160
|
{
|
|
2242
2161
|
style: {
|
|
@@ -2246,9 +2165,9 @@ var A4CombinedReport = ({
|
|
|
2246
2165
|
width: "60%"
|
|
2247
2166
|
}
|
|
2248
2167
|
},
|
|
2249
|
-
/* @__PURE__ */
|
|
2168
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, puja.name)
|
|
2250
2169
|
),
|
|
2251
|
-
/* @__PURE__ */
|
|
2170
|
+
/* @__PURE__ */ React10.createElement(
|
|
2252
2171
|
View9,
|
|
2253
2172
|
{
|
|
2254
2173
|
style: {
|
|
@@ -2258,9 +2177,9 @@ var A4CombinedReport = ({
|
|
|
2258
2177
|
width: "10%"
|
|
2259
2178
|
}
|
|
2260
2179
|
},
|
|
2261
|
-
/* @__PURE__ */
|
|
2180
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.quantity)
|
|
2262
2181
|
),
|
|
2263
|
-
/* @__PURE__ */
|
|
2182
|
+
/* @__PURE__ */ React10.createElement(
|
|
2264
2183
|
View9,
|
|
2265
2184
|
{
|
|
2266
2185
|
style: {
|
|
@@ -2270,11 +2189,11 @@ var A4CombinedReport = ({
|
|
|
2270
2189
|
width: "20%"
|
|
2271
2190
|
}
|
|
2272
2191
|
},
|
|
2273
|
-
/* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.date ? new Date(booking.date).toDateString() : "")
|
|
2274
2193
|
)
|
|
2275
2194
|
);
|
|
2276
2195
|
})
|
|
2277
|
-
) : null, /* @__PURE__ */
|
|
2196
|
+
) : null, /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold", marginTop: 20 } }, "Puja List"), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React10.createElement(
|
|
2278
2197
|
View9,
|
|
2279
2198
|
{
|
|
2280
2199
|
style: {
|
|
@@ -2289,7 +2208,7 @@ var A4CombinedReport = ({
|
|
|
2289
2208
|
))
|
|
2290
2209
|
return null;
|
|
2291
2210
|
serialOfNormalPujas = 0;
|
|
2292
|
-
return /* @__PURE__ */
|
|
2211
|
+
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(View9, { wrap: false, style: { marginBottom: 25 } }, /* @__PURE__ */ React10.createElement(View9, null, /* @__PURE__ */ React10.createElement(
|
|
2293
2212
|
Text_default,
|
|
2294
2213
|
{
|
|
2295
2214
|
style: {
|
|
@@ -2302,7 +2221,7 @@ var A4CombinedReport = ({
|
|
|
2302
2221
|
}
|
|
2303
2222
|
},
|
|
2304
2223
|
`${puja.name} - ${puja.bookings.length}`
|
|
2305
|
-
)), /* @__PURE__ */
|
|
2224
|
+
)), /* @__PURE__ */ React10.createElement(
|
|
2306
2225
|
View9,
|
|
2307
2226
|
{
|
|
2308
2227
|
style: {
|
|
@@ -2311,7 +2230,7 @@ var A4CombinedReport = ({
|
|
|
2311
2230
|
border: "1px solid black"
|
|
2312
2231
|
}
|
|
2313
2232
|
},
|
|
2314
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ React10.createElement(
|
|
2315
2234
|
View9,
|
|
2316
2235
|
{
|
|
2317
2236
|
style: {
|
|
@@ -2322,9 +2241,9 @@ var A4CombinedReport = ({
|
|
|
2322
2241
|
width: "10%"
|
|
2323
2242
|
}
|
|
2324
2243
|
},
|
|
2325
|
-
/* @__PURE__ */
|
|
2244
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Sr No")
|
|
2326
2245
|
),
|
|
2327
|
-
/* @__PURE__ */
|
|
2246
|
+
/* @__PURE__ */ React10.createElement(
|
|
2328
2247
|
View9,
|
|
2329
2248
|
{
|
|
2330
2249
|
style: {
|
|
@@ -2335,9 +2254,9 @@ var A4CombinedReport = ({
|
|
|
2335
2254
|
width: "20%"
|
|
2336
2255
|
}
|
|
2337
2256
|
},
|
|
2338
|
-
/* @__PURE__ */
|
|
2257
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Invoice No")
|
|
2339
2258
|
),
|
|
2340
|
-
/* @__PURE__ */
|
|
2259
|
+
/* @__PURE__ */ React10.createElement(
|
|
2341
2260
|
View9,
|
|
2342
2261
|
{
|
|
2343
2262
|
style: {
|
|
@@ -2348,9 +2267,9 @@ var A4CombinedReport = ({
|
|
|
2348
2267
|
width: "35%"
|
|
2349
2268
|
}
|
|
2350
2269
|
},
|
|
2351
|
-
/* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Devotee Name")
|
|
2352
2271
|
),
|
|
2353
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ React10.createElement(
|
|
2354
2273
|
View9,
|
|
2355
2274
|
{
|
|
2356
2275
|
style: {
|
|
@@ -2361,9 +2280,9 @@ var A4CombinedReport = ({
|
|
|
2361
2280
|
width: "25%"
|
|
2362
2281
|
}
|
|
2363
2282
|
},
|
|
2364
|
-
/* @__PURE__ */
|
|
2283
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Nakshatra")
|
|
2365
2284
|
),
|
|
2366
|
-
/* @__PURE__ */
|
|
2285
|
+
/* @__PURE__ */ React10.createElement(
|
|
2367
2286
|
View9,
|
|
2368
2287
|
{
|
|
2369
2288
|
style: {
|
|
@@ -2374,13 +2293,13 @@ var A4CombinedReport = ({
|
|
|
2374
2293
|
width: "10%"
|
|
2375
2294
|
}
|
|
2376
2295
|
},
|
|
2377
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Qty")
|
|
2378
2297
|
)
|
|
2379
2298
|
), puja.bookings.map((booking, bookingIndex) => {
|
|
2380
2299
|
if (booking.is_early_reminder || booking.requires_coupon)
|
|
2381
2300
|
return null;
|
|
2382
2301
|
serialOfNormalPujas++;
|
|
2383
|
-
return /* @__PURE__ */
|
|
2302
|
+
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
|
|
2384
2303
|
View9,
|
|
2385
2304
|
{
|
|
2386
2305
|
style: {
|
|
@@ -2391,7 +2310,7 @@ var A4CombinedReport = ({
|
|
|
2391
2310
|
width: "100%"
|
|
2392
2311
|
}
|
|
2393
2312
|
},
|
|
2394
|
-
/* @__PURE__ */
|
|
2313
|
+
/* @__PURE__ */ React10.createElement(
|
|
2395
2314
|
View9,
|
|
2396
2315
|
{
|
|
2397
2316
|
style: {
|
|
@@ -2401,9 +2320,9 @@ var A4CombinedReport = ({
|
|
|
2401
2320
|
width: "10%"
|
|
2402
2321
|
}
|
|
2403
2322
|
},
|
|
2404
|
-
/* @__PURE__ */
|
|
2323
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, serialOfNormalPujas)
|
|
2405
2324
|
),
|
|
2406
|
-
/* @__PURE__ */
|
|
2325
|
+
/* @__PURE__ */ React10.createElement(
|
|
2407
2326
|
View9,
|
|
2408
2327
|
{
|
|
2409
2328
|
style: {
|
|
@@ -2412,7 +2331,7 @@ var A4CombinedReport = ({
|
|
|
2412
2331
|
width: "90%"
|
|
2413
2332
|
}
|
|
2414
2333
|
},
|
|
2415
|
-
/* @__PURE__ */
|
|
2334
|
+
/* @__PURE__ */ React10.createElement(
|
|
2416
2335
|
View9,
|
|
2417
2336
|
{
|
|
2418
2337
|
style: {
|
|
@@ -2420,7 +2339,7 @@ var A4CombinedReport = ({
|
|
|
2420
2339
|
flexDirection: "row"
|
|
2421
2340
|
}
|
|
2422
2341
|
},
|
|
2423
|
-
/* @__PURE__ */
|
|
2342
|
+
/* @__PURE__ */ React10.createElement(
|
|
2424
2343
|
View9,
|
|
2425
2344
|
{
|
|
2426
2345
|
style: {
|
|
@@ -2430,9 +2349,9 @@ var A4CombinedReport = ({
|
|
|
2430
2349
|
width: `${20 * 1.11111}%`
|
|
2431
2350
|
}
|
|
2432
2351
|
},
|
|
2433
|
-
/* @__PURE__ */
|
|
2352
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.invoiceNumber)
|
|
2434
2353
|
),
|
|
2435
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ React10.createElement(
|
|
2436
2355
|
View9,
|
|
2437
2356
|
{
|
|
2438
2357
|
style: {
|
|
@@ -2442,9 +2361,9 @@ var A4CombinedReport = ({
|
|
|
2442
2361
|
width: `${35 * 1.11111}%`
|
|
2443
2362
|
}
|
|
2444
2363
|
},
|
|
2445
|
-
/* @__PURE__ */
|
|
2364
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.devoteeName)
|
|
2446
2365
|
),
|
|
2447
|
-
/* @__PURE__ */
|
|
2366
|
+
/* @__PURE__ */ React10.createElement(
|
|
2448
2367
|
View9,
|
|
2449
2368
|
{
|
|
2450
2369
|
style: {
|
|
@@ -2454,9 +2373,9 @@ var A4CombinedReport = ({
|
|
|
2454
2373
|
width: `${25 * 1.11111}%`
|
|
2455
2374
|
}
|
|
2456
2375
|
},
|
|
2457
|
-
/* @__PURE__ */
|
|
2376
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.nakshatra)
|
|
2458
2377
|
),
|
|
2459
|
-
/* @__PURE__ */
|
|
2378
|
+
/* @__PURE__ */ React10.createElement(
|
|
2460
2379
|
View9,
|
|
2461
2380
|
{
|
|
2462
2381
|
style: {
|
|
@@ -2466,10 +2385,10 @@ var A4CombinedReport = ({
|
|
|
2466
2385
|
width: `${10 * 1.11111}%`
|
|
2467
2386
|
}
|
|
2468
2387
|
},
|
|
2469
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.quantity)
|
|
2470
2389
|
)
|
|
2471
2390
|
),
|
|
2472
|
-
booking.priestNote && /* @__PURE__ */
|
|
2391
|
+
booking.priestNote && /* @__PURE__ */ React10.createElement(
|
|
2473
2392
|
View9,
|
|
2474
2393
|
{
|
|
2475
2394
|
style: {
|
|
@@ -2479,14 +2398,14 @@ var A4CombinedReport = ({
|
|
|
2479
2398
|
width: "100%"
|
|
2480
2399
|
}
|
|
2481
2400
|
},
|
|
2482
|
-
/* @__PURE__ */
|
|
2401
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.priestNote)
|
|
2483
2402
|
)
|
|
2484
2403
|
)
|
|
2485
2404
|
));
|
|
2486
2405
|
})));
|
|
2487
2406
|
})
|
|
2488
|
-
)), pujaData.length > 0 && pujasRequiresCoupon && /* @__PURE__ */
|
|
2489
|
-
|
|
2407
|
+
)), pujaData.length > 0 && pujasRequiresCoupon && /* @__PURE__ */ React10.createElement(Page10, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
2408
|
+
Image9,
|
|
2490
2409
|
{
|
|
2491
2410
|
fixed: true,
|
|
2492
2411
|
style: {
|
|
@@ -2496,7 +2415,7 @@ var A4CombinedReport = ({
|
|
|
2496
2415
|
},
|
|
2497
2416
|
src: bmpLogo
|
|
2498
2417
|
}
|
|
2499
|
-
), /* @__PURE__ */
|
|
2418
|
+
), /* @__PURE__ */ React10.createElement(
|
|
2500
2419
|
View9,
|
|
2501
2420
|
{
|
|
2502
2421
|
style: {
|
|
@@ -2520,7 +2439,7 @@ var A4CombinedReport = ({
|
|
|
2520
2439
|
([invoiceNumber, bookings], groupIdx) => {
|
|
2521
2440
|
const bookingsArr = bookings;
|
|
2522
2441
|
const first = bookingsArr[0];
|
|
2523
|
-
return /* @__PURE__ */
|
|
2442
|
+
return /* @__PURE__ */ React10.createElement(
|
|
2524
2443
|
View9,
|
|
2525
2444
|
{
|
|
2526
2445
|
key: invoiceNumber,
|
|
@@ -2532,7 +2451,7 @@ var A4CombinedReport = ({
|
|
|
2532
2451
|
},
|
|
2533
2452
|
wrap: false
|
|
2534
2453
|
},
|
|
2535
|
-
/* @__PURE__ */
|
|
2454
|
+
/* @__PURE__ */ React10.createElement(
|
|
2536
2455
|
View9,
|
|
2537
2456
|
{
|
|
2538
2457
|
style: {
|
|
@@ -2542,7 +2461,7 @@ var A4CombinedReport = ({
|
|
|
2542
2461
|
gap: 10
|
|
2543
2462
|
}
|
|
2544
2463
|
},
|
|
2545
|
-
/* @__PURE__ */
|
|
2464
|
+
/* @__PURE__ */ React10.createElement(
|
|
2546
2465
|
View9,
|
|
2547
2466
|
{
|
|
2548
2467
|
style: {
|
|
@@ -2551,14 +2470,14 @@ var A4CombinedReport = ({
|
|
|
2551
2470
|
gap: 10
|
|
2552
2471
|
}
|
|
2553
2472
|
},
|
|
2554
|
-
/* @__PURE__ */
|
|
2555
|
-
/* @__PURE__ */
|
|
2473
|
+
/* @__PURE__ */ React10.createElement(Text_default, { style: { fontWeight: "semibold" } }, invoiceNumber),
|
|
2474
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, first.date ? new Date(first.date).toDateString() : date.toDateString())
|
|
2556
2475
|
),
|
|
2557
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, first.phone_number)
|
|
2558
2477
|
),
|
|
2559
|
-
/* @__PURE__ */
|
|
2478
|
+
/* @__PURE__ */ React10.createElement(View9, { style: { height: 15, width: "100%" } }),
|
|
2560
2479
|
bookingsArr.map(
|
|
2561
|
-
(booking, idx) => /* @__PURE__ */
|
|
2480
|
+
(booking, idx) => /* @__PURE__ */ React10.createElement(
|
|
2562
2481
|
View9,
|
|
2563
2482
|
{
|
|
2564
2483
|
key: idx,
|
|
@@ -2568,15 +2487,15 @@ var A4CombinedReport = ({
|
|
|
2568
2487
|
marginTop: 25
|
|
2569
2488
|
}
|
|
2570
2489
|
},
|
|
2571
|
-
/* @__PURE__ */
|
|
2490
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, `${booking.devoteeName} ----- ${booking.nakshatra} ----- ${booking.pujaName}`)
|
|
2572
2491
|
)
|
|
2573
2492
|
)
|
|
2574
2493
|
);
|
|
2575
2494
|
}
|
|
2576
2495
|
);
|
|
2577
2496
|
})()
|
|
2578
|
-
)), prasadData.length > 0 && /* @__PURE__ */
|
|
2579
|
-
|
|
2497
|
+
)), prasadData.length > 0 && /* @__PURE__ */ React10.createElement(Page10, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
2498
|
+
Image9,
|
|
2580
2499
|
{
|
|
2581
2500
|
fixed: true,
|
|
2582
2501
|
style: {
|
|
@@ -2586,7 +2505,7 @@ var A4CombinedReport = ({
|
|
|
2586
2505
|
},
|
|
2587
2506
|
src: bmpLogo
|
|
2588
2507
|
}
|
|
2589
|
-
), /* @__PURE__ */
|
|
2508
|
+
), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, reportTimingsObj[reportTiming], " Report") : null, /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Report"), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React10.createElement(
|
|
2590
2509
|
View9,
|
|
2591
2510
|
{
|
|
2592
2511
|
style: {
|
|
@@ -2595,7 +2514,7 @@ var A4CombinedReport = ({
|
|
|
2595
2514
|
marginTop: 20
|
|
2596
2515
|
}
|
|
2597
2516
|
},
|
|
2598
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ React10.createElement(
|
|
2599
2518
|
View9,
|
|
2600
2519
|
{
|
|
2601
2520
|
style: {
|
|
@@ -2606,7 +2525,7 @@ var A4CombinedReport = ({
|
|
|
2606
2525
|
fontSize: 10
|
|
2607
2526
|
}
|
|
2608
2527
|
},
|
|
2609
|
-
/* @__PURE__ */
|
|
2528
|
+
/* @__PURE__ */ React10.createElement(
|
|
2610
2529
|
View9,
|
|
2611
2530
|
{
|
|
2612
2531
|
style: {
|
|
@@ -2615,9 +2534,9 @@ var A4CombinedReport = ({
|
|
|
2615
2534
|
width: "10%"
|
|
2616
2535
|
}
|
|
2617
2536
|
},
|
|
2618
|
-
/* @__PURE__ */
|
|
2537
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Sr no")
|
|
2619
2538
|
),
|
|
2620
|
-
/* @__PURE__ */
|
|
2539
|
+
/* @__PURE__ */ React10.createElement(
|
|
2621
2540
|
View9,
|
|
2622
2541
|
{
|
|
2623
2542
|
style: {
|
|
@@ -2626,9 +2545,9 @@ var A4CombinedReport = ({
|
|
|
2626
2545
|
width: "20%"
|
|
2627
2546
|
}
|
|
2628
2547
|
},
|
|
2629
|
-
/* @__PURE__ */
|
|
2548
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Invoice Number")
|
|
2630
2549
|
),
|
|
2631
|
-
/* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ React10.createElement(
|
|
2632
2551
|
View9,
|
|
2633
2552
|
{
|
|
2634
2553
|
style: {
|
|
@@ -2637,9 +2556,9 @@ var A4CombinedReport = ({
|
|
|
2637
2556
|
width: "30%"
|
|
2638
2557
|
}
|
|
2639
2558
|
},
|
|
2640
|
-
/* @__PURE__ */
|
|
2559
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Devotee Name")
|
|
2641
2560
|
),
|
|
2642
|
-
/* @__PURE__ */
|
|
2561
|
+
/* @__PURE__ */ React10.createElement(
|
|
2643
2562
|
View9,
|
|
2644
2563
|
{
|
|
2645
2564
|
style: {
|
|
@@ -2648,9 +2567,9 @@ var A4CombinedReport = ({
|
|
|
2648
2567
|
width: "30%"
|
|
2649
2568
|
}
|
|
2650
2569
|
},
|
|
2651
|
-
/* @__PURE__ */
|
|
2570
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Prasad Name")
|
|
2652
2571
|
),
|
|
2653
|
-
/* @__PURE__ */
|
|
2572
|
+
/* @__PURE__ */ React10.createElement(
|
|
2654
2573
|
View9,
|
|
2655
2574
|
{
|
|
2656
2575
|
style: {
|
|
@@ -2658,11 +2577,11 @@ var A4CombinedReport = ({
|
|
|
2658
2577
|
width: "10%"
|
|
2659
2578
|
}
|
|
2660
2579
|
},
|
|
2661
|
-
/* @__PURE__ */
|
|
2580
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Qty")
|
|
2662
2581
|
)
|
|
2663
2582
|
),
|
|
2664
2583
|
prasadData.map((item, index) => {
|
|
2665
|
-
return /* @__PURE__ */
|
|
2584
|
+
return /* @__PURE__ */ React10.createElement(
|
|
2666
2585
|
View9,
|
|
2667
2586
|
{
|
|
2668
2587
|
style: {
|
|
@@ -2673,7 +2592,7 @@ var A4CombinedReport = ({
|
|
|
2673
2592
|
fontSize: 10
|
|
2674
2593
|
}
|
|
2675
2594
|
},
|
|
2676
|
-
/* @__PURE__ */
|
|
2595
|
+
/* @__PURE__ */ React10.createElement(
|
|
2677
2596
|
View9,
|
|
2678
2597
|
{
|
|
2679
2598
|
style: {
|
|
@@ -2682,9 +2601,9 @@ var A4CombinedReport = ({
|
|
|
2682
2601
|
width: "10%"
|
|
2683
2602
|
}
|
|
2684
2603
|
},
|
|
2685
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, index + 1)
|
|
2686
2605
|
),
|
|
2687
|
-
/* @__PURE__ */
|
|
2606
|
+
/* @__PURE__ */ React10.createElement(
|
|
2688
2607
|
View9,
|
|
2689
2608
|
{
|
|
2690
2609
|
style: {
|
|
@@ -2693,9 +2612,9 @@ var A4CombinedReport = ({
|
|
|
2693
2612
|
width: "20%"
|
|
2694
2613
|
}
|
|
2695
2614
|
},
|
|
2696
|
-
/* @__PURE__ */
|
|
2615
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.invoiceNumber)
|
|
2697
2616
|
),
|
|
2698
|
-
/* @__PURE__ */
|
|
2617
|
+
/* @__PURE__ */ React10.createElement(
|
|
2699
2618
|
View9,
|
|
2700
2619
|
{
|
|
2701
2620
|
style: {
|
|
@@ -2704,9 +2623,9 @@ var A4CombinedReport = ({
|
|
|
2704
2623
|
width: "30%"
|
|
2705
2624
|
}
|
|
2706
2625
|
},
|
|
2707
|
-
/* @__PURE__ */
|
|
2626
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.devoteeName)
|
|
2708
2627
|
),
|
|
2709
|
-
/* @__PURE__ */
|
|
2628
|
+
/* @__PURE__ */ React10.createElement(
|
|
2710
2629
|
View9,
|
|
2711
2630
|
{
|
|
2712
2631
|
style: {
|
|
@@ -2715,9 +2634,9 @@ var A4CombinedReport = ({
|
|
|
2715
2634
|
width: "30%"
|
|
2716
2635
|
}
|
|
2717
2636
|
},
|
|
2718
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.prasadName)
|
|
2719
2638
|
),
|
|
2720
|
-
/* @__PURE__ */
|
|
2639
|
+
/* @__PURE__ */ React10.createElement(
|
|
2721
2640
|
View9,
|
|
2722
2641
|
{
|
|
2723
2642
|
style: {
|
|
@@ -2725,12 +2644,12 @@ var A4CombinedReport = ({
|
|
|
2725
2644
|
width: "10%"
|
|
2726
2645
|
}
|
|
2727
2646
|
},
|
|
2728
|
-
/* @__PURE__ */
|
|
2647
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.quantity)
|
|
2729
2648
|
)
|
|
2730
2649
|
);
|
|
2731
2650
|
})
|
|
2732
|
-
)), deliveryData.length > 0 && /* @__PURE__ */
|
|
2733
|
-
|
|
2651
|
+
)), deliveryData.length > 0 && /* @__PURE__ */ React10.createElement(Page10, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
2652
|
+
Image9,
|
|
2734
2653
|
{
|
|
2735
2654
|
fixed: true,
|
|
2736
2655
|
style: {
|
|
@@ -2740,7 +2659,7 @@ var A4CombinedReport = ({
|
|
|
2740
2659
|
},
|
|
2741
2660
|
src: bmpLogo
|
|
2742
2661
|
}
|
|
2743
|
-
), /* @__PURE__ */
|
|
2662
|
+
), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, reportTimingsObj[reportTiming], " Report") : null, /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Delivery Postal Report"), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React10.createElement(
|
|
2744
2663
|
View9,
|
|
2745
2664
|
{
|
|
2746
2665
|
style: {
|
|
@@ -2753,7 +2672,7 @@ var A4CombinedReport = ({
|
|
|
2753
2672
|
}
|
|
2754
2673
|
},
|
|
2755
2674
|
deliveryData && deliveryData.map((item) => {
|
|
2756
|
-
return /* @__PURE__ */
|
|
2675
|
+
return /* @__PURE__ */ React10.createElement(
|
|
2757
2676
|
View9,
|
|
2758
2677
|
{
|
|
2759
2678
|
key: item.id,
|
|
@@ -2767,18 +2686,18 @@ var A4CombinedReport = ({
|
|
|
2767
2686
|
padding: 6
|
|
2768
2687
|
}
|
|
2769
2688
|
},
|
|
2770
|
-
/* @__PURE__ */
|
|
2689
|
+
/* @__PURE__ */ React10.createElement(
|
|
2771
2690
|
View9,
|
|
2772
2691
|
{
|
|
2773
2692
|
style: {
|
|
2774
2693
|
flexGrow: 1
|
|
2775
2694
|
}
|
|
2776
2695
|
},
|
|
2777
|
-
/* @__PURE__ */
|
|
2778
|
-
/* @__PURE__ */
|
|
2779
|
-
/* @__PURE__ */
|
|
2696
|
+
/* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 10, fontWeight: "bold" } }, item.name),
|
|
2697
|
+
/* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 10 } }, item.address),
|
|
2698
|
+
/* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 10 } }, item.phone)
|
|
2780
2699
|
),
|
|
2781
|
-
/* @__PURE__ */
|
|
2700
|
+
/* @__PURE__ */ React10.createElement(
|
|
2782
2701
|
View9,
|
|
2783
2702
|
{
|
|
2784
2703
|
style: {
|
|
@@ -2789,7 +2708,7 @@ var A4CombinedReport = ({
|
|
|
2789
2708
|
}
|
|
2790
2709
|
}
|
|
2791
2710
|
),
|
|
2792
|
-
/* @__PURE__ */
|
|
2711
|
+
/* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 9, marginTop: 3 } }, "Note: ", item.pujaDetails)
|
|
2793
2712
|
);
|
|
2794
2713
|
})
|
|
2795
2714
|
))));
|
|
@@ -2797,15 +2716,15 @@ var A4CombinedReport = ({
|
|
|
2797
2716
|
var A4CombinedReport_default = A4CombinedReport;
|
|
2798
2717
|
|
|
2799
2718
|
// src/sizes/a4/A4MultiTemplePaymentReport.tsx
|
|
2800
|
-
import { Document as Document11, Image as
|
|
2801
|
-
import
|
|
2719
|
+
import { Document as Document11, Image as Image10, Page as Page11, View as View10 } from "@react-pdf/renderer";
|
|
2720
|
+
import React11 from "react";
|
|
2802
2721
|
var A4MultiTemplePaymentReport = ({
|
|
2803
2722
|
startDate,
|
|
2804
2723
|
endDate,
|
|
2805
2724
|
data
|
|
2806
2725
|
}) => {
|
|
2807
|
-
return /* @__PURE__ */
|
|
2808
|
-
|
|
2726
|
+
return /* @__PURE__ */ React11.createElement(Document11, null, /* @__PURE__ */ React11.createElement(Page11, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React11.createElement(
|
|
2727
|
+
Image10,
|
|
2809
2728
|
{
|
|
2810
2729
|
fixed: true,
|
|
2811
2730
|
style: {
|
|
@@ -2815,7 +2734,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2815
2734
|
},
|
|
2816
2735
|
src: bmpLogo
|
|
2817
2736
|
}
|
|
2818
|
-
), /* @__PURE__ */
|
|
2737
|
+
), /* @__PURE__ */ React11.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", startDate.toDateString(), " - ", endDate.toDateString()), /* @__PURE__ */ React11.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Temple Payment Report"), /* @__PURE__ */ React11.createElement(
|
|
2819
2738
|
View10,
|
|
2820
2739
|
{
|
|
2821
2740
|
style: {
|
|
@@ -2824,7 +2743,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2824
2743
|
marginTop: 20
|
|
2825
2744
|
}
|
|
2826
2745
|
},
|
|
2827
|
-
/* @__PURE__ */
|
|
2746
|
+
/* @__PURE__ */ React11.createElement(
|
|
2828
2747
|
View10,
|
|
2829
2748
|
{
|
|
2830
2749
|
style: {
|
|
@@ -2835,7 +2754,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2835
2754
|
fontSize: 10
|
|
2836
2755
|
}
|
|
2837
2756
|
},
|
|
2838
|
-
/* @__PURE__ */
|
|
2757
|
+
/* @__PURE__ */ React11.createElement(
|
|
2839
2758
|
View10,
|
|
2840
2759
|
{
|
|
2841
2760
|
style: {
|
|
@@ -2844,9 +2763,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2844
2763
|
width: "10%"
|
|
2845
2764
|
}
|
|
2846
2765
|
},
|
|
2847
|
-
/* @__PURE__ */
|
|
2766
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "S.No.")
|
|
2848
2767
|
),
|
|
2849
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ React11.createElement(
|
|
2850
2769
|
View10,
|
|
2851
2770
|
{
|
|
2852
2771
|
style: {
|
|
@@ -2855,9 +2774,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2855
2774
|
width: "55%"
|
|
2856
2775
|
}
|
|
2857
2776
|
},
|
|
2858
|
-
/* @__PURE__ */
|
|
2777
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Temple Name")
|
|
2859
2778
|
),
|
|
2860
|
-
/* @__PURE__ */
|
|
2779
|
+
/* @__PURE__ */ React11.createElement(
|
|
2861
2780
|
View10,
|
|
2862
2781
|
{
|
|
2863
2782
|
style: {
|
|
@@ -2866,9 +2785,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2866
2785
|
width: "15%"
|
|
2867
2786
|
}
|
|
2868
2787
|
},
|
|
2869
|
-
/* @__PURE__ */
|
|
2788
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Bookings")
|
|
2870
2789
|
),
|
|
2871
|
-
/* @__PURE__ */
|
|
2790
|
+
/* @__PURE__ */ React11.createElement(
|
|
2872
2791
|
View10,
|
|
2873
2792
|
{
|
|
2874
2793
|
style: {
|
|
@@ -2876,11 +2795,11 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2876
2795
|
width: "20%"
|
|
2877
2796
|
}
|
|
2878
2797
|
},
|
|
2879
|
-
/* @__PURE__ */
|
|
2798
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Revenue")
|
|
2880
2799
|
)
|
|
2881
2800
|
),
|
|
2882
2801
|
data?.map((temple, index) => {
|
|
2883
|
-
return /* @__PURE__ */
|
|
2802
|
+
return /* @__PURE__ */ React11.createElement(
|
|
2884
2803
|
View10,
|
|
2885
2804
|
{
|
|
2886
2805
|
key: index,
|
|
@@ -2892,7 +2811,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2892
2811
|
fontSize: 10
|
|
2893
2812
|
}
|
|
2894
2813
|
},
|
|
2895
|
-
/* @__PURE__ */
|
|
2814
|
+
/* @__PURE__ */ React11.createElement(
|
|
2896
2815
|
View10,
|
|
2897
2816
|
{
|
|
2898
2817
|
style: {
|
|
@@ -2901,9 +2820,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2901
2820
|
width: "10%"
|
|
2902
2821
|
}
|
|
2903
2822
|
},
|
|
2904
|
-
/* @__PURE__ */
|
|
2823
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, index + 1)
|
|
2905
2824
|
),
|
|
2906
|
-
/* @__PURE__ */
|
|
2825
|
+
/* @__PURE__ */ React11.createElement(
|
|
2907
2826
|
View10,
|
|
2908
2827
|
{
|
|
2909
2828
|
style: {
|
|
@@ -2912,9 +2831,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2912
2831
|
width: "55%"
|
|
2913
2832
|
}
|
|
2914
2833
|
},
|
|
2915
|
-
/* @__PURE__ */
|
|
2834
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, temple.name)
|
|
2916
2835
|
),
|
|
2917
|
-
/* @__PURE__ */
|
|
2836
|
+
/* @__PURE__ */ React11.createElement(
|
|
2918
2837
|
View10,
|
|
2919
2838
|
{
|
|
2920
2839
|
style: {
|
|
@@ -2923,9 +2842,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2923
2842
|
width: "15%"
|
|
2924
2843
|
}
|
|
2925
2844
|
},
|
|
2926
|
-
/* @__PURE__ */
|
|
2845
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, temple.bookings)
|
|
2927
2846
|
),
|
|
2928
|
-
/* @__PURE__ */
|
|
2847
|
+
/* @__PURE__ */ React11.createElement(
|
|
2929
2848
|
View10,
|
|
2930
2849
|
{
|
|
2931
2850
|
style: {
|
|
@@ -2933,7 +2852,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2933
2852
|
width: "20%"
|
|
2934
2853
|
}
|
|
2935
2854
|
},
|
|
2936
|
-
/* @__PURE__ */
|
|
2855
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "\u20B9", temple.revenue)
|
|
2937
2856
|
)
|
|
2938
2857
|
);
|
|
2939
2858
|
})
|
|
@@ -2942,15 +2861,15 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2942
2861
|
var A4MultiTemplePaymentReport_default = A4MultiTemplePaymentReport;
|
|
2943
2862
|
|
|
2944
2863
|
// src/sizes/a4/A4SettlementsReport.tsx
|
|
2945
|
-
import
|
|
2946
|
-
import { Page as Page12, Document as Document12, Image as
|
|
2864
|
+
import React12 from "react";
|
|
2865
|
+
import { Page as Page12, Document as Document12, Image as Image11, View as View11 } from "@react-pdf/renderer";
|
|
2947
2866
|
var A4SettlementsReport = ({
|
|
2948
2867
|
startDate,
|
|
2949
2868
|
endDate,
|
|
2950
2869
|
templeName,
|
|
2951
2870
|
data
|
|
2952
2871
|
}) => {
|
|
2953
|
-
return /* @__PURE__ */
|
|
2872
|
+
return /* @__PURE__ */ React12.createElement(Document12, null, /* @__PURE__ */ React12.createElement(
|
|
2954
2873
|
Page12,
|
|
2955
2874
|
{
|
|
2956
2875
|
size: "A4",
|
|
@@ -2959,8 +2878,8 @@ var A4SettlementsReport = ({
|
|
|
2959
2878
|
fontFamily: "Noto Sans"
|
|
2960
2879
|
}
|
|
2961
2880
|
},
|
|
2962
|
-
/* @__PURE__ */
|
|
2963
|
-
|
|
2881
|
+
/* @__PURE__ */ React12.createElement(
|
|
2882
|
+
Image11,
|
|
2964
2883
|
{
|
|
2965
2884
|
fixed: true,
|
|
2966
2885
|
style: {
|
|
@@ -2971,11 +2890,11 @@ var A4SettlementsReport = ({
|
|
|
2971
2890
|
src: bmpLogo
|
|
2972
2891
|
}
|
|
2973
2892
|
),
|
|
2974
|
-
/* @__PURE__ */
|
|
2975
|
-
/* @__PURE__ */
|
|
2976
|
-
/* @__PURE__ */
|
|
2977
|
-
/* @__PURE__ */
|
|
2978
|
-
/* @__PURE__ */
|
|
2893
|
+
/* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Dates: ", startDate.toDateString(), " - ", endDate.toDateString()),
|
|
2894
|
+
/* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Settlements Report"),
|
|
2895
|
+
/* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`),
|
|
2896
|
+
/* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 10, marginTop: 10 } }, "Total Credited Amount: ", data.totalCreditedAmount),
|
|
2897
|
+
data.settlements.length > 0 ? /* @__PURE__ */ React12.createElement(
|
|
2979
2898
|
View11,
|
|
2980
2899
|
{
|
|
2981
2900
|
style: {
|
|
@@ -2984,7 +2903,7 @@ var A4SettlementsReport = ({
|
|
|
2984
2903
|
marginTop: 20
|
|
2985
2904
|
}
|
|
2986
2905
|
},
|
|
2987
|
-
/* @__PURE__ */
|
|
2906
|
+
/* @__PURE__ */ React12.createElement(
|
|
2988
2907
|
View11,
|
|
2989
2908
|
{
|
|
2990
2909
|
style: {
|
|
@@ -2995,7 +2914,7 @@ var A4SettlementsReport = ({
|
|
|
2995
2914
|
fontWeight: "semibold"
|
|
2996
2915
|
}
|
|
2997
2916
|
},
|
|
2998
|
-
/* @__PURE__ */
|
|
2917
|
+
/* @__PURE__ */ React12.createElement(
|
|
2999
2918
|
View11,
|
|
3000
2919
|
{
|
|
3001
2920
|
style: {
|
|
@@ -3004,9 +2923,9 @@ var A4SettlementsReport = ({
|
|
|
3004
2923
|
width: "10%"
|
|
3005
2924
|
}
|
|
3006
2925
|
},
|
|
3007
|
-
/* @__PURE__ */
|
|
2926
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Sr no")
|
|
3008
2927
|
),
|
|
3009
|
-
/* @__PURE__ */
|
|
2928
|
+
/* @__PURE__ */ React12.createElement(
|
|
3010
2929
|
View11,
|
|
3011
2930
|
{
|
|
3012
2931
|
style: {
|
|
@@ -3015,9 +2934,9 @@ var A4SettlementsReport = ({
|
|
|
3015
2934
|
width: "15%"
|
|
3016
2935
|
}
|
|
3017
2936
|
},
|
|
3018
|
-
/* @__PURE__ */
|
|
2937
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Date")
|
|
3019
2938
|
),
|
|
3020
|
-
/* @__PURE__ */
|
|
2939
|
+
/* @__PURE__ */ React12.createElement(
|
|
3021
2940
|
View11,
|
|
3022
2941
|
{
|
|
3023
2942
|
style: {
|
|
@@ -3026,9 +2945,9 @@ var A4SettlementsReport = ({
|
|
|
3026
2945
|
width: "15%"
|
|
3027
2946
|
}
|
|
3028
2947
|
},
|
|
3029
|
-
/* @__PURE__ */
|
|
2948
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Settlement")
|
|
3030
2949
|
),
|
|
3031
|
-
/* @__PURE__ */
|
|
2950
|
+
/* @__PURE__ */ React12.createElement(
|
|
3032
2951
|
View11,
|
|
3033
2952
|
{
|
|
3034
2953
|
style: {
|
|
@@ -3037,9 +2956,9 @@ var A4SettlementsReport = ({
|
|
|
3037
2956
|
width: "20%"
|
|
3038
2957
|
}
|
|
3039
2958
|
},
|
|
3040
|
-
/* @__PURE__ */
|
|
2959
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "UTR")
|
|
3041
2960
|
),
|
|
3042
|
-
/* @__PURE__ */
|
|
2961
|
+
/* @__PURE__ */ React12.createElement(
|
|
3043
2962
|
View11,
|
|
3044
2963
|
{
|
|
3045
2964
|
style: {
|
|
@@ -3048,9 +2967,9 @@ var A4SettlementsReport = ({
|
|
|
3048
2967
|
width: "25%"
|
|
3049
2968
|
}
|
|
3050
2969
|
},
|
|
3051
|
-
/* @__PURE__ */
|
|
2970
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Invoice")
|
|
3052
2971
|
),
|
|
3053
|
-
/* @__PURE__ */
|
|
2972
|
+
/* @__PURE__ */ React12.createElement(
|
|
3054
2973
|
View11,
|
|
3055
2974
|
{
|
|
3056
2975
|
style: {
|
|
@@ -3059,11 +2978,11 @@ var A4SettlementsReport = ({
|
|
|
3059
2978
|
width: "20%"
|
|
3060
2979
|
}
|
|
3061
2980
|
},
|
|
3062
|
-
/* @__PURE__ */
|
|
2981
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Settlement ID")
|
|
3063
2982
|
)
|
|
3064
2983
|
),
|
|
3065
2984
|
data.settlements?.map((item, index) => {
|
|
3066
|
-
return /* @__PURE__ */
|
|
2985
|
+
return /* @__PURE__ */ React12.createElement(
|
|
3067
2986
|
View11,
|
|
3068
2987
|
{
|
|
3069
2988
|
style: {
|
|
@@ -3074,7 +2993,7 @@ var A4SettlementsReport = ({
|
|
|
3074
2993
|
fontSize: 10
|
|
3075
2994
|
}
|
|
3076
2995
|
},
|
|
3077
|
-
/* @__PURE__ */
|
|
2996
|
+
/* @__PURE__ */ React12.createElement(
|
|
3078
2997
|
View11,
|
|
3079
2998
|
{
|
|
3080
2999
|
style: {
|
|
@@ -3083,9 +3002,9 @@ var A4SettlementsReport = ({
|
|
|
3083
3002
|
width: "10%"
|
|
3084
3003
|
}
|
|
3085
3004
|
},
|
|
3086
|
-
/* @__PURE__ */
|
|
3005
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, index + 1)
|
|
3087
3006
|
),
|
|
3088
|
-
/* @__PURE__ */
|
|
3007
|
+
/* @__PURE__ */ React12.createElement(
|
|
3089
3008
|
View11,
|
|
3090
3009
|
{
|
|
3091
3010
|
style: {
|
|
@@ -3095,9 +3014,9 @@ var A4SettlementsReport = ({
|
|
|
3095
3014
|
borderRight: "1px solid #000"
|
|
3096
3015
|
}
|
|
3097
3016
|
},
|
|
3098
|
-
/* @__PURE__ */
|
|
3017
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, item.date)
|
|
3099
3018
|
),
|
|
3100
|
-
/* @__PURE__ */
|
|
3019
|
+
/* @__PURE__ */ React12.createElement(
|
|
3101
3020
|
View11,
|
|
3102
3021
|
{
|
|
3103
3022
|
style: {
|
|
@@ -3106,9 +3025,9 @@ var A4SettlementsReport = ({
|
|
|
3106
3025
|
width: "15%"
|
|
3107
3026
|
}
|
|
3108
3027
|
},
|
|
3109
|
-
/* @__PURE__ */
|
|
3028
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, item.settlement_amount)
|
|
3110
3029
|
),
|
|
3111
|
-
/* @__PURE__ */
|
|
3030
|
+
/* @__PURE__ */ React12.createElement(
|
|
3112
3031
|
View11,
|
|
3113
3032
|
{
|
|
3114
3033
|
style: {
|
|
@@ -3118,9 +3037,9 @@ var A4SettlementsReport = ({
|
|
|
3118
3037
|
fontSize: 9
|
|
3119
3038
|
}
|
|
3120
3039
|
},
|
|
3121
|
-
/* @__PURE__ */
|
|
3040
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, item.utr.split("").map((line, index2) => /* @__PURE__ */ React12.createElement(Text_default, { key: index2 }, line)))
|
|
3122
3041
|
),
|
|
3123
|
-
/* @__PURE__ */
|
|
3042
|
+
/* @__PURE__ */ React12.createElement(
|
|
3124
3043
|
View11,
|
|
3125
3044
|
{
|
|
3126
3045
|
style: {
|
|
@@ -3130,7 +3049,7 @@ var A4SettlementsReport = ({
|
|
|
3130
3049
|
fontSize: 9
|
|
3131
3050
|
}
|
|
3132
3051
|
},
|
|
3133
|
-
/* @__PURE__ */
|
|
3052
|
+
/* @__PURE__ */ React12.createElement(
|
|
3134
3053
|
View11,
|
|
3135
3054
|
{
|
|
3136
3055
|
style: {
|
|
@@ -3138,10 +3057,10 @@ var A4SettlementsReport = ({
|
|
|
3138
3057
|
flexDirection: "column"
|
|
3139
3058
|
}
|
|
3140
3059
|
},
|
|
3141
|
-
item.invoices.map((invoice, idx) => /* @__PURE__ */
|
|
3060
|
+
item.invoices.map((invoice, idx) => /* @__PURE__ */ React12.createElement(Text_default, { key: idx }, invoice.number, " (", invoice.amount, ")"))
|
|
3142
3061
|
)
|
|
3143
3062
|
),
|
|
3144
|
-
/* @__PURE__ */
|
|
3063
|
+
/* @__PURE__ */ React12.createElement(
|
|
3145
3064
|
View11,
|
|
3146
3065
|
{
|
|
3147
3066
|
style: {
|
|
@@ -3150,20 +3069,30 @@ var A4SettlementsReport = ({
|
|
|
3150
3069
|
width: "20%"
|
|
3151
3070
|
}
|
|
3152
3071
|
},
|
|
3153
|
-
/* @__PURE__ */
|
|
3072
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, item.settlement_id)
|
|
3154
3073
|
)
|
|
3155
3074
|
);
|
|
3156
3075
|
})
|
|
3076
|
+
) : /* @__PURE__ */ React12.createElement(
|
|
3077
|
+
Text_default,
|
|
3078
|
+
{
|
|
3079
|
+
style: {
|
|
3080
|
+
fontSize: 18,
|
|
3081
|
+
textAlign: "center",
|
|
3082
|
+
marginTop: 100
|
|
3083
|
+
}
|
|
3084
|
+
},
|
|
3085
|
+
"No data available for the selected date range"
|
|
3157
3086
|
)
|
|
3158
3087
|
));
|
|
3159
3088
|
};
|
|
3160
3089
|
var A4SettlementsReport_default = A4SettlementsReport;
|
|
3161
3090
|
|
|
3162
3091
|
// src/sizes/a4/A4Invoice.tsx
|
|
3163
|
-
import
|
|
3164
|
-
import { Document as Document13, Image as
|
|
3092
|
+
import React13 from "react";
|
|
3093
|
+
import { Document as Document13, Image as Image12, Page as Page13, View as View12 } from "@react-pdf/renderer";
|
|
3165
3094
|
var A4Invoice = ({ data }) => {
|
|
3166
|
-
return /* @__PURE__ */
|
|
3095
|
+
return /* @__PURE__ */ React13.createElement(Document13, null, /* @__PURE__ */ React13.createElement(Page13, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
|
|
3167
3096
|
View12,
|
|
3168
3097
|
{
|
|
3169
3098
|
style: {
|
|
@@ -3171,7 +3100,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3171
3100
|
flexDirection: "row"
|
|
3172
3101
|
}
|
|
3173
3102
|
},
|
|
3174
|
-
/* @__PURE__ */
|
|
3103
|
+
/* @__PURE__ */ React13.createElement(
|
|
3175
3104
|
View12,
|
|
3176
3105
|
{
|
|
3177
3106
|
style: {
|
|
@@ -3181,7 +3110,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3181
3110
|
}
|
|
3182
3111
|
}
|
|
3183
3112
|
),
|
|
3184
|
-
/* @__PURE__ */
|
|
3113
|
+
/* @__PURE__ */ React13.createElement(View12, { style: { marginLeft: 15, marginTop: 10, marginBottom: 0 } }, /* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 16, fontWeight: "bold" } }, data.templeName), /* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 10 } }, data.templeAddress), /* @__PURE__ */ React13.createElement(
|
|
3185
3114
|
View12,
|
|
3186
3115
|
{
|
|
3187
3116
|
style: {
|
|
@@ -3192,9 +3121,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3192
3121
|
alignItems: "center"
|
|
3193
3122
|
}
|
|
3194
3123
|
},
|
|
3195
|
-
/* @__PURE__ */
|
|
3196
|
-
/* @__PURE__ */
|
|
3197
|
-
|
|
3124
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 10, marginTop: -5 } }, "Powered by"),
|
|
3125
|
+
/* @__PURE__ */ React13.createElement(
|
|
3126
|
+
Image12,
|
|
3198
3127
|
{
|
|
3199
3128
|
style: {
|
|
3200
3129
|
height: 25,
|
|
@@ -3206,7 +3135,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3206
3135
|
}
|
|
3207
3136
|
)
|
|
3208
3137
|
))
|
|
3209
|
-
), /* @__PURE__ */
|
|
3138
|
+
), /* @__PURE__ */ React13.createElement(
|
|
3210
3139
|
View12,
|
|
3211
3140
|
{
|
|
3212
3141
|
style: {
|
|
@@ -3217,8 +3146,8 @@ var A4Invoice = ({ data }) => {
|
|
|
3217
3146
|
position: "relative"
|
|
3218
3147
|
}
|
|
3219
3148
|
},
|
|
3220
|
-
data.status === "confirmed" ? /* @__PURE__ */
|
|
3221
|
-
|
|
3149
|
+
data.status === "confirmed" ? /* @__PURE__ */ React13.createElement(
|
|
3150
|
+
Image12,
|
|
3222
3151
|
{
|
|
3223
3152
|
style: {
|
|
3224
3153
|
height: 85,
|
|
@@ -3232,20 +3161,20 @@ var A4Invoice = ({ data }) => {
|
|
|
3232
3161
|
src: paidIcon
|
|
3233
3162
|
}
|
|
3234
3163
|
) : null,
|
|
3235
|
-
/* @__PURE__ */
|
|
3236
|
-
/* @__PURE__ */
|
|
3237
|
-
), /* @__PURE__ */
|
|
3164
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 12, marginTop: 5, fontWeight: "semibold" } }, "INVOICE #", data.invoiceNumber),
|
|
3165
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 10, marginTop: 2 } }, "Status: ", data.status == "confirmed" ? "PAID" : "PENDING")
|
|
3166
|
+
), /* @__PURE__ */ React13.createElement(
|
|
3238
3167
|
View12,
|
|
3239
3168
|
{
|
|
3240
3169
|
style: {
|
|
3241
3170
|
marginTop: 10
|
|
3242
3171
|
}
|
|
3243
3172
|
},
|
|
3244
|
-
/* @__PURE__ */
|
|
3245
|
-
/* @__PURE__ */
|
|
3246
|
-
data.devoteeDetails.phone ? /* @__PURE__ */
|
|
3247
|
-
/* @__PURE__ */
|
|
3248
|
-
), /* @__PURE__ */
|
|
3173
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 11 } }, "Bill to:"),
|
|
3174
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 11 } }, data.devoteeDetails.name),
|
|
3175
|
+
data.devoteeDetails.phone ? /* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 11 } }, data.devoteeDetails.phone) : null,
|
|
3176
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 11 } }, data.bookingDate)
|
|
3177
|
+
), /* @__PURE__ */ React13.createElement(
|
|
3249
3178
|
View12,
|
|
3250
3179
|
{
|
|
3251
3180
|
style: {
|
|
@@ -3254,7 +3183,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3254
3183
|
marginTop: 20
|
|
3255
3184
|
}
|
|
3256
3185
|
},
|
|
3257
|
-
/* @__PURE__ */
|
|
3186
|
+
/* @__PURE__ */ React13.createElement(
|
|
3258
3187
|
View12,
|
|
3259
3188
|
{
|
|
3260
3189
|
style: {
|
|
@@ -3265,7 +3194,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3265
3194
|
fontWeight: "semibold"
|
|
3266
3195
|
}
|
|
3267
3196
|
},
|
|
3268
|
-
/* @__PURE__ */
|
|
3197
|
+
/* @__PURE__ */ React13.createElement(
|
|
3269
3198
|
View12,
|
|
3270
3199
|
{
|
|
3271
3200
|
style: {
|
|
@@ -3274,9 +3203,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3274
3203
|
width: "50%"
|
|
3275
3204
|
}
|
|
3276
3205
|
},
|
|
3277
|
-
/* @__PURE__ */
|
|
3206
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Item Description")
|
|
3278
3207
|
),
|
|
3279
|
-
/* @__PURE__ */
|
|
3208
|
+
/* @__PURE__ */ React13.createElement(
|
|
3280
3209
|
View12,
|
|
3281
3210
|
{
|
|
3282
3211
|
style: {
|
|
@@ -3286,9 +3215,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3286
3215
|
textAlign: "center"
|
|
3287
3216
|
}
|
|
3288
3217
|
},
|
|
3289
|
-
/* @__PURE__ */
|
|
3218
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Price")
|
|
3290
3219
|
),
|
|
3291
|
-
/* @__PURE__ */
|
|
3220
|
+
/* @__PURE__ */ React13.createElement(
|
|
3292
3221
|
View12,
|
|
3293
3222
|
{
|
|
3294
3223
|
style: {
|
|
@@ -3298,9 +3227,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3298
3227
|
textAlign: "center"
|
|
3299
3228
|
}
|
|
3300
3229
|
},
|
|
3301
|
-
/* @__PURE__ */
|
|
3230
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Quantity")
|
|
3302
3231
|
),
|
|
3303
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ React13.createElement(
|
|
3304
3233
|
View12,
|
|
3305
3234
|
{
|
|
3306
3235
|
style: {
|
|
@@ -3310,11 +3239,11 @@ var A4Invoice = ({ data }) => {
|
|
|
3310
3239
|
textAlign: "center"
|
|
3311
3240
|
}
|
|
3312
3241
|
},
|
|
3313
|
-
/* @__PURE__ */
|
|
3242
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Total")
|
|
3314
3243
|
)
|
|
3315
3244
|
),
|
|
3316
3245
|
data.items.map((item, index) => {
|
|
3317
|
-
return /* @__PURE__ */
|
|
3246
|
+
return /* @__PURE__ */ React13.createElement(
|
|
3318
3247
|
View12,
|
|
3319
3248
|
{
|
|
3320
3249
|
wrap: false,
|
|
@@ -3325,7 +3254,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3325
3254
|
fontSize: 10
|
|
3326
3255
|
}
|
|
3327
3256
|
},
|
|
3328
|
-
/* @__PURE__ */
|
|
3257
|
+
/* @__PURE__ */ React13.createElement(
|
|
3329
3258
|
View12,
|
|
3330
3259
|
{
|
|
3331
3260
|
style: {
|
|
@@ -3334,7 +3263,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3334
3263
|
width: "50%"
|
|
3335
3264
|
}
|
|
3336
3265
|
},
|
|
3337
|
-
item.pujaName ? /* @__PURE__ */
|
|
3266
|
+
item.pujaName ? /* @__PURE__ */ React13.createElement(
|
|
3338
3267
|
Text_default,
|
|
3339
3268
|
{
|
|
3340
3269
|
style: {
|
|
@@ -3343,7 +3272,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3343
3272
|
},
|
|
3344
3273
|
item.pujaName
|
|
3345
3274
|
) : null,
|
|
3346
|
-
item.devoteesName ? /* @__PURE__ */
|
|
3275
|
+
item.devoteesName ? /* @__PURE__ */ React13.createElement(
|
|
3347
3276
|
Text_default,
|
|
3348
3277
|
{
|
|
3349
3278
|
style: {
|
|
@@ -3353,7 +3282,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3353
3282
|
},
|
|
3354
3283
|
item.devoteesName
|
|
3355
3284
|
) : null,
|
|
3356
|
-
item.pujaDate ? /* @__PURE__ */
|
|
3285
|
+
item.pujaDate ? /* @__PURE__ */ React13.createElement(
|
|
3357
3286
|
Text_default,
|
|
3358
3287
|
{
|
|
3359
3288
|
style: {
|
|
@@ -3365,7 +3294,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3365
3294
|
" ",
|
|
3366
3295
|
item.timing ? `- ${item.timing}` : null
|
|
3367
3296
|
) : null,
|
|
3368
|
-
item.repeatEndDate && item.repeatStartDate ? /* @__PURE__ */
|
|
3297
|
+
item.repeatEndDate && item.repeatStartDate ? /* @__PURE__ */ React13.createElement(
|
|
3369
3298
|
Text_default,
|
|
3370
3299
|
{
|
|
3371
3300
|
style: {
|
|
@@ -3380,7 +3309,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3380
3309
|
item.timing ? `- ${item.timing}` : null
|
|
3381
3310
|
) : null
|
|
3382
3311
|
),
|
|
3383
|
-
/* @__PURE__ */
|
|
3312
|
+
/* @__PURE__ */ React13.createElement(
|
|
3384
3313
|
View12,
|
|
3385
3314
|
{
|
|
3386
3315
|
style: {
|
|
@@ -3393,9 +3322,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3393
3322
|
justifyContent: "center"
|
|
3394
3323
|
}
|
|
3395
3324
|
},
|
|
3396
|
-
/* @__PURE__ */
|
|
3325
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: {} }, item.basePujPrice)
|
|
3397
3326
|
),
|
|
3398
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ React13.createElement(
|
|
3399
3328
|
View12,
|
|
3400
3329
|
{
|
|
3401
3330
|
style: {
|
|
@@ -3408,9 +3337,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3408
3337
|
justifyContent: "center"
|
|
3409
3338
|
}
|
|
3410
3339
|
},
|
|
3411
|
-
/* @__PURE__ */
|
|
3340
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: {} }, `${item.quantity ? item.quantity : ""}${item.repeatCount ? ` x ${item.repeatCount}` : ""}`)
|
|
3412
3341
|
),
|
|
3413
|
-
/* @__PURE__ */
|
|
3342
|
+
/* @__PURE__ */ React13.createElement(
|
|
3414
3343
|
View12,
|
|
3415
3344
|
{
|
|
3416
3345
|
style: {
|
|
@@ -3422,11 +3351,11 @@ var A4Invoice = ({ data }) => {
|
|
|
3422
3351
|
justifyContent: "center"
|
|
3423
3352
|
}
|
|
3424
3353
|
},
|
|
3425
|
-
/* @__PURE__ */
|
|
3354
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: {} }, item.totalPrice)
|
|
3426
3355
|
)
|
|
3427
3356
|
);
|
|
3428
3357
|
})
|
|
3429
|
-
), /* @__PURE__ */
|
|
3358
|
+
), /* @__PURE__ */ React13.createElement(
|
|
3430
3359
|
View12,
|
|
3431
3360
|
{
|
|
3432
3361
|
style: {
|
|
@@ -3436,7 +3365,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3436
3365
|
marginHorizontal: 20
|
|
3437
3366
|
}
|
|
3438
3367
|
},
|
|
3439
|
-
/* @__PURE__ */
|
|
3368
|
+
/* @__PURE__ */ React13.createElement(
|
|
3440
3369
|
View12,
|
|
3441
3370
|
{
|
|
3442
3371
|
style: {
|
|
@@ -3447,7 +3376,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3447
3376
|
fontSize: 11
|
|
3448
3377
|
}
|
|
3449
3378
|
},
|
|
3450
|
-
/* @__PURE__ */
|
|
3379
|
+
/* @__PURE__ */ React13.createElement(
|
|
3451
3380
|
Text_default,
|
|
3452
3381
|
{
|
|
3453
3382
|
style: {
|
|
@@ -3456,9 +3385,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3456
3385
|
},
|
|
3457
3386
|
"Payment Method:"
|
|
3458
3387
|
),
|
|
3459
|
-
/* @__PURE__ */
|
|
3388
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.paymentMethod)
|
|
3460
3389
|
),
|
|
3461
|
-
/* @__PURE__ */
|
|
3390
|
+
/* @__PURE__ */ React13.createElement(
|
|
3462
3391
|
View12,
|
|
3463
3392
|
{
|
|
3464
3393
|
style: {
|
|
@@ -3469,7 +3398,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3469
3398
|
alignItems: "flex-end"
|
|
3470
3399
|
}
|
|
3471
3400
|
},
|
|
3472
|
-
/* @__PURE__ */
|
|
3401
|
+
/* @__PURE__ */ React13.createElement(
|
|
3473
3402
|
View12,
|
|
3474
3403
|
{
|
|
3475
3404
|
style: {
|
|
@@ -3479,7 +3408,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3479
3408
|
fontSize: 10
|
|
3480
3409
|
}
|
|
3481
3410
|
},
|
|
3482
|
-
/* @__PURE__ */
|
|
3411
|
+
/* @__PURE__ */ React13.createElement(
|
|
3483
3412
|
View12,
|
|
3484
3413
|
{
|
|
3485
3414
|
style: {
|
|
@@ -3487,9 +3416,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3487
3416
|
textAlign: "right"
|
|
3488
3417
|
}
|
|
3489
3418
|
},
|
|
3490
|
-
/* @__PURE__ */
|
|
3419
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Subtotal: ")
|
|
3491
3420
|
),
|
|
3492
|
-
/* @__PURE__ */
|
|
3421
|
+
/* @__PURE__ */ React13.createElement(
|
|
3493
3422
|
View12,
|
|
3494
3423
|
{
|
|
3495
3424
|
style: {
|
|
@@ -3497,10 +3426,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3497
3426
|
textAlign: "right"
|
|
3498
3427
|
}
|
|
3499
3428
|
},
|
|
3500
|
-
/* @__PURE__ */
|
|
3429
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.subTotal)
|
|
3501
3430
|
)
|
|
3502
3431
|
),
|
|
3503
|
-
data.postalCharges ? /* @__PURE__ */
|
|
3432
|
+
data.postalCharges ? /* @__PURE__ */ React13.createElement(
|
|
3504
3433
|
View12,
|
|
3505
3434
|
{
|
|
3506
3435
|
style: {
|
|
@@ -3510,7 +3439,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3510
3439
|
fontSize: 10
|
|
3511
3440
|
}
|
|
3512
3441
|
},
|
|
3513
|
-
/* @__PURE__ */
|
|
3442
|
+
/* @__PURE__ */ React13.createElement(
|
|
3514
3443
|
View12,
|
|
3515
3444
|
{
|
|
3516
3445
|
style: {
|
|
@@ -3518,9 +3447,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3518
3447
|
textAlign: "right"
|
|
3519
3448
|
}
|
|
3520
3449
|
},
|
|
3521
|
-
/* @__PURE__ */
|
|
3450
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Postal Charges: ")
|
|
3522
3451
|
),
|
|
3523
|
-
/* @__PURE__ */
|
|
3452
|
+
/* @__PURE__ */ React13.createElement(
|
|
3524
3453
|
View12,
|
|
3525
3454
|
{
|
|
3526
3455
|
style: {
|
|
@@ -3528,10 +3457,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3528
3457
|
textAlign: "right"
|
|
3529
3458
|
}
|
|
3530
3459
|
},
|
|
3531
|
-
/* @__PURE__ */
|
|
3460
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.postalCharges)
|
|
3532
3461
|
)
|
|
3533
3462
|
) : null,
|
|
3534
|
-
/* @__PURE__ */
|
|
3463
|
+
/* @__PURE__ */ React13.createElement(
|
|
3535
3464
|
View12,
|
|
3536
3465
|
{
|
|
3537
3466
|
style: {
|
|
@@ -3541,7 +3470,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3541
3470
|
fontSize: 10
|
|
3542
3471
|
}
|
|
3543
3472
|
},
|
|
3544
|
-
/* @__PURE__ */
|
|
3473
|
+
/* @__PURE__ */ React13.createElement(
|
|
3545
3474
|
View12,
|
|
3546
3475
|
{
|
|
3547
3476
|
style: {
|
|
@@ -3549,9 +3478,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3549
3478
|
textAlign: "right"
|
|
3550
3479
|
}
|
|
3551
3480
|
},
|
|
3552
|
-
/* @__PURE__ */
|
|
3481
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Payment Gateway Charges: ")
|
|
3553
3482
|
),
|
|
3554
|
-
/* @__PURE__ */
|
|
3483
|
+
/* @__PURE__ */ React13.createElement(
|
|
3555
3484
|
View12,
|
|
3556
3485
|
{
|
|
3557
3486
|
style: {
|
|
@@ -3559,10 +3488,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3559
3488
|
textAlign: "right"
|
|
3560
3489
|
}
|
|
3561
3490
|
},
|
|
3562
|
-
/* @__PURE__ */
|
|
3491
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.paymentGatewayCharges)
|
|
3563
3492
|
)
|
|
3564
3493
|
),
|
|
3565
|
-
/* @__PURE__ */
|
|
3494
|
+
/* @__PURE__ */ React13.createElement(
|
|
3566
3495
|
View12,
|
|
3567
3496
|
{
|
|
3568
3497
|
style: {
|
|
@@ -3572,7 +3501,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3572
3501
|
fontSize: 10
|
|
3573
3502
|
}
|
|
3574
3503
|
},
|
|
3575
|
-
/* @__PURE__ */
|
|
3504
|
+
/* @__PURE__ */ React13.createElement(
|
|
3576
3505
|
View12,
|
|
3577
3506
|
{
|
|
3578
3507
|
style: {
|
|
@@ -3580,9 +3509,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3580
3509
|
textAlign: "right"
|
|
3581
3510
|
}
|
|
3582
3511
|
},
|
|
3583
|
-
/* @__PURE__ */
|
|
3512
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Platform Charges: ")
|
|
3584
3513
|
),
|
|
3585
|
-
/* @__PURE__ */
|
|
3514
|
+
/* @__PURE__ */ React13.createElement(
|
|
3586
3515
|
View12,
|
|
3587
3516
|
{
|
|
3588
3517
|
style: {
|
|
@@ -3590,10 +3519,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3590
3519
|
textAlign: "right"
|
|
3591
3520
|
}
|
|
3592
3521
|
},
|
|
3593
|
-
/* @__PURE__ */
|
|
3522
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.platformCharges)
|
|
3594
3523
|
)
|
|
3595
3524
|
),
|
|
3596
|
-
/* @__PURE__ */
|
|
3525
|
+
/* @__PURE__ */ React13.createElement(
|
|
3597
3526
|
View12,
|
|
3598
3527
|
{
|
|
3599
3528
|
style: {
|
|
@@ -3603,7 +3532,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3603
3532
|
fontSize: 10
|
|
3604
3533
|
}
|
|
3605
3534
|
},
|
|
3606
|
-
/* @__PURE__ */
|
|
3535
|
+
/* @__PURE__ */ React13.createElement(
|
|
3607
3536
|
View12,
|
|
3608
3537
|
{
|
|
3609
3538
|
style: {
|
|
@@ -3611,9 +3540,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3611
3540
|
textAlign: "right"
|
|
3612
3541
|
}
|
|
3613
3542
|
},
|
|
3614
|
-
/* @__PURE__ */
|
|
3543
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "GST (18%): ")
|
|
3615
3544
|
),
|
|
3616
|
-
/* @__PURE__ */
|
|
3545
|
+
/* @__PURE__ */ React13.createElement(
|
|
3617
3546
|
View12,
|
|
3618
3547
|
{
|
|
3619
3548
|
style: {
|
|
@@ -3621,10 +3550,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3621
3550
|
textAlign: "right"
|
|
3622
3551
|
}
|
|
3623
3552
|
},
|
|
3624
|
-
/* @__PURE__ */
|
|
3553
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.gst)
|
|
3625
3554
|
)
|
|
3626
3555
|
),
|
|
3627
|
-
/* @__PURE__ */
|
|
3556
|
+
/* @__PURE__ */ React13.createElement(
|
|
3628
3557
|
View12,
|
|
3629
3558
|
{
|
|
3630
3559
|
style: {
|
|
@@ -3635,7 +3564,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3635
3564
|
}
|
|
3636
3565
|
}
|
|
3637
3566
|
),
|
|
3638
|
-
/* @__PURE__ */
|
|
3567
|
+
/* @__PURE__ */ React13.createElement(
|
|
3639
3568
|
View12,
|
|
3640
3569
|
{
|
|
3641
3570
|
style: {
|
|
@@ -3646,7 +3575,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3646
3575
|
fontWeight: "bold"
|
|
3647
3576
|
}
|
|
3648
3577
|
},
|
|
3649
|
-
/* @__PURE__ */
|
|
3578
|
+
/* @__PURE__ */ React13.createElement(
|
|
3650
3579
|
View12,
|
|
3651
3580
|
{
|
|
3652
3581
|
style: {
|
|
@@ -3654,9 +3583,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3654
3583
|
textAlign: "right"
|
|
3655
3584
|
}
|
|
3656
3585
|
},
|
|
3657
|
-
/* @__PURE__ */
|
|
3586
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Total: ")
|
|
3658
3587
|
),
|
|
3659
|
-
/* @__PURE__ */
|
|
3588
|
+
/* @__PURE__ */ React13.createElement(
|
|
3660
3589
|
View12,
|
|
3661
3590
|
{
|
|
3662
3591
|
style: {
|
|
@@ -3664,11 +3593,11 @@ var A4Invoice = ({ data }) => {
|
|
|
3664
3593
|
textAlign: "right"
|
|
3665
3594
|
}
|
|
3666
3595
|
},
|
|
3667
|
-
/* @__PURE__ */
|
|
3596
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.totalAmount)
|
|
3668
3597
|
)
|
|
3669
3598
|
)
|
|
3670
3599
|
)
|
|
3671
|
-
), data.prasads && (data.prasads.morning.length > 0 || data.prasads.afternoon.length > 0 || data.prasads.evening.length > 0) ? /* @__PURE__ */
|
|
3600
|
+
), data.prasads && (data.prasads.morning.length > 0 || data.prasads.afternoon.length > 0 || data.prasads.evening.length > 0) ? /* @__PURE__ */ React13.createElement(
|
|
3672
3601
|
View12,
|
|
3673
3602
|
{
|
|
3674
3603
|
style: {
|
|
@@ -3677,7 +3606,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3677
3606
|
marginBottom: 30
|
|
3678
3607
|
}
|
|
3679
3608
|
},
|
|
3680
|
-
/* @__PURE__ */
|
|
3609
|
+
/* @__PURE__ */ React13.createElement(
|
|
3681
3610
|
View12,
|
|
3682
3611
|
{
|
|
3683
3612
|
style: {
|
|
@@ -3685,9 +3614,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3685
3614
|
padding: 5
|
|
3686
3615
|
}
|
|
3687
3616
|
},
|
|
3688
|
-
/* @__PURE__ */
|
|
3617
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 10, fontWeight: "bold", color: "white" } }, "Prasadsam Details")
|
|
3689
3618
|
),
|
|
3690
|
-
data.prasads.morning.length > 0 ? /* @__PURE__ */
|
|
3619
|
+
data.prasads.morning.length > 0 ? /* @__PURE__ */ React13.createElement(
|
|
3691
3620
|
View12,
|
|
3692
3621
|
{
|
|
3693
3622
|
wrap: false,
|
|
@@ -3701,10 +3630,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3701
3630
|
borderLeft: "1px solid #757575"
|
|
3702
3631
|
}
|
|
3703
3632
|
},
|
|
3704
|
-
/* @__PURE__ */
|
|
3705
|
-
data.prasads.morning.map((prasad, index) => /* @__PURE__ */
|
|
3633
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 9, fontWeight: "bold" } }, "Morning:"),
|
|
3634
|
+
data.prasads.morning.map((prasad, index) => /* @__PURE__ */ React13.createElement(Text_default, { key: index, style: { fontSize: 10 } }, index + 1, ". ", prasad.name, " (", prasad.timings, ")"))
|
|
3706
3635
|
) : null,
|
|
3707
|
-
data.prasads.afternoon.length > 0 ? /* @__PURE__ */
|
|
3636
|
+
data.prasads.afternoon.length > 0 ? /* @__PURE__ */ React13.createElement(
|
|
3708
3637
|
View12,
|
|
3709
3638
|
{
|
|
3710
3639
|
wrap: false,
|
|
@@ -3718,10 +3647,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3718
3647
|
borderLeft: "1px solid #757575"
|
|
3719
3648
|
}
|
|
3720
3649
|
},
|
|
3721
|
-
/* @__PURE__ */
|
|
3722
|
-
data.prasads.afternoon.map((prasad, index) => /* @__PURE__ */
|
|
3650
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 9, fontWeight: "bold" } }, "Afternoon:"),
|
|
3651
|
+
data.prasads.afternoon.map((prasad, index) => /* @__PURE__ */ React13.createElement(Text_default, { key: index, style: { fontSize: 10 } }, index + 1, ". ", prasad.name, " (", prasad.timings, ")"))
|
|
3723
3652
|
) : null,
|
|
3724
|
-
data.prasads.evening.length > 0 ? /* @__PURE__ */
|
|
3653
|
+
data.prasads.evening.length > 0 ? /* @__PURE__ */ React13.createElement(
|
|
3725
3654
|
View12,
|
|
3726
3655
|
{
|
|
3727
3656
|
wrap: false,
|
|
@@ -3735,10 +3664,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3735
3664
|
borderLeft: "1px solid #757575"
|
|
3736
3665
|
}
|
|
3737
3666
|
},
|
|
3738
|
-
/* @__PURE__ */
|
|
3739
|
-
data.prasads.evening.map((prasad, index) => /* @__PURE__ */
|
|
3667
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 9, fontWeight: "bold" } }, "Evening:"),
|
|
3668
|
+
data.prasads.evening.map((prasad, index) => /* @__PURE__ */ React13.createElement(Text_default, { key: index, style: { fontSize: 10 } }, index + 1, ". ", prasad.name, " (", prasad.timings, ")"))
|
|
3740
3669
|
) : null
|
|
3741
|
-
) : null, data.instructions.length > 0 ? /* @__PURE__ */
|
|
3670
|
+
) : null, data.instructions.length > 0 ? /* @__PURE__ */ React13.createElement(
|
|
3742
3671
|
View12,
|
|
3743
3672
|
{
|
|
3744
3673
|
style: {
|
|
@@ -3749,7 +3678,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3749
3678
|
border: "1px solid #757575"
|
|
3750
3679
|
}
|
|
3751
3680
|
},
|
|
3752
|
-
/* @__PURE__ */
|
|
3681
|
+
/* @__PURE__ */ React13.createElement(
|
|
3753
3682
|
View12,
|
|
3754
3683
|
{
|
|
3755
3684
|
style: {
|
|
@@ -3758,9 +3687,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3758
3687
|
paddingVertical: 5
|
|
3759
3688
|
}
|
|
3760
3689
|
},
|
|
3761
|
-
/* @__PURE__ */
|
|
3690
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "IMPORTANT INSTRUCTIONS:")
|
|
3762
3691
|
),
|
|
3763
|
-
/* @__PURE__ */
|
|
3692
|
+
/* @__PURE__ */ React13.createElement(
|
|
3764
3693
|
View12,
|
|
3765
3694
|
{
|
|
3766
3695
|
style: {
|
|
@@ -3771,9 +3700,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3771
3700
|
paddingHorizontal: 10
|
|
3772
3701
|
}
|
|
3773
3702
|
},
|
|
3774
|
-
data.instructions.map((instruction, index) => /* @__PURE__ */
|
|
3703
|
+
data.instructions.map((instruction, index) => /* @__PURE__ */ React13.createElement(Text_default, { key: index, style: { fontSize: 8 } }, index + 1, ") ", instruction.instruction))
|
|
3775
3704
|
)
|
|
3776
|
-
) : null, /* @__PURE__ */
|
|
3705
|
+
) : null, /* @__PURE__ */ React13.createElement(
|
|
3777
3706
|
View12,
|
|
3778
3707
|
{
|
|
3779
3708
|
style: {
|
|
@@ -3782,18 +3711,18 @@ var A4Invoice = ({ data }) => {
|
|
|
3782
3711
|
marginTop: 20
|
|
3783
3712
|
}
|
|
3784
3713
|
},
|
|
3785
|
-
/* @__PURE__ */
|
|
3786
|
-
/* @__PURE__ */
|
|
3714
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 8, fontWeight: "bold" } }, "Terms and Conditions:"),
|
|
3715
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 8, marginLeft: 5 } }, "https://www.bookmypuja.app/terms-and-condition")
|
|
3787
3716
|
)));
|
|
3788
3717
|
};
|
|
3789
3718
|
var A4Invoice_default = A4Invoice;
|
|
3790
3719
|
|
|
3791
3720
|
// src/sizes/a4/A4PostalReport.tsx
|
|
3792
|
-
import { Document as Document14, Image as
|
|
3793
|
-
import
|
|
3721
|
+
import { Document as Document14, Image as Image13, Page as Page14, View as View13 } from "@react-pdf/renderer";
|
|
3722
|
+
import React14 from "react";
|
|
3794
3723
|
var A4PostalReport = ({ date, templeName, data }) => {
|
|
3795
|
-
return /* @__PURE__ */
|
|
3796
|
-
|
|
3724
|
+
return /* @__PURE__ */ React14.createElement(Document14, null, /* @__PURE__ */ React14.createElement(Page14, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React14.createElement(
|
|
3725
|
+
Image13,
|
|
3797
3726
|
{
|
|
3798
3727
|
fixed: true,
|
|
3799
3728
|
style: {
|
|
@@ -3803,7 +3732,7 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3803
3732
|
},
|
|
3804
3733
|
src: bmpLogo
|
|
3805
3734
|
}
|
|
3806
|
-
), /* @__PURE__ */
|
|
3735
|
+
), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Delivery Postal Report"), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), data && data.length > 0 ? /* @__PURE__ */ React14.createElement(
|
|
3807
3736
|
View13,
|
|
3808
3737
|
{
|
|
3809
3738
|
style: {
|
|
@@ -3815,8 +3744,8 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3815
3744
|
flexWrap: "wrap"
|
|
3816
3745
|
}
|
|
3817
3746
|
},
|
|
3818
|
-
data
|
|
3819
|
-
return /* @__PURE__ */
|
|
3747
|
+
data.map((item) => {
|
|
3748
|
+
return /* @__PURE__ */ React14.createElement(
|
|
3820
3749
|
View13,
|
|
3821
3750
|
{
|
|
3822
3751
|
key: item.id,
|
|
@@ -3830,18 +3759,18 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3830
3759
|
padding: 6
|
|
3831
3760
|
}
|
|
3832
3761
|
},
|
|
3833
|
-
/* @__PURE__ */
|
|
3762
|
+
/* @__PURE__ */ React14.createElement(
|
|
3834
3763
|
View13,
|
|
3835
3764
|
{
|
|
3836
3765
|
style: {
|
|
3837
3766
|
flexGrow: 1
|
|
3838
3767
|
}
|
|
3839
3768
|
},
|
|
3840
|
-
/* @__PURE__ */
|
|
3841
|
-
/* @__PURE__ */
|
|
3842
|
-
/* @__PURE__ */
|
|
3769
|
+
/* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 10, fontWeight: "bold" } }, item.name),
|
|
3770
|
+
/* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 10 } }, item.address),
|
|
3771
|
+
/* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 10 } }, item.phone)
|
|
3843
3772
|
),
|
|
3844
|
-
/* @__PURE__ */
|
|
3773
|
+
/* @__PURE__ */ React14.createElement(
|
|
3845
3774
|
View13,
|
|
3846
3775
|
{
|
|
3847
3776
|
style: {
|
|
@@ -3852,23 +3781,33 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3852
3781
|
}
|
|
3853
3782
|
}
|
|
3854
3783
|
),
|
|
3855
|
-
/* @__PURE__ */
|
|
3784
|
+
/* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 9, marginTop: 3 } }, "Note: ", item.pujaDetails)
|
|
3856
3785
|
);
|
|
3857
3786
|
})
|
|
3787
|
+
) : /* @__PURE__ */ React14.createElement(
|
|
3788
|
+
Text_default,
|
|
3789
|
+
{
|
|
3790
|
+
style: {
|
|
3791
|
+
fontSize: 18,
|
|
3792
|
+
textAlign: "center",
|
|
3793
|
+
marginTop: 100
|
|
3794
|
+
}
|
|
3795
|
+
},
|
|
3796
|
+
"No data available for the selected date range"
|
|
3858
3797
|
)));
|
|
3859
3798
|
};
|
|
3860
3799
|
var A4PostalReport_default = A4PostalReport;
|
|
3861
3800
|
|
|
3862
3801
|
// src/sizes/a4/A4PaymentSettlementReport.tsx
|
|
3863
|
-
import { Document as Document15, Image as
|
|
3864
|
-
import
|
|
3802
|
+
import { Document as Document15, Image as Image14, Page as Page15, View as View15 } from "@react-pdf/renderer";
|
|
3803
|
+
import React16 from "react";
|
|
3865
3804
|
|
|
3866
3805
|
// src/components/BrokenText.tsx
|
|
3867
|
-
import
|
|
3806
|
+
import React15 from "react";
|
|
3868
3807
|
import { View as View14 } from "@react-pdf/renderer";
|
|
3869
3808
|
var BrokenText = ({ children }) => {
|
|
3870
3809
|
if (!children || typeof children !== "string") return null;
|
|
3871
|
-
return /* @__PURE__ */
|
|
3810
|
+
return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(
|
|
3872
3811
|
View14,
|
|
3873
3812
|
{
|
|
3874
3813
|
style: {
|
|
@@ -3877,7 +3816,7 @@ var BrokenText = ({ children }) => {
|
|
|
3877
3816
|
flexWrap: "wrap"
|
|
3878
3817
|
}
|
|
3879
3818
|
},
|
|
3880
|
-
children.split("").map((char, charIndex) => /* @__PURE__ */
|
|
3819
|
+
children.split("").map((char, charIndex) => /* @__PURE__ */ React15.createElement(Text_default, { key: charIndex }, char))
|
|
3881
3820
|
));
|
|
3882
3821
|
};
|
|
3883
3822
|
var BrokenText_default = BrokenText;
|
|
@@ -3889,8 +3828,8 @@ var A4PaymentSettlementReport = ({
|
|
|
3889
3828
|
templeName,
|
|
3890
3829
|
data
|
|
3891
3830
|
}) => {
|
|
3892
|
-
return /* @__PURE__ */
|
|
3893
|
-
|
|
3831
|
+
return /* @__PURE__ */ React16.createElement(React16.Fragment, null, /* @__PURE__ */ React16.createElement(Document15, null, /* @__PURE__ */ React16.createElement(Page15, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React16.createElement(
|
|
3832
|
+
Image14,
|
|
3894
3833
|
{
|
|
3895
3834
|
fixed: true,
|
|
3896
3835
|
style: {
|
|
@@ -3900,7 +3839,7 @@ var A4PaymentSettlementReport = ({
|
|
|
3900
3839
|
},
|
|
3901
3840
|
src: bmpLogo
|
|
3902
3841
|
}
|
|
3903
|
-
), /* @__PURE__ */
|
|
3842
|
+
), /* @__PURE__ */ React16.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Dates: ", startDate.toDateString(), " - ", endDate.toDateString()), /* @__PURE__ */ React16.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Payment Settlement Report"), /* @__PURE__ */ React16.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), data.length > 0 ? /* @__PURE__ */ React16.createElement(
|
|
3904
3843
|
View15,
|
|
3905
3844
|
{
|
|
3906
3845
|
style: {
|
|
@@ -3909,7 +3848,7 @@ var A4PaymentSettlementReport = ({
|
|
|
3909
3848
|
marginTop: 20
|
|
3910
3849
|
}
|
|
3911
3850
|
},
|
|
3912
|
-
/* @__PURE__ */
|
|
3851
|
+
/* @__PURE__ */ React16.createElement(
|
|
3913
3852
|
View15,
|
|
3914
3853
|
{
|
|
3915
3854
|
style: {
|
|
@@ -3920,7 +3859,7 @@ var A4PaymentSettlementReport = ({
|
|
|
3920
3859
|
fontWeight: "semibold"
|
|
3921
3860
|
}
|
|
3922
3861
|
},
|
|
3923
|
-
/* @__PURE__ */
|
|
3862
|
+
/* @__PURE__ */ React16.createElement(
|
|
3924
3863
|
View15,
|
|
3925
3864
|
{
|
|
3926
3865
|
style: {
|
|
@@ -3929,9 +3868,9 @@ var A4PaymentSettlementReport = ({
|
|
|
3929
3868
|
width: "10%"
|
|
3930
3869
|
}
|
|
3931
3870
|
},
|
|
3932
|
-
/* @__PURE__ */
|
|
3871
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Sr no")
|
|
3933
3872
|
),
|
|
3934
|
-
/* @__PURE__ */
|
|
3873
|
+
/* @__PURE__ */ React16.createElement(
|
|
3935
3874
|
View15,
|
|
3936
3875
|
{
|
|
3937
3876
|
style: {
|
|
@@ -3940,9 +3879,9 @@ var A4PaymentSettlementReport = ({
|
|
|
3940
3879
|
width: "15%"
|
|
3941
3880
|
}
|
|
3942
3881
|
},
|
|
3943
|
-
/* @__PURE__ */
|
|
3882
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Invoice No")
|
|
3944
3883
|
),
|
|
3945
|
-
/* @__PURE__ */
|
|
3884
|
+
/* @__PURE__ */ React16.createElement(
|
|
3946
3885
|
View15,
|
|
3947
3886
|
{
|
|
3948
3887
|
style: {
|
|
@@ -3951,9 +3890,9 @@ var A4PaymentSettlementReport = ({
|
|
|
3951
3890
|
width: "15%"
|
|
3952
3891
|
}
|
|
3953
3892
|
},
|
|
3954
|
-
/* @__PURE__ */
|
|
3893
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Amount")
|
|
3955
3894
|
),
|
|
3956
|
-
/* @__PURE__ */
|
|
3895
|
+
/* @__PURE__ */ React16.createElement(
|
|
3957
3896
|
View15,
|
|
3958
3897
|
{
|
|
3959
3898
|
style: {
|
|
@@ -3962,9 +3901,9 @@ var A4PaymentSettlementReport = ({
|
|
|
3962
3901
|
width: "20%"
|
|
3963
3902
|
}
|
|
3964
3903
|
},
|
|
3965
|
-
/* @__PURE__ */
|
|
3904
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Payment Date")
|
|
3966
3905
|
),
|
|
3967
|
-
/* @__PURE__ */
|
|
3906
|
+
/* @__PURE__ */ React16.createElement(
|
|
3968
3907
|
View15,
|
|
3969
3908
|
{
|
|
3970
3909
|
style: {
|
|
@@ -3973,9 +3912,9 @@ var A4PaymentSettlementReport = ({
|
|
|
3973
3912
|
width: "20%"
|
|
3974
3913
|
}
|
|
3975
3914
|
},
|
|
3976
|
-
/* @__PURE__ */
|
|
3915
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Settlement Date")
|
|
3977
3916
|
),
|
|
3978
|
-
/* @__PURE__ */
|
|
3917
|
+
/* @__PURE__ */ React16.createElement(
|
|
3979
3918
|
View15,
|
|
3980
3919
|
{
|
|
3981
3920
|
style: {
|
|
@@ -3985,11 +3924,11 @@ var A4PaymentSettlementReport = ({
|
|
|
3985
3924
|
width: "25%"
|
|
3986
3925
|
}
|
|
3987
3926
|
},
|
|
3988
|
-
/* @__PURE__ */
|
|
3927
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Bank UTR No")
|
|
3989
3928
|
)
|
|
3990
3929
|
),
|
|
3991
3930
|
data.map((item, index) => {
|
|
3992
|
-
return /* @__PURE__ */
|
|
3931
|
+
return /* @__PURE__ */ React16.createElement(
|
|
3993
3932
|
View15,
|
|
3994
3933
|
{
|
|
3995
3934
|
style: {
|
|
@@ -4000,7 +3939,7 @@ var A4PaymentSettlementReport = ({
|
|
|
4000
3939
|
fontSize: 10
|
|
4001
3940
|
}
|
|
4002
3941
|
},
|
|
4003
|
-
/* @__PURE__ */
|
|
3942
|
+
/* @__PURE__ */ React16.createElement(
|
|
4004
3943
|
View15,
|
|
4005
3944
|
{
|
|
4006
3945
|
style: {
|
|
@@ -4009,9 +3948,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4009
3948
|
width: "10%"
|
|
4010
3949
|
}
|
|
4011
3950
|
},
|
|
4012
|
-
/* @__PURE__ */
|
|
3951
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, index + 1)
|
|
4013
3952
|
),
|
|
4014
|
-
/* @__PURE__ */
|
|
3953
|
+
/* @__PURE__ */ React16.createElement(
|
|
4015
3954
|
View15,
|
|
4016
3955
|
{
|
|
4017
3956
|
style: {
|
|
@@ -4020,9 +3959,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4020
3959
|
width: "15%"
|
|
4021
3960
|
}
|
|
4022
3961
|
},
|
|
4023
|
-
/* @__PURE__ */
|
|
3962
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.invoiceNo)
|
|
4024
3963
|
),
|
|
4025
|
-
/* @__PURE__ */
|
|
3964
|
+
/* @__PURE__ */ React16.createElement(
|
|
4026
3965
|
View15,
|
|
4027
3966
|
{
|
|
4028
3967
|
style: {
|
|
@@ -4031,9 +3970,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4031
3970
|
width: "15%"
|
|
4032
3971
|
}
|
|
4033
3972
|
},
|
|
4034
|
-
/* @__PURE__ */
|
|
3973
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.amount)
|
|
4035
3974
|
),
|
|
4036
|
-
/* @__PURE__ */
|
|
3975
|
+
/* @__PURE__ */ React16.createElement(
|
|
4037
3976
|
View15,
|
|
4038
3977
|
{
|
|
4039
3978
|
style: {
|
|
@@ -4042,9 +3981,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4042
3981
|
width: "20%"
|
|
4043
3982
|
}
|
|
4044
3983
|
},
|
|
4045
|
-
/* @__PURE__ */
|
|
3984
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.paymentDate)
|
|
4046
3985
|
),
|
|
4047
|
-
/* @__PURE__ */
|
|
3986
|
+
/* @__PURE__ */ React16.createElement(
|
|
4048
3987
|
View15,
|
|
4049
3988
|
{
|
|
4050
3989
|
style: {
|
|
@@ -4053,9 +3992,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4053
3992
|
width: "20%"
|
|
4054
3993
|
}
|
|
4055
3994
|
},
|
|
4056
|
-
/* @__PURE__ */
|
|
3995
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.settlementDate)
|
|
4057
3996
|
),
|
|
4058
|
-
/* @__PURE__ */
|
|
3997
|
+
/* @__PURE__ */ React16.createElement(
|
|
4059
3998
|
View15,
|
|
4060
3999
|
{
|
|
4061
4000
|
style: {
|
|
@@ -4065,25 +4004,35 @@ var A4PaymentSettlementReport = ({
|
|
|
4065
4004
|
width: "25%"
|
|
4066
4005
|
}
|
|
4067
4006
|
},
|
|
4068
|
-
/* @__PURE__ */
|
|
4007
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.bankUtrNo)
|
|
4069
4008
|
)
|
|
4070
4009
|
);
|
|
4071
4010
|
})
|
|
4011
|
+
) : /* @__PURE__ */ React16.createElement(
|
|
4012
|
+
Text_default,
|
|
4013
|
+
{
|
|
4014
|
+
style: {
|
|
4015
|
+
fontSize: 18,
|
|
4016
|
+
textAlign: "center",
|
|
4017
|
+
marginTop: 100
|
|
4018
|
+
}
|
|
4019
|
+
},
|
|
4020
|
+
"No data available for the selected date range"
|
|
4072
4021
|
))));
|
|
4073
4022
|
};
|
|
4074
4023
|
var A4PaymentSettlementReport_default = A4PaymentSettlementReport;
|
|
4075
4024
|
|
|
4076
4025
|
// src/sizes/a4/A4InvoiceLevelBreakup.tsx
|
|
4077
|
-
import { Document as Document16, Image as
|
|
4078
|
-
import
|
|
4026
|
+
import { Document as Document16, Image as Image15, Page as Page16, View as View16 } from "@react-pdf/renderer";
|
|
4027
|
+
import React17 from "react";
|
|
4079
4028
|
var A4InvoiceLevelBreakup = ({
|
|
4080
4029
|
startDate,
|
|
4081
4030
|
endDate,
|
|
4082
4031
|
templeName,
|
|
4083
4032
|
data
|
|
4084
4033
|
}) => {
|
|
4085
|
-
return /* @__PURE__ */
|
|
4086
|
-
|
|
4034
|
+
return /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(Document16, null, /* @__PURE__ */ React17.createElement(Page16, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React17.createElement(
|
|
4035
|
+
Image15,
|
|
4087
4036
|
{
|
|
4088
4037
|
fixed: true,
|
|
4089
4038
|
style: {
|
|
@@ -4093,7 +4042,7 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4093
4042
|
},
|
|
4094
4043
|
src: bmpLogo
|
|
4095
4044
|
}
|
|
4096
|
-
), /* @__PURE__ */
|
|
4045
|
+
), /* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Dates: ", startDate.toDateString(), " - ", endDate.toDateString()), /* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Invoice Level Breakup"), /* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), data.length > 0 ? /* @__PURE__ */ React17.createElement(
|
|
4097
4046
|
View16,
|
|
4098
4047
|
{
|
|
4099
4048
|
style: {
|
|
@@ -4102,7 +4051,7 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4102
4051
|
marginTop: 20
|
|
4103
4052
|
}
|
|
4104
4053
|
},
|
|
4105
|
-
/* @__PURE__ */
|
|
4054
|
+
/* @__PURE__ */ React17.createElement(
|
|
4106
4055
|
View16,
|
|
4107
4056
|
{
|
|
4108
4057
|
style: {
|
|
@@ -4113,7 +4062,7 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4113
4062
|
fontWeight: "semibold"
|
|
4114
4063
|
}
|
|
4115
4064
|
},
|
|
4116
|
-
/* @__PURE__ */
|
|
4065
|
+
/* @__PURE__ */ React17.createElement(
|
|
4117
4066
|
View16,
|
|
4118
4067
|
{
|
|
4119
4068
|
style: {
|
|
@@ -4122,9 +4071,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4122
4071
|
width: "4%"
|
|
4123
4072
|
}
|
|
4124
4073
|
},
|
|
4125
|
-
/* @__PURE__ */
|
|
4074
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Sr no")
|
|
4126
4075
|
),
|
|
4127
|
-
/* @__PURE__ */
|
|
4076
|
+
/* @__PURE__ */ React17.createElement(
|
|
4128
4077
|
View16,
|
|
4129
4078
|
{
|
|
4130
4079
|
style: {
|
|
@@ -4133,9 +4082,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4133
4082
|
width: "9%"
|
|
4134
4083
|
}
|
|
4135
4084
|
},
|
|
4136
|
-
/* @__PURE__ */
|
|
4085
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Invoice Number")
|
|
4137
4086
|
),
|
|
4138
|
-
/* @__PURE__ */
|
|
4087
|
+
/* @__PURE__ */ React17.createElement(
|
|
4139
4088
|
View16,
|
|
4140
4089
|
{
|
|
4141
4090
|
style: {
|
|
@@ -4144,9 +4093,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4144
4093
|
width: "9%"
|
|
4145
4094
|
}
|
|
4146
4095
|
},
|
|
4147
|
-
/* @__PURE__ */
|
|
4096
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Base Amount")
|
|
4148
4097
|
),
|
|
4149
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ React17.createElement(
|
|
4150
4099
|
View16,
|
|
4151
4100
|
{
|
|
4152
4101
|
style: {
|
|
@@ -4155,9 +4104,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4155
4104
|
width: "9%"
|
|
4156
4105
|
}
|
|
4157
4106
|
},
|
|
4158
|
-
/* @__PURE__ */
|
|
4107
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Platform Fees")
|
|
4159
4108
|
),
|
|
4160
|
-
/* @__PURE__ */
|
|
4109
|
+
/* @__PURE__ */ React17.createElement(
|
|
4161
4110
|
View16,
|
|
4162
4111
|
{
|
|
4163
4112
|
style: {
|
|
@@ -4166,9 +4115,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4166
4115
|
width: "9%"
|
|
4167
4116
|
}
|
|
4168
4117
|
},
|
|
4169
|
-
/* @__PURE__ */
|
|
4118
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Platform Fees GST")
|
|
4170
4119
|
),
|
|
4171
|
-
/* @__PURE__ */
|
|
4120
|
+
/* @__PURE__ */ React17.createElement(
|
|
4172
4121
|
View16,
|
|
4173
4122
|
{
|
|
4174
4123
|
style: {
|
|
@@ -4177,9 +4126,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4177
4126
|
width: "9%"
|
|
4178
4127
|
}
|
|
4179
4128
|
},
|
|
4180
|
-
/* @__PURE__ */
|
|
4129
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Gateway Charges")
|
|
4181
4130
|
),
|
|
4182
|
-
/* @__PURE__ */
|
|
4131
|
+
/* @__PURE__ */ React17.createElement(
|
|
4183
4132
|
View16,
|
|
4184
4133
|
{
|
|
4185
4134
|
style: {
|
|
@@ -4188,9 +4137,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4188
4137
|
width: "9%"
|
|
4189
4138
|
}
|
|
4190
4139
|
},
|
|
4191
|
-
/* @__PURE__ */
|
|
4140
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Gateway GST")
|
|
4192
4141
|
),
|
|
4193
|
-
/* @__PURE__ */
|
|
4142
|
+
/* @__PURE__ */ React17.createElement(
|
|
4194
4143
|
View16,
|
|
4195
4144
|
{
|
|
4196
4145
|
style: {
|
|
@@ -4199,9 +4148,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4199
4148
|
width: "9%"
|
|
4200
4149
|
}
|
|
4201
4150
|
},
|
|
4202
|
-
/* @__PURE__ */
|
|
4151
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Payment Mode")
|
|
4203
4152
|
),
|
|
4204
|
-
/* @__PURE__ */
|
|
4153
|
+
/* @__PURE__ */ React17.createElement(
|
|
4205
4154
|
View16,
|
|
4206
4155
|
{
|
|
4207
4156
|
style: {
|
|
@@ -4210,9 +4159,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4210
4159
|
width: "9%"
|
|
4211
4160
|
}
|
|
4212
4161
|
},
|
|
4213
|
-
/* @__PURE__ */
|
|
4162
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Booking Date")
|
|
4214
4163
|
),
|
|
4215
|
-
/* @__PURE__ */
|
|
4164
|
+
/* @__PURE__ */ React17.createElement(
|
|
4216
4165
|
View16,
|
|
4217
4166
|
{
|
|
4218
4167
|
style: {
|
|
@@ -4221,9 +4170,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4221
4170
|
width: "9%"
|
|
4222
4171
|
}
|
|
4223
4172
|
},
|
|
4224
|
-
/* @__PURE__ */
|
|
4173
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Settlement Date")
|
|
4225
4174
|
),
|
|
4226
|
-
/* @__PURE__ */
|
|
4175
|
+
/* @__PURE__ */ React17.createElement(
|
|
4227
4176
|
View16,
|
|
4228
4177
|
{
|
|
4229
4178
|
style: {
|
|
@@ -4232,11 +4181,11 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4232
4181
|
width: "12%"
|
|
4233
4182
|
}
|
|
4234
4183
|
},
|
|
4235
|
-
/* @__PURE__ */
|
|
4184
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "UTR Number")
|
|
4236
4185
|
)
|
|
4237
4186
|
),
|
|
4238
4187
|
data.map((item, index) => {
|
|
4239
|
-
return /* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ React17.createElement(
|
|
4240
4189
|
View16,
|
|
4241
4190
|
{
|
|
4242
4191
|
key: index,
|
|
@@ -4248,7 +4197,7 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4248
4197
|
fontSize: 8
|
|
4249
4198
|
}
|
|
4250
4199
|
},
|
|
4251
|
-
/* @__PURE__ */
|
|
4200
|
+
/* @__PURE__ */ React17.createElement(
|
|
4252
4201
|
View16,
|
|
4253
4202
|
{
|
|
4254
4203
|
style: {
|
|
@@ -4257,9 +4206,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4257
4206
|
width: "4%"
|
|
4258
4207
|
}
|
|
4259
4208
|
},
|
|
4260
|
-
/* @__PURE__ */
|
|
4209
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, index + 1)
|
|
4261
4210
|
),
|
|
4262
|
-
/* @__PURE__ */
|
|
4211
|
+
/* @__PURE__ */ React17.createElement(
|
|
4263
4212
|
View16,
|
|
4264
4213
|
{
|
|
4265
4214
|
style: {
|
|
@@ -4268,9 +4217,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4268
4217
|
width: "9%"
|
|
4269
4218
|
}
|
|
4270
4219
|
},
|
|
4271
|
-
/* @__PURE__ */
|
|
4220
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.invoiceNumber)
|
|
4272
4221
|
),
|
|
4273
|
-
/* @__PURE__ */
|
|
4222
|
+
/* @__PURE__ */ React17.createElement(
|
|
4274
4223
|
View16,
|
|
4275
4224
|
{
|
|
4276
4225
|
style: {
|
|
@@ -4279,9 +4228,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4279
4228
|
width: "9%"
|
|
4280
4229
|
}
|
|
4281
4230
|
},
|
|
4282
|
-
/* @__PURE__ */
|
|
4231
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.baseAmount)
|
|
4283
4232
|
),
|
|
4284
|
-
/* @__PURE__ */
|
|
4233
|
+
/* @__PURE__ */ React17.createElement(
|
|
4285
4234
|
View16,
|
|
4286
4235
|
{
|
|
4287
4236
|
style: {
|
|
@@ -4290,9 +4239,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4290
4239
|
width: "9%"
|
|
4291
4240
|
}
|
|
4292
4241
|
},
|
|
4293
|
-
/* @__PURE__ */
|
|
4242
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.platformFees)
|
|
4294
4243
|
),
|
|
4295
|
-
/* @__PURE__ */
|
|
4244
|
+
/* @__PURE__ */ React17.createElement(
|
|
4296
4245
|
View16,
|
|
4297
4246
|
{
|
|
4298
4247
|
style: {
|
|
@@ -4301,9 +4250,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4301
4250
|
width: "9%"
|
|
4302
4251
|
}
|
|
4303
4252
|
},
|
|
4304
|
-
/* @__PURE__ */
|
|
4253
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.platformFeesGST)
|
|
4305
4254
|
),
|
|
4306
|
-
/* @__PURE__ */
|
|
4255
|
+
/* @__PURE__ */ React17.createElement(
|
|
4307
4256
|
View16,
|
|
4308
4257
|
{
|
|
4309
4258
|
style: {
|
|
@@ -4312,9 +4261,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4312
4261
|
width: "9%"
|
|
4313
4262
|
}
|
|
4314
4263
|
},
|
|
4315
|
-
/* @__PURE__ */
|
|
4264
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.gatewayCharges)
|
|
4316
4265
|
),
|
|
4317
|
-
/* @__PURE__ */
|
|
4266
|
+
/* @__PURE__ */ React17.createElement(
|
|
4318
4267
|
View16,
|
|
4319
4268
|
{
|
|
4320
4269
|
style: {
|
|
@@ -4323,9 +4272,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4323
4272
|
width: "9%"
|
|
4324
4273
|
}
|
|
4325
4274
|
},
|
|
4326
|
-
/* @__PURE__ */
|
|
4275
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.gatewayChargesGST)
|
|
4327
4276
|
),
|
|
4328
|
-
/* @__PURE__ */
|
|
4277
|
+
/* @__PURE__ */ React17.createElement(
|
|
4329
4278
|
View16,
|
|
4330
4279
|
{
|
|
4331
4280
|
style: {
|
|
@@ -4334,9 +4283,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4334
4283
|
width: "9%"
|
|
4335
4284
|
}
|
|
4336
4285
|
},
|
|
4337
|
-
/* @__PURE__ */
|
|
4286
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.paymentMode)
|
|
4338
4287
|
),
|
|
4339
|
-
/* @__PURE__ */
|
|
4288
|
+
/* @__PURE__ */ React17.createElement(
|
|
4340
4289
|
View16,
|
|
4341
4290
|
{
|
|
4342
4291
|
style: {
|
|
@@ -4346,9 +4295,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4346
4295
|
fontSize: 7
|
|
4347
4296
|
}
|
|
4348
4297
|
},
|
|
4349
|
-
/* @__PURE__ */
|
|
4298
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.bookingDate)
|
|
4350
4299
|
),
|
|
4351
|
-
/* @__PURE__ */
|
|
4300
|
+
/* @__PURE__ */ React17.createElement(
|
|
4352
4301
|
View16,
|
|
4353
4302
|
{
|
|
4354
4303
|
style: {
|
|
@@ -4358,26 +4307,36 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4358
4307
|
fontSize: 7
|
|
4359
4308
|
}
|
|
4360
4309
|
},
|
|
4361
|
-
/* @__PURE__ */
|
|
4310
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.settlementDate)
|
|
4362
4311
|
),
|
|
4363
|
-
/* @__PURE__ */
|
|
4312
|
+
/* @__PURE__ */ React17.createElement(View16, { style: { padding: 3, width: "12%" } }, /* @__PURE__ */ React17.createElement(BrokenText_default, null, item.utrNumber))
|
|
4364
4313
|
);
|
|
4365
4314
|
})
|
|
4315
|
+
) : /* @__PURE__ */ React17.createElement(
|
|
4316
|
+
Text_default,
|
|
4317
|
+
{
|
|
4318
|
+
style: {
|
|
4319
|
+
fontSize: 18,
|
|
4320
|
+
textAlign: "center",
|
|
4321
|
+
marginTop: 100
|
|
4322
|
+
}
|
|
4323
|
+
},
|
|
4324
|
+
"No data available for the selected date range"
|
|
4366
4325
|
))));
|
|
4367
4326
|
};
|
|
4368
4327
|
var A4InvoiceLevelBreakup_default = A4InvoiceLevelBreakup;
|
|
4369
4328
|
|
|
4370
4329
|
// src/sizes/a4/A4PujaCountReport.tsx
|
|
4371
|
-
import { Document as Document17, Image as
|
|
4372
|
-
import
|
|
4330
|
+
import { Document as Document17, Image as Image16, Page as Page17, View as View17 } from "@react-pdf/renderer";
|
|
4331
|
+
import React18 from "react";
|
|
4373
4332
|
var A4PujaCountReport = ({
|
|
4374
4333
|
startDate,
|
|
4375
4334
|
endDate,
|
|
4376
4335
|
templeName,
|
|
4377
4336
|
data
|
|
4378
4337
|
}) => {
|
|
4379
|
-
return /* @__PURE__ */
|
|
4380
|
-
|
|
4338
|
+
return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(Document17, null, /* @__PURE__ */ React18.createElement(Page17, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React18.createElement(
|
|
4339
|
+
Image16,
|
|
4381
4340
|
{
|
|
4382
4341
|
fixed: true,
|
|
4383
4342
|
style: {
|
|
@@ -4387,7 +4346,7 @@ var A4PujaCountReport = ({
|
|
|
4387
4346
|
},
|
|
4388
4347
|
src: bmpLogo
|
|
4389
4348
|
}
|
|
4390
|
-
), /* @__PURE__ */
|
|
4349
|
+
), /* @__PURE__ */ React18.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Dates: ", startDate.toDateString(), " - ", endDate.toDateString()), /* @__PURE__ */ React18.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Total Puja Count Report"), /* @__PURE__ */ React18.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), data.length > 0 ? /* @__PURE__ */ React18.createElement(
|
|
4391
4350
|
View17,
|
|
4392
4351
|
{
|
|
4393
4352
|
style: {
|
|
@@ -4396,7 +4355,7 @@ var A4PujaCountReport = ({
|
|
|
4396
4355
|
marginTop: 20
|
|
4397
4356
|
}
|
|
4398
4357
|
},
|
|
4399
|
-
/* @__PURE__ */
|
|
4358
|
+
/* @__PURE__ */ React18.createElement(
|
|
4400
4359
|
View17,
|
|
4401
4360
|
{
|
|
4402
4361
|
style: {
|
|
@@ -4407,7 +4366,7 @@ var A4PujaCountReport = ({
|
|
|
4407
4366
|
fontWeight: "semibold"
|
|
4408
4367
|
}
|
|
4409
4368
|
},
|
|
4410
|
-
/* @__PURE__ */
|
|
4369
|
+
/* @__PURE__ */ React18.createElement(
|
|
4411
4370
|
View17,
|
|
4412
4371
|
{
|
|
4413
4372
|
style: {
|
|
@@ -4416,9 +4375,9 @@ var A4PujaCountReport = ({
|
|
|
4416
4375
|
width: "10%"
|
|
4417
4376
|
}
|
|
4418
4377
|
},
|
|
4419
|
-
/* @__PURE__ */
|
|
4378
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, "Sr no")
|
|
4420
4379
|
),
|
|
4421
|
-
/* @__PURE__ */
|
|
4380
|
+
/* @__PURE__ */ React18.createElement(
|
|
4422
4381
|
View17,
|
|
4423
4382
|
{
|
|
4424
4383
|
style: {
|
|
@@ -4427,9 +4386,9 @@ var A4PujaCountReport = ({
|
|
|
4427
4386
|
width: "40%"
|
|
4428
4387
|
}
|
|
4429
4388
|
},
|
|
4430
|
-
/* @__PURE__ */
|
|
4389
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, "Puja Name")
|
|
4431
4390
|
),
|
|
4432
|
-
/* @__PURE__ */
|
|
4391
|
+
/* @__PURE__ */ React18.createElement(
|
|
4433
4392
|
View17,
|
|
4434
4393
|
{
|
|
4435
4394
|
style: {
|
|
@@ -4438,9 +4397,9 @@ var A4PujaCountReport = ({
|
|
|
4438
4397
|
width: "15%"
|
|
4439
4398
|
}
|
|
4440
4399
|
},
|
|
4441
|
-
/* @__PURE__ */
|
|
4400
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, "Total Count")
|
|
4442
4401
|
),
|
|
4443
|
-
/* @__PURE__ */
|
|
4402
|
+
/* @__PURE__ */ React18.createElement(
|
|
4444
4403
|
View17,
|
|
4445
4404
|
{
|
|
4446
4405
|
style: {
|
|
@@ -4449,11 +4408,11 @@ var A4PujaCountReport = ({
|
|
|
4449
4408
|
width: "35%"
|
|
4450
4409
|
}
|
|
4451
4410
|
},
|
|
4452
|
-
/* @__PURE__ */
|
|
4411
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, "Remarks")
|
|
4453
4412
|
)
|
|
4454
4413
|
),
|
|
4455
4414
|
data.map((item, index) => {
|
|
4456
|
-
return /* @__PURE__ */
|
|
4415
|
+
return /* @__PURE__ */ React18.createElement(
|
|
4457
4416
|
View17,
|
|
4458
4417
|
{
|
|
4459
4418
|
style: {
|
|
@@ -4464,7 +4423,7 @@ var A4PujaCountReport = ({
|
|
|
4464
4423
|
fontSize: 10
|
|
4465
4424
|
}
|
|
4466
4425
|
},
|
|
4467
|
-
/* @__PURE__ */
|
|
4426
|
+
/* @__PURE__ */ React18.createElement(
|
|
4468
4427
|
View17,
|
|
4469
4428
|
{
|
|
4470
4429
|
style: {
|
|
@@ -4473,9 +4432,9 @@ var A4PujaCountReport = ({
|
|
|
4473
4432
|
width: "10%"
|
|
4474
4433
|
}
|
|
4475
4434
|
},
|
|
4476
|
-
/* @__PURE__ */
|
|
4435
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, index + 1)
|
|
4477
4436
|
),
|
|
4478
|
-
/* @__PURE__ */
|
|
4437
|
+
/* @__PURE__ */ React18.createElement(
|
|
4479
4438
|
View17,
|
|
4480
4439
|
{
|
|
4481
4440
|
style: {
|
|
@@ -4484,9 +4443,9 @@ var A4PujaCountReport = ({
|
|
|
4484
4443
|
width: "40%"
|
|
4485
4444
|
}
|
|
4486
4445
|
},
|
|
4487
|
-
/* @__PURE__ */
|
|
4446
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, item.name)
|
|
4488
4447
|
),
|
|
4489
|
-
/* @__PURE__ */
|
|
4448
|
+
/* @__PURE__ */ React18.createElement(
|
|
4490
4449
|
View17,
|
|
4491
4450
|
{
|
|
4492
4451
|
style: {
|
|
@@ -4495,9 +4454,9 @@ var A4PujaCountReport = ({
|
|
|
4495
4454
|
width: "15%"
|
|
4496
4455
|
}
|
|
4497
4456
|
},
|
|
4498
|
-
/* @__PURE__ */
|
|
4457
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, item.quantity)
|
|
4499
4458
|
),
|
|
4500
|
-
/* @__PURE__ */
|
|
4459
|
+
/* @__PURE__ */ React18.createElement(
|
|
4501
4460
|
View17,
|
|
4502
4461
|
{
|
|
4503
4462
|
style: {
|
|
@@ -4509,52 +4468,21 @@ var A4PujaCountReport = ({
|
|
|
4509
4468
|
)
|
|
4510
4469
|
);
|
|
4511
4470
|
})
|
|
4471
|
+
) : /* @__PURE__ */ React18.createElement(
|
|
4472
|
+
Text_default,
|
|
4473
|
+
{
|
|
4474
|
+
style: {
|
|
4475
|
+
fontSize: 18,
|
|
4476
|
+
textAlign: "center",
|
|
4477
|
+
marginTop: 100
|
|
4478
|
+
}
|
|
4479
|
+
},
|
|
4480
|
+
"No data available for the selected date range"
|
|
4512
4481
|
))));
|
|
4513
4482
|
};
|
|
4514
4483
|
var A4PujaCountReport_default = A4PujaCountReport;
|
|
4515
4484
|
|
|
4516
4485
|
// src/index.tsx
|
|
4517
|
-
var getPrintBlob = ({
|
|
4518
|
-
size,
|
|
4519
|
-
data,
|
|
4520
|
-
dates
|
|
4521
|
-
}) => {
|
|
4522
|
-
if (size === "A4") {
|
|
4523
|
-
const blob = pdf(/* @__PURE__ */ React23.createElement(A4Print_default, { data, dates })).toBlob();
|
|
4524
|
-
return blob;
|
|
4525
|
-
} else {
|
|
4526
|
-
const blob = pdf(/* @__PURE__ */ React23.createElement(T2Inch_default, { data, dates })).toBlob();
|
|
4527
|
-
return blob;
|
|
4528
|
-
}
|
|
4529
|
-
};
|
|
4530
|
-
var getA4SummaryBlob = async () => {
|
|
4531
|
-
const blob = await pdf(/* @__PURE__ */ React23.createElement(A4Print_default, { data: [], dates: ["", ""] })).toBlob();
|
|
4532
|
-
return blob;
|
|
4533
|
-
};
|
|
4534
|
-
var printDevoteeReceipt2Inch = async (data) => {
|
|
4535
|
-
const base64DataObject = await getDevoteeReceipt2InchBase64Data(data);
|
|
4536
|
-
var S = "#Intent;scheme=rawbt;";
|
|
4537
|
-
var P = "package=ru.a402d.rawbtprinter;end;";
|
|
4538
|
-
window.location.href = "intent:base64," + base64DataObject + S + P;
|
|
4539
|
-
};
|
|
4540
|
-
var printTotalReceipt2Inch = async (data) => {
|
|
4541
|
-
const base64DataObject = await getTotalReceipt2InchBase64Data(data);
|
|
4542
|
-
var S = "#Intent;scheme=rawbt;";
|
|
4543
|
-
var P = "package=ru.a402d.rawbtprinter;end;";
|
|
4544
|
-
window.location.href = "intent:base64," + base64DataObject + S + P;
|
|
4545
|
-
};
|
|
4546
|
-
var printePujaReport2Inch = async (data) => {
|
|
4547
|
-
const base64DataObject = await getPujaReportReceipt2InchBase64Data(data);
|
|
4548
|
-
var S = "#Intent;scheme=rawbt;";
|
|
4549
|
-
var P = "package=ru.a402d.rawbtprinter;end;";
|
|
4550
|
-
window.location.href = "intent:base64," + base64DataObject + S + P;
|
|
4551
|
-
};
|
|
4552
|
-
var printQuickPrintReceipt2Inch = async (data) => {
|
|
4553
|
-
const base64DataObject = await getQuickReceipt2InchBase64Data(data);
|
|
4554
|
-
var S = "#Intent;scheme=rawbt;";
|
|
4555
|
-
var P = "package=ru.a402d.rawbtprinter;end;";
|
|
4556
|
-
window.location.href = "intent:base64," + base64DataObject + S + P;
|
|
4557
|
-
};
|
|
4558
4486
|
var options = {
|
|
4559
4487
|
kitchen: {
|
|
4560
4488
|
A4: A4KitchenReport_default
|
|
@@ -4811,7 +4739,7 @@ var reportPrinter = class {
|
|
|
4811
4739
|
}
|
|
4812
4740
|
async print(data) {
|
|
4813
4741
|
const ReportComponent = options[this.option][this.size];
|
|
4814
|
-
const document = /* @__PURE__ */
|
|
4742
|
+
const document = /* @__PURE__ */ React19.createElement(ReportComponent, { ...data });
|
|
4815
4743
|
const blob = pdf(document).toBlob();
|
|
4816
4744
|
blob.then((blob2) => {
|
|
4817
4745
|
var blobURL = URL.createObjectURL(blob2);
|
|
@@ -4826,7 +4754,7 @@ var reportPrinter = class {
|
|
|
4826
4754
|
}
|
|
4827
4755
|
async getBlob(data) {
|
|
4828
4756
|
const ReportComponent = options[this.option][this.size];
|
|
4829
|
-
const document = /* @__PURE__ */
|
|
4757
|
+
const document = /* @__PURE__ */ React19.createElement(ReportComponent, { ...data });
|
|
4830
4758
|
const blob = pdf(document).toBlob();
|
|
4831
4759
|
return blob;
|
|
4832
4760
|
}
|
|
@@ -4834,11 +4762,5 @@ var reportPrinter = class {
|
|
|
4834
4762
|
export {
|
|
4835
4763
|
A4Print_default as A4Print,
|
|
4836
4764
|
T2Inch_default as T2Inch,
|
|
4837
|
-
getA4SummaryBlob,
|
|
4838
|
-
getPrintBlob,
|
|
4839
|
-
printDevoteeReceipt2Inch,
|
|
4840
|
-
printQuickPrintReceipt2Inch,
|
|
4841
|
-
printTotalReceipt2Inch,
|
|
4842
|
-
printePujaReport2Inch,
|
|
4843
4765
|
reportPrinter
|
|
4844
4766
|
};
|