@bookmypuja-tech/bmp-pdf 0.3.44 → 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 +601 -807
- 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,11 +650,11 @@ 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
|
})
|
|
816
|
-
) : /* @__PURE__ */
|
|
657
|
+
) : /* @__PURE__ */ React4.createElement(
|
|
817
658
|
Text_default,
|
|
818
659
|
{
|
|
819
660
|
style: {
|
|
@@ -828,8 +669,8 @@ var A4KitchenReport = ({
|
|
|
828
669
|
var A4KitchenReport_default = A4KitchenReport;
|
|
829
670
|
|
|
830
671
|
// src/sizes/a4/A4TransactionReport.tsx
|
|
831
|
-
import { Document as Document5, Image as
|
|
832
|
-
import
|
|
672
|
+
import { Document as Document5, Image as Image4, Page as Page5, View as View4 } from "@react-pdf/renderer";
|
|
673
|
+
import React5 from "react";
|
|
833
674
|
var A4TransactionReport = ({
|
|
834
675
|
date,
|
|
835
676
|
templeName,
|
|
@@ -847,8 +688,8 @@ var A4TransactionReport = ({
|
|
|
847
688
|
}
|
|
848
689
|
return acc + item.creditedAmount;
|
|
849
690
|
}, 0);
|
|
850
|
-
return /* @__PURE__ */
|
|
851
|
-
|
|
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,
|
|
852
693
|
{
|
|
853
694
|
fixed: true,
|
|
854
695
|
style: {
|
|
@@ -858,15 +699,15 @@ var A4TransactionReport = ({
|
|
|
858
699
|
},
|
|
859
700
|
src: bmpLogo
|
|
860
701
|
}
|
|
861
|
-
), /* @__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", {
|
|
862
703
|
maximumFractionDigits: 2,
|
|
863
704
|
style: "currency",
|
|
864
705
|
currency: "INR"
|
|
865
|
-
})), /* @__PURE__ */
|
|
706
|
+
})), /* @__PURE__ */ React5.createElement(Text_default, { style: { fontSize: 10 } }, "Total Credited Amount: ", totalCreditedAmount.toLocaleString("en-IN", {
|
|
866
707
|
maximumFractionDigits: 2,
|
|
867
708
|
style: "currency",
|
|
868
709
|
currency: "INR"
|
|
869
|
-
})), /* @__PURE__ */
|
|
710
|
+
})), /* @__PURE__ */ React5.createElement(
|
|
870
711
|
View4,
|
|
871
712
|
{
|
|
872
713
|
style: {
|
|
@@ -875,7 +716,7 @@ var A4TransactionReport = ({
|
|
|
875
716
|
marginTop: 20
|
|
876
717
|
}
|
|
877
718
|
},
|
|
878
|
-
/* @__PURE__ */
|
|
719
|
+
/* @__PURE__ */ React5.createElement(
|
|
879
720
|
View4,
|
|
880
721
|
{
|
|
881
722
|
style: {
|
|
@@ -886,7 +727,7 @@ var A4TransactionReport = ({
|
|
|
886
727
|
fontSize: 10
|
|
887
728
|
}
|
|
888
729
|
},
|
|
889
|
-
/* @__PURE__ */
|
|
730
|
+
/* @__PURE__ */ React5.createElement(
|
|
890
731
|
View4,
|
|
891
732
|
{
|
|
892
733
|
style: {
|
|
@@ -895,9 +736,9 @@ var A4TransactionReport = ({
|
|
|
895
736
|
width: "8%"
|
|
896
737
|
}
|
|
897
738
|
},
|
|
898
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Sr no")
|
|
899
740
|
),
|
|
900
|
-
/* @__PURE__ */
|
|
741
|
+
/* @__PURE__ */ React5.createElement(
|
|
901
742
|
View4,
|
|
902
743
|
{
|
|
903
744
|
style: {
|
|
@@ -906,9 +747,9 @@ var A4TransactionReport = ({
|
|
|
906
747
|
width: "23%"
|
|
907
748
|
}
|
|
908
749
|
},
|
|
909
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Date")
|
|
910
751
|
),
|
|
911
|
-
/* @__PURE__ */
|
|
752
|
+
/* @__PURE__ */ React5.createElement(
|
|
912
753
|
View4,
|
|
913
754
|
{
|
|
914
755
|
style: {
|
|
@@ -917,9 +758,9 @@ var A4TransactionReport = ({
|
|
|
917
758
|
width: "19%"
|
|
918
759
|
}
|
|
919
760
|
},
|
|
920
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Invoice")
|
|
921
762
|
),
|
|
922
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ React5.createElement(
|
|
923
764
|
View4,
|
|
924
765
|
{
|
|
925
766
|
style: {
|
|
@@ -928,9 +769,9 @@ var A4TransactionReport = ({
|
|
|
928
769
|
width: "15%"
|
|
929
770
|
}
|
|
930
771
|
},
|
|
931
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Booking Amt")
|
|
932
773
|
),
|
|
933
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ React5.createElement(
|
|
934
775
|
View4,
|
|
935
776
|
{
|
|
936
777
|
style: {
|
|
@@ -939,9 +780,9 @@ var A4TransactionReport = ({
|
|
|
939
780
|
borderRight: "1px solid black"
|
|
940
781
|
}
|
|
941
782
|
},
|
|
942
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Credited Amt")
|
|
943
784
|
),
|
|
944
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ React5.createElement(
|
|
945
786
|
View4,
|
|
946
787
|
{
|
|
947
788
|
style: {
|
|
@@ -949,11 +790,11 @@ var A4TransactionReport = ({
|
|
|
949
790
|
width: "20%"
|
|
950
791
|
}
|
|
951
792
|
},
|
|
952
|
-
/* @__PURE__ */
|
|
793
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, "Transaction ID")
|
|
953
794
|
)
|
|
954
795
|
),
|
|
955
796
|
data.map((item, index) => {
|
|
956
|
-
return /* @__PURE__ */
|
|
797
|
+
return /* @__PURE__ */ React5.createElement(
|
|
957
798
|
View4,
|
|
958
799
|
{
|
|
959
800
|
style: {
|
|
@@ -964,7 +805,7 @@ var A4TransactionReport = ({
|
|
|
964
805
|
fontSize: 10
|
|
965
806
|
}
|
|
966
807
|
},
|
|
967
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ React5.createElement(
|
|
968
809
|
View4,
|
|
969
810
|
{
|
|
970
811
|
style: {
|
|
@@ -973,9 +814,9 @@ var A4TransactionReport = ({
|
|
|
973
814
|
width: "8%"
|
|
974
815
|
}
|
|
975
816
|
},
|
|
976
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, index + 1)
|
|
977
818
|
),
|
|
978
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ React5.createElement(
|
|
979
820
|
View4,
|
|
980
821
|
{
|
|
981
822
|
style: {
|
|
@@ -984,9 +825,9 @@ var A4TransactionReport = ({
|
|
|
984
825
|
width: "23%"
|
|
985
826
|
}
|
|
986
827
|
},
|
|
987
|
-
/* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.date, " ", item.time)
|
|
988
829
|
),
|
|
989
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ React5.createElement(
|
|
990
831
|
View4,
|
|
991
832
|
{
|
|
992
833
|
style: {
|
|
@@ -995,9 +836,9 @@ var A4TransactionReport = ({
|
|
|
995
836
|
width: "19%"
|
|
996
837
|
}
|
|
997
838
|
},
|
|
998
|
-
/* @__PURE__ */
|
|
839
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.invoiceNumber)
|
|
999
840
|
),
|
|
1000
|
-
item.status == "cancelled" ? /* @__PURE__ */
|
|
841
|
+
item.status == "cancelled" ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
|
|
1001
842
|
View4,
|
|
1002
843
|
{
|
|
1003
844
|
style: {
|
|
@@ -1005,7 +846,7 @@ var A4TransactionReport = ({
|
|
|
1005
846
|
width: "50%"
|
|
1006
847
|
}
|
|
1007
848
|
},
|
|
1008
|
-
/* @__PURE__ */
|
|
849
|
+
/* @__PURE__ */ React5.createElement(
|
|
1009
850
|
Text_default,
|
|
1010
851
|
{
|
|
1011
852
|
style: {
|
|
@@ -1014,7 +855,7 @@ var A4TransactionReport = ({
|
|
|
1014
855
|
},
|
|
1015
856
|
"CANCELLED"
|
|
1016
857
|
)
|
|
1017
|
-
)) : /* @__PURE__ */
|
|
858
|
+
)) : /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
|
|
1018
859
|
View4,
|
|
1019
860
|
{
|
|
1020
861
|
style: {
|
|
@@ -1023,12 +864,12 @@ var A4TransactionReport = ({
|
|
|
1023
864
|
width: "15%"
|
|
1024
865
|
}
|
|
1025
866
|
},
|
|
1026
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.bookingAmount.toLocaleString("en-IN", {
|
|
1027
868
|
maximumFractionDigits: 2,
|
|
1028
869
|
style: "currency",
|
|
1029
870
|
currency: "INR"
|
|
1030
871
|
}))
|
|
1031
|
-
), /* @__PURE__ */
|
|
872
|
+
), /* @__PURE__ */ React5.createElement(
|
|
1032
873
|
View4,
|
|
1033
874
|
{
|
|
1034
875
|
style: {
|
|
@@ -1037,12 +878,12 @@ var A4TransactionReport = ({
|
|
|
1037
878
|
borderRight: "1px solid black"
|
|
1038
879
|
}
|
|
1039
880
|
},
|
|
1040
|
-
/* @__PURE__ */
|
|
881
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.creditedAmount.toLocaleString("en-IN", {
|
|
1041
882
|
maximumFractionDigits: 2,
|
|
1042
883
|
style: "currency",
|
|
1043
884
|
currency: "INR"
|
|
1044
885
|
}))
|
|
1045
|
-
), /* @__PURE__ */
|
|
886
|
+
), /* @__PURE__ */ React5.createElement(
|
|
1046
887
|
View4,
|
|
1047
888
|
{
|
|
1048
889
|
style: {
|
|
@@ -1050,11 +891,11 @@ var A4TransactionReport = ({
|
|
|
1050
891
|
width: "20%"
|
|
1051
892
|
}
|
|
1052
893
|
},
|
|
1053
|
-
/* @__PURE__ */
|
|
894
|
+
/* @__PURE__ */ React5.createElement(Text_default, null, item.transactionId)
|
|
1054
895
|
))
|
|
1055
896
|
);
|
|
1056
897
|
})
|
|
1057
|
-
)) : /* @__PURE__ */
|
|
898
|
+
)) : /* @__PURE__ */ React5.createElement(
|
|
1058
899
|
Text_default,
|
|
1059
900
|
{
|
|
1060
901
|
style: {
|
|
@@ -1069,8 +910,8 @@ var A4TransactionReport = ({
|
|
|
1069
910
|
var A4TransactionReport_default = A4TransactionReport;
|
|
1070
911
|
|
|
1071
912
|
// src/sizes/a4/A4PrasadDelivery.tsx
|
|
1072
|
-
import { Document as Document6, Image as
|
|
1073
|
-
import
|
|
913
|
+
import { Document as Document6, Image as Image5, Page as Page6, View as View5 } from "@react-pdf/renderer";
|
|
914
|
+
import React6 from "react";
|
|
1074
915
|
var A4PrasadDelivery = ({
|
|
1075
916
|
date,
|
|
1076
917
|
templeName,
|
|
@@ -1090,8 +931,8 @@ var A4PrasadDelivery = ({
|
|
|
1090
931
|
address
|
|
1091
932
|
};
|
|
1092
933
|
});
|
|
1093
|
-
return /* @__PURE__ */
|
|
1094
|
-
|
|
934
|
+
return /* @__PURE__ */ React6.createElement(Document6, null, /* @__PURE__ */ React6.createElement(Page6, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React6.createElement(
|
|
935
|
+
Image5,
|
|
1095
936
|
{
|
|
1096
937
|
fixed: true,
|
|
1097
938
|
style: {
|
|
@@ -1101,7 +942,7 @@ var A4PrasadDelivery = ({
|
|
|
1101
942
|
},
|
|
1102
943
|
src: bmpLogo
|
|
1103
944
|
}
|
|
1104
|
-
), /* @__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(
|
|
1105
946
|
View5,
|
|
1106
947
|
{
|
|
1107
948
|
style: {
|
|
@@ -1110,7 +951,7 @@ var A4PrasadDelivery = ({
|
|
|
1110
951
|
marginTop: 20
|
|
1111
952
|
}
|
|
1112
953
|
},
|
|
1113
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ React6.createElement(
|
|
1114
955
|
View5,
|
|
1115
956
|
{
|
|
1116
957
|
style: {
|
|
@@ -1121,7 +962,7 @@ var A4PrasadDelivery = ({
|
|
|
1121
962
|
fontSize: 10
|
|
1122
963
|
}
|
|
1123
964
|
},
|
|
1124
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ React6.createElement(
|
|
1125
966
|
View5,
|
|
1126
967
|
{
|
|
1127
968
|
style: {
|
|
@@ -1130,9 +971,9 @@ var A4PrasadDelivery = ({
|
|
|
1130
971
|
width: "10%"
|
|
1131
972
|
}
|
|
1132
973
|
},
|
|
1133
|
-
/* @__PURE__ */
|
|
974
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Date")
|
|
1134
975
|
),
|
|
1135
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ React6.createElement(
|
|
1136
977
|
View5,
|
|
1137
978
|
{
|
|
1138
979
|
style: {
|
|
@@ -1141,9 +982,9 @@ var A4PrasadDelivery = ({
|
|
|
1141
982
|
width: "13%"
|
|
1142
983
|
}
|
|
1143
984
|
},
|
|
1144
|
-
/* @__PURE__ */
|
|
985
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Invoice")
|
|
1145
986
|
),
|
|
1146
|
-
/* @__PURE__ */
|
|
987
|
+
/* @__PURE__ */ React6.createElement(
|
|
1147
988
|
View5,
|
|
1148
989
|
{
|
|
1149
990
|
style: {
|
|
@@ -1152,9 +993,9 @@ var A4PrasadDelivery = ({
|
|
|
1152
993
|
width: "18%"
|
|
1153
994
|
}
|
|
1154
995
|
},
|
|
1155
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Devotee Name")
|
|
1156
997
|
),
|
|
1157
|
-
/* @__PURE__ */
|
|
998
|
+
/* @__PURE__ */ React6.createElement(
|
|
1158
999
|
View5,
|
|
1159
1000
|
{
|
|
1160
1001
|
style: {
|
|
@@ -1163,9 +1004,9 @@ var A4PrasadDelivery = ({
|
|
|
1163
1004
|
width: "25%"
|
|
1164
1005
|
}
|
|
1165
1006
|
},
|
|
1166
|
-
/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Address")
|
|
1167
1008
|
),
|
|
1168
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ React6.createElement(
|
|
1169
1010
|
View5,
|
|
1170
1011
|
{
|
|
1171
1012
|
style: {
|
|
@@ -1174,9 +1015,9 @@ var A4PrasadDelivery = ({
|
|
|
1174
1015
|
width: "20%"
|
|
1175
1016
|
}
|
|
1176
1017
|
},
|
|
1177
|
-
/* @__PURE__ */
|
|
1018
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Puja Name")
|
|
1178
1019
|
),
|
|
1179
|
-
/* @__PURE__ */
|
|
1020
|
+
/* @__PURE__ */ React6.createElement(
|
|
1180
1021
|
View5,
|
|
1181
1022
|
{
|
|
1182
1023
|
style: {
|
|
@@ -1184,11 +1025,11 @@ var A4PrasadDelivery = ({
|
|
|
1184
1025
|
width: "15%"
|
|
1185
1026
|
}
|
|
1186
1027
|
},
|
|
1187
|
-
/* @__PURE__ */
|
|
1028
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, "Amount")
|
|
1188
1029
|
)
|
|
1189
1030
|
),
|
|
1190
1031
|
data.map((item, index) => {
|
|
1191
|
-
return /* @__PURE__ */
|
|
1032
|
+
return /* @__PURE__ */ React6.createElement(
|
|
1192
1033
|
View5,
|
|
1193
1034
|
{
|
|
1194
1035
|
style: {
|
|
@@ -1199,7 +1040,7 @@ var A4PrasadDelivery = ({
|
|
|
1199
1040
|
fontSize: 10
|
|
1200
1041
|
}
|
|
1201
1042
|
},
|
|
1202
|
-
/* @__PURE__ */
|
|
1043
|
+
/* @__PURE__ */ React6.createElement(
|
|
1203
1044
|
View5,
|
|
1204
1045
|
{
|
|
1205
1046
|
style: {
|
|
@@ -1208,13 +1049,13 @@ var A4PrasadDelivery = ({
|
|
|
1208
1049
|
width: "10%"
|
|
1209
1050
|
}
|
|
1210
1051
|
},
|
|
1211
|
-
/* @__PURE__ */
|
|
1052
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, new Date(item.date).toLocaleDateString("en-GB", {
|
|
1212
1053
|
day: "2-digit",
|
|
1213
1054
|
month: "2-digit",
|
|
1214
1055
|
year: "2-digit"
|
|
1215
1056
|
}))
|
|
1216
1057
|
),
|
|
1217
|
-
/* @__PURE__ */
|
|
1058
|
+
/* @__PURE__ */ React6.createElement(
|
|
1218
1059
|
View5,
|
|
1219
1060
|
{
|
|
1220
1061
|
style: {
|
|
@@ -1223,9 +1064,9 @@ var A4PrasadDelivery = ({
|
|
|
1223
1064
|
width: "13%"
|
|
1224
1065
|
}
|
|
1225
1066
|
},
|
|
1226
|
-
/* @__PURE__ */
|
|
1067
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.invoiceNumber)
|
|
1227
1068
|
),
|
|
1228
|
-
/* @__PURE__ */
|
|
1069
|
+
/* @__PURE__ */ React6.createElement(
|
|
1229
1070
|
View5,
|
|
1230
1071
|
{
|
|
1231
1072
|
style: {
|
|
@@ -1234,9 +1075,9 @@ var A4PrasadDelivery = ({
|
|
|
1234
1075
|
width: "18%"
|
|
1235
1076
|
}
|
|
1236
1077
|
},
|
|
1237
|
-
/* @__PURE__ */
|
|
1078
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.devoteeName)
|
|
1238
1079
|
),
|
|
1239
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ React6.createElement(
|
|
1240
1081
|
View5,
|
|
1241
1082
|
{
|
|
1242
1083
|
style: {
|
|
@@ -1245,9 +1086,9 @@ var A4PrasadDelivery = ({
|
|
|
1245
1086
|
width: "25%"
|
|
1246
1087
|
}
|
|
1247
1088
|
},
|
|
1248
|
-
/* @__PURE__ */
|
|
1089
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.address)
|
|
1249
1090
|
),
|
|
1250
|
-
/* @__PURE__ */
|
|
1091
|
+
/* @__PURE__ */ React6.createElement(
|
|
1251
1092
|
View5,
|
|
1252
1093
|
{
|
|
1253
1094
|
style: {
|
|
@@ -1256,9 +1097,9 @@ var A4PrasadDelivery = ({
|
|
|
1256
1097
|
width: "20%"
|
|
1257
1098
|
}
|
|
1258
1099
|
},
|
|
1259
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.pujaName)
|
|
1260
1101
|
),
|
|
1261
|
-
/* @__PURE__ */
|
|
1102
|
+
/* @__PURE__ */ React6.createElement(
|
|
1262
1103
|
View5,
|
|
1263
1104
|
{
|
|
1264
1105
|
style: {
|
|
@@ -1266,7 +1107,7 @@ var A4PrasadDelivery = ({
|
|
|
1266
1107
|
width: "15%"
|
|
1267
1108
|
}
|
|
1268
1109
|
},
|
|
1269
|
-
/* @__PURE__ */
|
|
1110
|
+
/* @__PURE__ */ React6.createElement(Text_default, null, item.amount.toLocaleString("en-IN", {
|
|
1270
1111
|
maximumFractionDigits: 2,
|
|
1271
1112
|
style: "currency",
|
|
1272
1113
|
currency: "INR"
|
|
@@ -1274,7 +1115,7 @@ var A4PrasadDelivery = ({
|
|
|
1274
1115
|
)
|
|
1275
1116
|
);
|
|
1276
1117
|
})
|
|
1277
|
-
) : /* @__PURE__ */
|
|
1118
|
+
) : /* @__PURE__ */ React6.createElement(
|
|
1278
1119
|
Text_default,
|
|
1279
1120
|
{
|
|
1280
1121
|
style: {
|
|
@@ -1289,8 +1130,8 @@ var A4PrasadDelivery = ({
|
|
|
1289
1130
|
var A4PrasadDelivery_default = A4PrasadDelivery;
|
|
1290
1131
|
|
|
1291
1132
|
// src/sizes/a4/A4PrasadReport.tsx
|
|
1292
|
-
import { Document as Document7, Image as
|
|
1293
|
-
import
|
|
1133
|
+
import { Document as Document7, Image as Image6, Page as Page7, View as View6 } from "@react-pdf/renderer";
|
|
1134
|
+
import React7 from "react";
|
|
1294
1135
|
var A4PrasadReport = ({
|
|
1295
1136
|
date,
|
|
1296
1137
|
templeName,
|
|
@@ -1300,8 +1141,8 @@ var A4PrasadReport = ({
|
|
|
1300
1141
|
const sortedPrasadItems = data.sort((a, b) => {
|
|
1301
1142
|
return a.invoiceNumber.localeCompare(b.invoiceNumber);
|
|
1302
1143
|
});
|
|
1303
|
-
return /* @__PURE__ */
|
|
1304
|
-
|
|
1144
|
+
return /* @__PURE__ */ React7.createElement(Document7, null, /* @__PURE__ */ React7.createElement(Page7, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React7.createElement(
|
|
1145
|
+
Image6,
|
|
1305
1146
|
{
|
|
1306
1147
|
fixed: true,
|
|
1307
1148
|
style: {
|
|
@@ -1311,7 +1152,7 @@ var A4PrasadReport = ({
|
|
|
1311
1152
|
},
|
|
1312
1153
|
src: bmpLogo
|
|
1313
1154
|
}
|
|
1314
|
-
), /* @__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(
|
|
1315
1156
|
View6,
|
|
1316
1157
|
{
|
|
1317
1158
|
style: {
|
|
@@ -1320,7 +1161,7 @@ var A4PrasadReport = ({
|
|
|
1320
1161
|
marginTop: 20
|
|
1321
1162
|
}
|
|
1322
1163
|
},
|
|
1323
|
-
/* @__PURE__ */
|
|
1164
|
+
/* @__PURE__ */ React7.createElement(
|
|
1324
1165
|
View6,
|
|
1325
1166
|
{
|
|
1326
1167
|
style: {
|
|
@@ -1331,7 +1172,7 @@ var A4PrasadReport = ({
|
|
|
1331
1172
|
fontSize: 10
|
|
1332
1173
|
}
|
|
1333
1174
|
},
|
|
1334
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ React7.createElement(
|
|
1335
1176
|
View6,
|
|
1336
1177
|
{
|
|
1337
1178
|
style: {
|
|
@@ -1340,9 +1181,9 @@ var A4PrasadReport = ({
|
|
|
1340
1181
|
width: "10%"
|
|
1341
1182
|
}
|
|
1342
1183
|
},
|
|
1343
|
-
/* @__PURE__ */
|
|
1184
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Sr no")
|
|
1344
1185
|
),
|
|
1345
|
-
/* @__PURE__ */
|
|
1186
|
+
/* @__PURE__ */ React7.createElement(
|
|
1346
1187
|
View6,
|
|
1347
1188
|
{
|
|
1348
1189
|
style: {
|
|
@@ -1351,9 +1192,9 @@ var A4PrasadReport = ({
|
|
|
1351
1192
|
width: "20%"
|
|
1352
1193
|
}
|
|
1353
1194
|
},
|
|
1354
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Invoice Number")
|
|
1355
1196
|
),
|
|
1356
|
-
/* @__PURE__ */
|
|
1197
|
+
/* @__PURE__ */ React7.createElement(
|
|
1357
1198
|
View6,
|
|
1358
1199
|
{
|
|
1359
1200
|
style: {
|
|
@@ -1362,9 +1203,9 @@ var A4PrasadReport = ({
|
|
|
1362
1203
|
width: "23%"
|
|
1363
1204
|
}
|
|
1364
1205
|
},
|
|
1365
|
-
/* @__PURE__ */
|
|
1206
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Devotee Name")
|
|
1366
1207
|
),
|
|
1367
|
-
/* @__PURE__ */
|
|
1208
|
+
/* @__PURE__ */ React7.createElement(
|
|
1368
1209
|
View6,
|
|
1369
1210
|
{
|
|
1370
1211
|
style: {
|
|
@@ -1373,9 +1214,9 @@ var A4PrasadReport = ({
|
|
|
1373
1214
|
width: "30%"
|
|
1374
1215
|
}
|
|
1375
1216
|
},
|
|
1376
|
-
/* @__PURE__ */
|
|
1217
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Prasad Name")
|
|
1377
1218
|
),
|
|
1378
|
-
/* @__PURE__ */
|
|
1219
|
+
/* @__PURE__ */ React7.createElement(
|
|
1379
1220
|
View6,
|
|
1380
1221
|
{
|
|
1381
1222
|
style: {
|
|
@@ -1384,9 +1225,9 @@ var A4PrasadReport = ({
|
|
|
1384
1225
|
borderRight: "1px solid black"
|
|
1385
1226
|
}
|
|
1386
1227
|
},
|
|
1387
|
-
/* @__PURE__ */
|
|
1228
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Qty")
|
|
1388
1229
|
),
|
|
1389
|
-
/* @__PURE__ */
|
|
1230
|
+
/* @__PURE__ */ React7.createElement(
|
|
1390
1231
|
View6,
|
|
1391
1232
|
{
|
|
1392
1233
|
style: {
|
|
@@ -1394,11 +1235,11 @@ var A4PrasadReport = ({
|
|
|
1394
1235
|
width: "7%"
|
|
1395
1236
|
}
|
|
1396
1237
|
},
|
|
1397
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, "Mode")
|
|
1398
1239
|
)
|
|
1399
1240
|
),
|
|
1400
1241
|
data.map((item, index) => {
|
|
1401
|
-
return /* @__PURE__ */
|
|
1242
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1402
1243
|
View6,
|
|
1403
1244
|
{
|
|
1404
1245
|
style: {
|
|
@@ -1409,7 +1250,7 @@ var A4PrasadReport = ({
|
|
|
1409
1250
|
fontSize: 10
|
|
1410
1251
|
}
|
|
1411
1252
|
},
|
|
1412
|
-
/* @__PURE__ */
|
|
1253
|
+
/* @__PURE__ */ React7.createElement(
|
|
1413
1254
|
View6,
|
|
1414
1255
|
{
|
|
1415
1256
|
style: {
|
|
@@ -1418,9 +1259,9 @@ var A4PrasadReport = ({
|
|
|
1418
1259
|
width: "10%"
|
|
1419
1260
|
}
|
|
1420
1261
|
},
|
|
1421
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, index + 1)
|
|
1422
1263
|
),
|
|
1423
|
-
/* @__PURE__ */
|
|
1264
|
+
/* @__PURE__ */ React7.createElement(
|
|
1424
1265
|
View6,
|
|
1425
1266
|
{
|
|
1426
1267
|
style: {
|
|
@@ -1429,9 +1270,9 @@ var A4PrasadReport = ({
|
|
|
1429
1270
|
width: "20%"
|
|
1430
1271
|
}
|
|
1431
1272
|
},
|
|
1432
|
-
/* @__PURE__ */
|
|
1273
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.invoiceNumber)
|
|
1433
1274
|
),
|
|
1434
|
-
/* @__PURE__ */
|
|
1275
|
+
/* @__PURE__ */ React7.createElement(
|
|
1435
1276
|
View6,
|
|
1436
1277
|
{
|
|
1437
1278
|
style: {
|
|
@@ -1442,9 +1283,9 @@ var A4PrasadReport = ({
|
|
|
1442
1283
|
flexWrap: "wrap"
|
|
1443
1284
|
}
|
|
1444
1285
|
},
|
|
1445
|
-
/* @__PURE__ */
|
|
1286
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.devoteeName)
|
|
1446
1287
|
),
|
|
1447
|
-
/* @__PURE__ */
|
|
1288
|
+
/* @__PURE__ */ React7.createElement(
|
|
1448
1289
|
View6,
|
|
1449
1290
|
{
|
|
1450
1291
|
style: {
|
|
@@ -1453,9 +1294,9 @@ var A4PrasadReport = ({
|
|
|
1453
1294
|
width: "30%"
|
|
1454
1295
|
}
|
|
1455
1296
|
},
|
|
1456
|
-
/* @__PURE__ */
|
|
1297
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.prasadName)
|
|
1457
1298
|
),
|
|
1458
|
-
/* @__PURE__ */
|
|
1299
|
+
/* @__PURE__ */ React7.createElement(
|
|
1459
1300
|
View6,
|
|
1460
1301
|
{
|
|
1461
1302
|
style: {
|
|
@@ -1464,9 +1305,9 @@ var A4PrasadReport = ({
|
|
|
1464
1305
|
borderRight: "1px solid black"
|
|
1465
1306
|
}
|
|
1466
1307
|
},
|
|
1467
|
-
/* @__PURE__ */
|
|
1308
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.quantity)
|
|
1468
1309
|
),
|
|
1469
|
-
/* @__PURE__ */
|
|
1310
|
+
/* @__PURE__ */ React7.createElement(
|
|
1470
1311
|
View6,
|
|
1471
1312
|
{
|
|
1472
1313
|
style: {
|
|
@@ -1474,11 +1315,11 @@ var A4PrasadReport = ({
|
|
|
1474
1315
|
width: "7%"
|
|
1475
1316
|
}
|
|
1476
1317
|
},
|
|
1477
|
-
/* @__PURE__ */
|
|
1318
|
+
/* @__PURE__ */ React7.createElement(Text_default, null, item.collectionMode)
|
|
1478
1319
|
)
|
|
1479
1320
|
);
|
|
1480
1321
|
})
|
|
1481
|
-
) : /* @__PURE__ */
|
|
1322
|
+
) : /* @__PURE__ */ React7.createElement(
|
|
1482
1323
|
Text_default,
|
|
1483
1324
|
{
|
|
1484
1325
|
style: {
|
|
@@ -1493,8 +1334,8 @@ var A4PrasadReport = ({
|
|
|
1493
1334
|
var A4PrasadReport_default = A4PrasadReport;
|
|
1494
1335
|
|
|
1495
1336
|
// src/sizes/a4/A4PujaList.tsx
|
|
1496
|
-
import { Document as Document8, Image as
|
|
1497
|
-
import
|
|
1337
|
+
import { Document as Document8, Image as Image7, Page as Page8, View as View7 } from "@react-pdf/renderer";
|
|
1338
|
+
import React8 from "react";
|
|
1498
1339
|
var A4PujaList = ({
|
|
1499
1340
|
date,
|
|
1500
1341
|
templeName,
|
|
@@ -1507,8 +1348,8 @@ var A4PujaList = ({
|
|
|
1507
1348
|
(puja) => puja.bookings.some((booking) => booking.requires_coupon)
|
|
1508
1349
|
);
|
|
1509
1350
|
if (!pujas || pujas.length === 0) {
|
|
1510
|
-
return /* @__PURE__ */
|
|
1511
|
-
|
|
1351
|
+
return /* @__PURE__ */ React8.createElement(Document8, null, /* @__PURE__ */ React8.createElement(Page8, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React8.createElement(
|
|
1352
|
+
Image7,
|
|
1512
1353
|
{
|
|
1513
1354
|
fixed: true,
|
|
1514
1355
|
style: {
|
|
@@ -1518,10 +1359,10 @@ var A4PujaList = ({
|
|
|
1518
1359
|
},
|
|
1519
1360
|
src: bmpLogo
|
|
1520
1361
|
}
|
|
1521
|
-
), /* @__PURE__ */
|
|
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")));
|
|
1522
1363
|
}
|
|
1523
|
-
return /* @__PURE__ */
|
|
1524
|
-
|
|
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,
|
|
1525
1366
|
{
|
|
1526
1367
|
fixed: true,
|
|
1527
1368
|
style: {
|
|
@@ -1531,9 +1372,9 @@ var A4PujaList = ({
|
|
|
1531
1372
|
},
|
|
1532
1373
|
src: bmpLogo
|
|
1533
1374
|
}
|
|
1534
|
-
), /* @__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(
|
|
1535
1376
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
1536
|
-
) && /* @__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(
|
|
1537
1378
|
View7,
|
|
1538
1379
|
{
|
|
1539
1380
|
style: {
|
|
@@ -1542,7 +1383,7 @@ var A4PujaList = ({
|
|
|
1542
1383
|
border: "1px solid black"
|
|
1543
1384
|
}
|
|
1544
1385
|
},
|
|
1545
|
-
/* @__PURE__ */
|
|
1386
|
+
/* @__PURE__ */ React8.createElement(
|
|
1546
1387
|
View7,
|
|
1547
1388
|
{
|
|
1548
1389
|
style: {
|
|
@@ -1553,9 +1394,9 @@ var A4PujaList = ({
|
|
|
1553
1394
|
width: "10%"
|
|
1554
1395
|
}
|
|
1555
1396
|
},
|
|
1556
|
-
/* @__PURE__ */
|
|
1397
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Sr No")
|
|
1557
1398
|
),
|
|
1558
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ React8.createElement(
|
|
1559
1400
|
View7,
|
|
1560
1401
|
{
|
|
1561
1402
|
style: {
|
|
@@ -1566,9 +1407,9 @@ var A4PujaList = ({
|
|
|
1566
1407
|
width: "60%"
|
|
1567
1408
|
}
|
|
1568
1409
|
},
|
|
1569
|
-
/* @__PURE__ */
|
|
1410
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Puja Name")
|
|
1570
1411
|
),
|
|
1571
|
-
/* @__PURE__ */
|
|
1412
|
+
/* @__PURE__ */ React8.createElement(
|
|
1572
1413
|
View7,
|
|
1573
1414
|
{
|
|
1574
1415
|
style: {
|
|
@@ -1579,9 +1420,9 @@ var A4PujaList = ({
|
|
|
1579
1420
|
width: "10%"
|
|
1580
1421
|
}
|
|
1581
1422
|
},
|
|
1582
|
-
/* @__PURE__ */
|
|
1423
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Qty")
|
|
1583
1424
|
),
|
|
1584
|
-
/* @__PURE__ */
|
|
1425
|
+
/* @__PURE__ */ React8.createElement(
|
|
1585
1426
|
View7,
|
|
1586
1427
|
{
|
|
1587
1428
|
style: {
|
|
@@ -1592,7 +1433,7 @@ var A4PujaList = ({
|
|
|
1592
1433
|
width: "20%"
|
|
1593
1434
|
}
|
|
1594
1435
|
},
|
|
1595
|
-
/* @__PURE__ */
|
|
1436
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Date")
|
|
1596
1437
|
)
|
|
1597
1438
|
))), pujas.some(
|
|
1598
1439
|
(puja) => puja.bookings.some(
|
|
@@ -1603,7 +1444,7 @@ var A4PujaList = ({
|
|
|
1603
1444
|
(booking) => booking.is_early_reminder && !booking.requires_coupon
|
|
1604
1445
|
).map((booking, bookingIndex) => {
|
|
1605
1446
|
serialOfEarlyReminders++;
|
|
1606
|
-
return /* @__PURE__ */
|
|
1447
|
+
return /* @__PURE__ */ React8.createElement(
|
|
1607
1448
|
View7,
|
|
1608
1449
|
{
|
|
1609
1450
|
key: `${pujaIndex}-${bookingIndex}`,
|
|
@@ -1614,7 +1455,7 @@ var A4PujaList = ({
|
|
|
1614
1455
|
borderTop: "none"
|
|
1615
1456
|
}
|
|
1616
1457
|
},
|
|
1617
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ React8.createElement(
|
|
1618
1459
|
View7,
|
|
1619
1460
|
{
|
|
1620
1461
|
style: {
|
|
@@ -1624,9 +1465,9 @@ var A4PujaList = ({
|
|
|
1624
1465
|
width: "10%"
|
|
1625
1466
|
}
|
|
1626
1467
|
},
|
|
1627
|
-
/* @__PURE__ */
|
|
1468
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, serialOfEarlyReminders)
|
|
1628
1469
|
),
|
|
1629
|
-
/* @__PURE__ */
|
|
1470
|
+
/* @__PURE__ */ React8.createElement(
|
|
1630
1471
|
View7,
|
|
1631
1472
|
{
|
|
1632
1473
|
style: {
|
|
@@ -1636,9 +1477,9 @@ var A4PujaList = ({
|
|
|
1636
1477
|
width: "60%"
|
|
1637
1478
|
}
|
|
1638
1479
|
},
|
|
1639
|
-
/* @__PURE__ */
|
|
1480
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, puja.name)
|
|
1640
1481
|
),
|
|
1641
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ React8.createElement(
|
|
1642
1483
|
View7,
|
|
1643
1484
|
{
|
|
1644
1485
|
style: {
|
|
@@ -1648,9 +1489,9 @@ var A4PujaList = ({
|
|
|
1648
1489
|
width: "10%"
|
|
1649
1490
|
}
|
|
1650
1491
|
},
|
|
1651
|
-
/* @__PURE__ */
|
|
1492
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.quantity)
|
|
1652
1493
|
),
|
|
1653
|
-
/* @__PURE__ */
|
|
1494
|
+
/* @__PURE__ */ React8.createElement(
|
|
1654
1495
|
View7,
|
|
1655
1496
|
{
|
|
1656
1497
|
style: {
|
|
@@ -1660,11 +1501,11 @@ var A4PujaList = ({
|
|
|
1660
1501
|
width: "20%"
|
|
1661
1502
|
}
|
|
1662
1503
|
},
|
|
1663
|
-
/* @__PURE__ */
|
|
1504
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.date ? new Date(booking.date).toDateString() : "")
|
|
1664
1505
|
)
|
|
1665
1506
|
);
|
|
1666
1507
|
})
|
|
1667
|
-
) : 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(
|
|
1668
1509
|
View7,
|
|
1669
1510
|
{
|
|
1670
1511
|
style: {
|
|
@@ -1679,7 +1520,7 @@ var A4PujaList = ({
|
|
|
1679
1520
|
))
|
|
1680
1521
|
return null;
|
|
1681
1522
|
serialOfNormalPujas = 0;
|
|
1682
|
-
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(
|
|
1683
1524
|
Text_default,
|
|
1684
1525
|
{
|
|
1685
1526
|
style: {
|
|
@@ -1692,7 +1533,7 @@ var A4PujaList = ({
|
|
|
1692
1533
|
}
|
|
1693
1534
|
},
|
|
1694
1535
|
`${puja.name} - ${puja.bookings.length}`
|
|
1695
|
-
)), /* @__PURE__ */
|
|
1536
|
+
)), /* @__PURE__ */ React8.createElement(
|
|
1696
1537
|
View7,
|
|
1697
1538
|
{
|
|
1698
1539
|
style: {
|
|
@@ -1701,7 +1542,7 @@ var A4PujaList = ({
|
|
|
1701
1542
|
border: "1px solid black"
|
|
1702
1543
|
}
|
|
1703
1544
|
},
|
|
1704
|
-
/* @__PURE__ */
|
|
1545
|
+
/* @__PURE__ */ React8.createElement(
|
|
1705
1546
|
View7,
|
|
1706
1547
|
{
|
|
1707
1548
|
style: {
|
|
@@ -1712,9 +1553,9 @@ var A4PujaList = ({
|
|
|
1712
1553
|
width: "10%"
|
|
1713
1554
|
}
|
|
1714
1555
|
},
|
|
1715
|
-
/* @__PURE__ */
|
|
1556
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Sr No")
|
|
1716
1557
|
),
|
|
1717
|
-
/* @__PURE__ */
|
|
1558
|
+
/* @__PURE__ */ React8.createElement(
|
|
1718
1559
|
View7,
|
|
1719
1560
|
{
|
|
1720
1561
|
style: {
|
|
@@ -1725,9 +1566,9 @@ var A4PujaList = ({
|
|
|
1725
1566
|
width: "20%"
|
|
1726
1567
|
}
|
|
1727
1568
|
},
|
|
1728
|
-
/* @__PURE__ */
|
|
1569
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Invoice No")
|
|
1729
1570
|
),
|
|
1730
|
-
/* @__PURE__ */
|
|
1571
|
+
/* @__PURE__ */ React8.createElement(
|
|
1731
1572
|
View7,
|
|
1732
1573
|
{
|
|
1733
1574
|
style: {
|
|
@@ -1738,9 +1579,9 @@ var A4PujaList = ({
|
|
|
1738
1579
|
width: "35%"
|
|
1739
1580
|
}
|
|
1740
1581
|
},
|
|
1741
|
-
/* @__PURE__ */
|
|
1582
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Devotee Name")
|
|
1742
1583
|
),
|
|
1743
|
-
/* @__PURE__ */
|
|
1584
|
+
/* @__PURE__ */ React8.createElement(
|
|
1744
1585
|
View7,
|
|
1745
1586
|
{
|
|
1746
1587
|
style: {
|
|
@@ -1751,9 +1592,9 @@ var A4PujaList = ({
|
|
|
1751
1592
|
width: "25%"
|
|
1752
1593
|
}
|
|
1753
1594
|
},
|
|
1754
|
-
/* @__PURE__ */
|
|
1595
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Nakshatra")
|
|
1755
1596
|
),
|
|
1756
|
-
/* @__PURE__ */
|
|
1597
|
+
/* @__PURE__ */ React8.createElement(
|
|
1757
1598
|
View7,
|
|
1758
1599
|
{
|
|
1759
1600
|
style: {
|
|
@@ -1764,13 +1605,13 @@ var A4PujaList = ({
|
|
|
1764
1605
|
width: "10%"
|
|
1765
1606
|
}
|
|
1766
1607
|
},
|
|
1767
|
-
/* @__PURE__ */
|
|
1608
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Qty")
|
|
1768
1609
|
)
|
|
1769
1610
|
), puja.bookings.map((booking, bookingIndex) => {
|
|
1770
1611
|
if (booking.is_early_reminder || booking.requires_coupon)
|
|
1771
1612
|
return null;
|
|
1772
1613
|
serialOfNormalPujas++;
|
|
1773
|
-
return /* @__PURE__ */
|
|
1614
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(
|
|
1774
1615
|
View7,
|
|
1775
1616
|
{
|
|
1776
1617
|
style: {
|
|
@@ -1781,7 +1622,7 @@ var A4PujaList = ({
|
|
|
1781
1622
|
width: "100%"
|
|
1782
1623
|
}
|
|
1783
1624
|
},
|
|
1784
|
-
/* @__PURE__ */
|
|
1625
|
+
/* @__PURE__ */ React8.createElement(
|
|
1785
1626
|
View7,
|
|
1786
1627
|
{
|
|
1787
1628
|
style: {
|
|
@@ -1791,9 +1632,9 @@ var A4PujaList = ({
|
|
|
1791
1632
|
width: "10%"
|
|
1792
1633
|
}
|
|
1793
1634
|
},
|
|
1794
|
-
/* @__PURE__ */
|
|
1635
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, serialOfNormalPujas)
|
|
1795
1636
|
),
|
|
1796
|
-
/* @__PURE__ */
|
|
1637
|
+
/* @__PURE__ */ React8.createElement(
|
|
1797
1638
|
View7,
|
|
1798
1639
|
{
|
|
1799
1640
|
style: {
|
|
@@ -1802,7 +1643,7 @@ var A4PujaList = ({
|
|
|
1802
1643
|
width: "90%"
|
|
1803
1644
|
}
|
|
1804
1645
|
},
|
|
1805
|
-
/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ React8.createElement(
|
|
1806
1647
|
View7,
|
|
1807
1648
|
{
|
|
1808
1649
|
style: {
|
|
@@ -1810,7 +1651,7 @@ var A4PujaList = ({
|
|
|
1810
1651
|
flexDirection: "row"
|
|
1811
1652
|
}
|
|
1812
1653
|
},
|
|
1813
|
-
/* @__PURE__ */
|
|
1654
|
+
/* @__PURE__ */ React8.createElement(
|
|
1814
1655
|
View7,
|
|
1815
1656
|
{
|
|
1816
1657
|
style: {
|
|
@@ -1820,9 +1661,9 @@ var A4PujaList = ({
|
|
|
1820
1661
|
width: `${20 * 1.11111}%`
|
|
1821
1662
|
}
|
|
1822
1663
|
},
|
|
1823
|
-
/* @__PURE__ */
|
|
1664
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.invoiceNumber)
|
|
1824
1665
|
),
|
|
1825
|
-
/* @__PURE__ */
|
|
1666
|
+
/* @__PURE__ */ React8.createElement(
|
|
1826
1667
|
View7,
|
|
1827
1668
|
{
|
|
1828
1669
|
style: {
|
|
@@ -1832,9 +1673,9 @@ var A4PujaList = ({
|
|
|
1832
1673
|
width: `${35 * 1.11111}%`
|
|
1833
1674
|
}
|
|
1834
1675
|
},
|
|
1835
|
-
/* @__PURE__ */
|
|
1676
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.devoteeName)
|
|
1836
1677
|
),
|
|
1837
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ React8.createElement(
|
|
1838
1679
|
View7,
|
|
1839
1680
|
{
|
|
1840
1681
|
style: {
|
|
@@ -1844,9 +1685,9 @@ var A4PujaList = ({
|
|
|
1844
1685
|
width: `${25 * 1.11111}%`
|
|
1845
1686
|
}
|
|
1846
1687
|
},
|
|
1847
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.nakshatra)
|
|
1848
1689
|
),
|
|
1849
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ React8.createElement(
|
|
1850
1691
|
View7,
|
|
1851
1692
|
{
|
|
1852
1693
|
style: {
|
|
@@ -1856,10 +1697,10 @@ var A4PujaList = ({
|
|
|
1856
1697
|
width: `${10 * 1.11111}%`
|
|
1857
1698
|
}
|
|
1858
1699
|
},
|
|
1859
|
-
/* @__PURE__ */
|
|
1700
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.quantity)
|
|
1860
1701
|
)
|
|
1861
1702
|
),
|
|
1862
|
-
booking.priestNote && /* @__PURE__ */
|
|
1703
|
+
booking.priestNote && /* @__PURE__ */ React8.createElement(
|
|
1863
1704
|
View7,
|
|
1864
1705
|
{
|
|
1865
1706
|
style: {
|
|
@@ -1869,14 +1710,14 @@ var A4PujaList = ({
|
|
|
1869
1710
|
width: "100%"
|
|
1870
1711
|
}
|
|
1871
1712
|
},
|
|
1872
|
-
/* @__PURE__ */
|
|
1713
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, booking.priestNote)
|
|
1873
1714
|
)
|
|
1874
1715
|
)
|
|
1875
1716
|
));
|
|
1876
1717
|
})));
|
|
1877
1718
|
})
|
|
1878
|
-
)), pujasRequiresCoupon ? /* @__PURE__ */
|
|
1879
|
-
|
|
1719
|
+
)), pujasRequiresCoupon ? /* @__PURE__ */ React8.createElement(Page8, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React8.createElement(
|
|
1720
|
+
Image7,
|
|
1880
1721
|
{
|
|
1881
1722
|
fixed: true,
|
|
1882
1723
|
style: {
|
|
@@ -1886,7 +1727,7 @@ var A4PujaList = ({
|
|
|
1886
1727
|
},
|
|
1887
1728
|
src: bmpLogo
|
|
1888
1729
|
}
|
|
1889
|
-
), /* @__PURE__ */
|
|
1730
|
+
), /* @__PURE__ */ React8.createElement(
|
|
1890
1731
|
View7,
|
|
1891
1732
|
{
|
|
1892
1733
|
style: {
|
|
@@ -1910,7 +1751,7 @@ var A4PujaList = ({
|
|
|
1910
1751
|
([invoiceNumber, bookings], groupIdx) => {
|
|
1911
1752
|
const bookingsArr = bookings;
|
|
1912
1753
|
const first = bookingsArr[0];
|
|
1913
|
-
return /* @__PURE__ */
|
|
1754
|
+
return /* @__PURE__ */ React8.createElement(
|
|
1914
1755
|
View7,
|
|
1915
1756
|
{
|
|
1916
1757
|
key: invoiceNumber,
|
|
@@ -1923,7 +1764,7 @@ var A4PujaList = ({
|
|
|
1923
1764
|
},
|
|
1924
1765
|
wrap: false
|
|
1925
1766
|
},
|
|
1926
|
-
/* @__PURE__ */
|
|
1767
|
+
/* @__PURE__ */ React8.createElement(
|
|
1927
1768
|
View7,
|
|
1928
1769
|
{
|
|
1929
1770
|
style: {
|
|
@@ -1933,7 +1774,7 @@ var A4PujaList = ({
|
|
|
1933
1774
|
gap: 10
|
|
1934
1775
|
}
|
|
1935
1776
|
},
|
|
1936
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ React8.createElement(
|
|
1937
1778
|
View7,
|
|
1938
1779
|
{
|
|
1939
1780
|
style: {
|
|
@@ -1942,14 +1783,14 @@ var A4PujaList = ({
|
|
|
1942
1783
|
gap: 10
|
|
1943
1784
|
}
|
|
1944
1785
|
},
|
|
1945
|
-
/* @__PURE__ */
|
|
1946
|
-
/* @__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())
|
|
1947
1788
|
),
|
|
1948
|
-
/* @__PURE__ */
|
|
1789
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, first.phone_number)
|
|
1949
1790
|
),
|
|
1950
|
-
/* @__PURE__ */
|
|
1791
|
+
/* @__PURE__ */ React8.createElement(View7, { style: { height: 15, width: "100%" } }),
|
|
1951
1792
|
bookingsArr.map(
|
|
1952
|
-
(booking, idx) => /* @__PURE__ */
|
|
1793
|
+
(booking, idx) => /* @__PURE__ */ React8.createElement(
|
|
1953
1794
|
View7,
|
|
1954
1795
|
{
|
|
1955
1796
|
key: idx,
|
|
@@ -1959,10 +1800,10 @@ var A4PujaList = ({
|
|
|
1959
1800
|
marginTop: 25
|
|
1960
1801
|
}
|
|
1961
1802
|
},
|
|
1962
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, `${booking.devoteeName} ----- ${booking.nakshatra} ----- ${booking.pujaName}`)
|
|
1963
1804
|
)
|
|
1964
1805
|
),
|
|
1965
|
-
/* @__PURE__ */
|
|
1806
|
+
/* @__PURE__ */ React8.createElement(View7, null, /* @__PURE__ */ React8.createElement(
|
|
1966
1807
|
Text_default,
|
|
1967
1808
|
{
|
|
1968
1809
|
style: {
|
|
@@ -1983,8 +1824,8 @@ var A4PujaList = ({
|
|
|
1983
1824
|
var A4PujaList_default = A4PujaList;
|
|
1984
1825
|
|
|
1985
1826
|
// src/sizes/a4/A4Summary.tsx
|
|
1986
|
-
import
|
|
1987
|
-
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";
|
|
1988
1829
|
var A4Summary = ({
|
|
1989
1830
|
templeName,
|
|
1990
1831
|
date,
|
|
@@ -1996,7 +1837,7 @@ var A4Summary = ({
|
|
|
1996
1837
|
const bTotalCount = b.nakshatras.length;
|
|
1997
1838
|
return bTotalCount - aTotalCount;
|
|
1998
1839
|
});
|
|
1999
|
-
return /* @__PURE__ */
|
|
1840
|
+
return /* @__PURE__ */ React9.createElement(Document9, null, /* @__PURE__ */ React9.createElement(
|
|
2000
1841
|
Page9,
|
|
2001
1842
|
{
|
|
2002
1843
|
size: "A4",
|
|
@@ -2005,8 +1846,8 @@ var A4Summary = ({
|
|
|
2005
1846
|
fontFamily: "Noto Sans"
|
|
2006
1847
|
}
|
|
2007
1848
|
},
|
|
2008
|
-
/* @__PURE__ */
|
|
2009
|
-
|
|
1849
|
+
/* @__PURE__ */ React9.createElement(
|
|
1850
|
+
Image8,
|
|
2010
1851
|
{
|
|
2011
1852
|
fixed: true,
|
|
2012
1853
|
style: {
|
|
@@ -2017,11 +1858,11 @@ var A4Summary = ({
|
|
|
2017
1858
|
src: bmpLogo
|
|
2018
1859
|
}
|
|
2019
1860
|
),
|
|
2020
|
-
/* @__PURE__ */
|
|
2021
|
-
reportTiming && Object.keys(reportTimingsObj).includes(reportTiming) ? /* @__PURE__ */
|
|
2022
|
-
/* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2024
|
-
pujas.length > 0 ? /* @__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(
|
|
2025
1866
|
View8,
|
|
2026
1867
|
{
|
|
2027
1868
|
style: {
|
|
@@ -2031,7 +1872,7 @@ var A4Summary = ({
|
|
|
2031
1872
|
}
|
|
2032
1873
|
},
|
|
2033
1874
|
sortedPujaList.map((item, index) => {
|
|
2034
|
-
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(
|
|
2035
1876
|
Text_default,
|
|
2036
1877
|
{
|
|
2037
1878
|
style: {
|
|
@@ -2044,7 +1885,7 @@ var A4Summary = ({
|
|
|
2044
1885
|
}
|
|
2045
1886
|
},
|
|
2046
1887
|
`${item.name} - ${item.totalCount}`
|
|
2047
|
-
)), /* @__PURE__ */
|
|
1888
|
+
)), /* @__PURE__ */ React9.createElement(
|
|
2048
1889
|
View8,
|
|
2049
1890
|
{
|
|
2050
1891
|
style: {
|
|
@@ -2053,7 +1894,7 @@ var A4Summary = ({
|
|
|
2053
1894
|
border: "1px solid black"
|
|
2054
1895
|
}
|
|
2055
1896
|
},
|
|
2056
|
-
/* @__PURE__ */
|
|
1897
|
+
/* @__PURE__ */ React9.createElement(
|
|
2057
1898
|
View8,
|
|
2058
1899
|
{
|
|
2059
1900
|
style: {
|
|
@@ -2064,9 +1905,9 @@ var A4Summary = ({
|
|
|
2064
1905
|
width: "20%"
|
|
2065
1906
|
}
|
|
2066
1907
|
},
|
|
2067
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Sr No")
|
|
2068
1909
|
),
|
|
2069
|
-
/* @__PURE__ */
|
|
1910
|
+
/* @__PURE__ */ React9.createElement(
|
|
2070
1911
|
View8,
|
|
2071
1912
|
{
|
|
2072
1913
|
style: {
|
|
@@ -2077,9 +1918,9 @@ var A4Summary = ({
|
|
|
2077
1918
|
width: "60%"
|
|
2078
1919
|
}
|
|
2079
1920
|
},
|
|
2080
|
-
/* @__PURE__ */
|
|
1921
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Nakshatra")
|
|
2081
1922
|
),
|
|
2082
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ React9.createElement(
|
|
2083
1924
|
View8,
|
|
2084
1925
|
{
|
|
2085
1926
|
style: {
|
|
@@ -2089,10 +1930,10 @@ var A4Summary = ({
|
|
|
2089
1930
|
fontWeight: "semibold"
|
|
2090
1931
|
}
|
|
2091
1932
|
},
|
|
2092
|
-
/* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Quantity")
|
|
2093
1934
|
)
|
|
2094
1935
|
), item.nakshatras.map((nakshatra, nakshatraIndex) => {
|
|
2095
|
-
return /* @__PURE__ */
|
|
1936
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(
|
|
2096
1937
|
View8,
|
|
2097
1938
|
{
|
|
2098
1939
|
style: {
|
|
@@ -2102,7 +1943,7 @@ var A4Summary = ({
|
|
|
2102
1943
|
borderTop: "none"
|
|
2103
1944
|
}
|
|
2104
1945
|
},
|
|
2105
|
-
/* @__PURE__ */
|
|
1946
|
+
/* @__PURE__ */ React9.createElement(
|
|
2106
1947
|
View8,
|
|
2107
1948
|
{
|
|
2108
1949
|
style: {
|
|
@@ -2112,9 +1953,9 @@ var A4Summary = ({
|
|
|
2112
1953
|
width: "20%"
|
|
2113
1954
|
}
|
|
2114
1955
|
},
|
|
2115
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, nakshatraIndex + 1)
|
|
2116
1957
|
),
|
|
2117
|
-
/* @__PURE__ */
|
|
1958
|
+
/* @__PURE__ */ React9.createElement(
|
|
2118
1959
|
View8,
|
|
2119
1960
|
{
|
|
2120
1961
|
style: {
|
|
@@ -2124,9 +1965,9 @@ var A4Summary = ({
|
|
|
2124
1965
|
width: "60%"
|
|
2125
1966
|
}
|
|
2126
1967
|
},
|
|
2127
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, nakshatra.name)
|
|
2128
1969
|
),
|
|
2129
|
-
/* @__PURE__ */
|
|
1970
|
+
/* @__PURE__ */ React9.createElement(
|
|
2130
1971
|
View8,
|
|
2131
1972
|
{
|
|
2132
1973
|
style: {
|
|
@@ -2135,12 +1976,12 @@ var A4Summary = ({
|
|
|
2135
1976
|
width: "20%"
|
|
2136
1977
|
}
|
|
2137
1978
|
},
|
|
2138
|
-
/* @__PURE__ */
|
|
1979
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, nakshatra.count)
|
|
2139
1980
|
)
|
|
2140
1981
|
));
|
|
2141
1982
|
})));
|
|
2142
1983
|
})
|
|
2143
|
-
) : /* @__PURE__ */
|
|
1984
|
+
) : /* @__PURE__ */ React9.createElement(
|
|
2144
1985
|
Text_default,
|
|
2145
1986
|
{
|
|
2146
1987
|
style: {
|
|
@@ -2159,8 +2000,8 @@ var A4Summary_default = A4Summary;
|
|
|
2159
2000
|
import { Font as Font5 } from "@react-pdf/renderer";
|
|
2160
2001
|
|
|
2161
2002
|
// src/sizes/a4/A4CombinedReport.tsx
|
|
2162
|
-
import { Document as Document10, Image as
|
|
2163
|
-
import
|
|
2003
|
+
import { Document as Document10, Image as Image9, Page as Page10, View as View9 } from "@react-pdf/renderer";
|
|
2004
|
+
import React10 from "react";
|
|
2164
2005
|
var A4CombinedReport = ({
|
|
2165
2006
|
date,
|
|
2166
2007
|
templeName,
|
|
@@ -2189,8 +2030,8 @@ var A4CombinedReport = ({
|
|
|
2189
2030
|
(puja) => puja.bookings.some((booking) => booking.requires_coupon)
|
|
2190
2031
|
);
|
|
2191
2032
|
if (pujaData.length == 0 && prasadData.length == 0 && deliveryData.length == 0) {
|
|
2192
|
-
return /* @__PURE__ */
|
|
2193
|
-
|
|
2033
|
+
return /* @__PURE__ */ React10.createElement(Document10, null, /* @__PURE__ */ React10.createElement(Page10, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
2034
|
+
Image9,
|
|
2194
2035
|
{
|
|
2195
2036
|
fixed: true,
|
|
2196
2037
|
style: {
|
|
@@ -2200,10 +2041,10 @@ var A4CombinedReport = ({
|
|
|
2200
2041
|
},
|
|
2201
2042
|
src: bmpLogo
|
|
2202
2043
|
}
|
|
2203
|
-
), /* @__PURE__ */
|
|
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")));
|
|
2204
2045
|
}
|
|
2205
|
-
return /* @__PURE__ */
|
|
2206
|
-
|
|
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,
|
|
2207
2048
|
{
|
|
2208
2049
|
fixed: true,
|
|
2209
2050
|
style: {
|
|
@@ -2213,15 +2054,15 @@ var A4CombinedReport = ({
|
|
|
2213
2054
|
},
|
|
2214
2055
|
src: bmpLogo
|
|
2215
2056
|
}
|
|
2216
|
-
), /* @__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(
|
|
2217
2058
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
2218
|
-
) && /* @__PURE__ */
|
|
2059
|
+
) && /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
|
|
2219
2060
|
Text_default,
|
|
2220
2061
|
{
|
|
2221
2062
|
style: { fontSize: 14, fontWeight: "bold", marginTop: 10 }
|
|
2222
2063
|
},
|
|
2223
2064
|
"Early Reminders for Upcoming Pujas"
|
|
2224
|
-
), /* @__PURE__ */
|
|
2065
|
+
), /* @__PURE__ */ React10.createElement(View9, { wrap: false, style: { marginTop: 10 } }, /* @__PURE__ */ React10.createElement(
|
|
2225
2066
|
View9,
|
|
2226
2067
|
{
|
|
2227
2068
|
style: {
|
|
@@ -2230,7 +2071,7 @@ var A4CombinedReport = ({
|
|
|
2230
2071
|
border: "1px solid black"
|
|
2231
2072
|
}
|
|
2232
2073
|
},
|
|
2233
|
-
/* @__PURE__ */
|
|
2074
|
+
/* @__PURE__ */ React10.createElement(
|
|
2234
2075
|
View9,
|
|
2235
2076
|
{
|
|
2236
2077
|
style: {
|
|
@@ -2241,9 +2082,9 @@ var A4CombinedReport = ({
|
|
|
2241
2082
|
width: "10%"
|
|
2242
2083
|
}
|
|
2243
2084
|
},
|
|
2244
|
-
/* @__PURE__ */
|
|
2085
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Sr No")
|
|
2245
2086
|
),
|
|
2246
|
-
/* @__PURE__ */
|
|
2087
|
+
/* @__PURE__ */ React10.createElement(
|
|
2247
2088
|
View9,
|
|
2248
2089
|
{
|
|
2249
2090
|
style: {
|
|
@@ -2254,9 +2095,9 @@ var A4CombinedReport = ({
|
|
|
2254
2095
|
width: "60%"
|
|
2255
2096
|
}
|
|
2256
2097
|
},
|
|
2257
|
-
/* @__PURE__ */
|
|
2098
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Puja Name")
|
|
2258
2099
|
),
|
|
2259
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ React10.createElement(
|
|
2260
2101
|
View9,
|
|
2261
2102
|
{
|
|
2262
2103
|
style: {
|
|
@@ -2267,9 +2108,9 @@ var A4CombinedReport = ({
|
|
|
2267
2108
|
width: "10%"
|
|
2268
2109
|
}
|
|
2269
2110
|
},
|
|
2270
|
-
/* @__PURE__ */
|
|
2111
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Qty")
|
|
2271
2112
|
),
|
|
2272
|
-
/* @__PURE__ */
|
|
2113
|
+
/* @__PURE__ */ React10.createElement(
|
|
2273
2114
|
View9,
|
|
2274
2115
|
{
|
|
2275
2116
|
style: {
|
|
@@ -2280,7 +2121,7 @@ var A4CombinedReport = ({
|
|
|
2280
2121
|
width: "20%"
|
|
2281
2122
|
}
|
|
2282
2123
|
},
|
|
2283
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Date")
|
|
2284
2125
|
)
|
|
2285
2126
|
))), pujaData.some(
|
|
2286
2127
|
(puja) => puja.bookings.some(
|
|
@@ -2291,7 +2132,7 @@ var A4CombinedReport = ({
|
|
|
2291
2132
|
(booking) => booking.is_early_reminder && !booking.requires_coupon
|
|
2292
2133
|
).map((booking, bookingIndex) => {
|
|
2293
2134
|
serialOfEarlyReminders++;
|
|
2294
|
-
return /* @__PURE__ */
|
|
2135
|
+
return /* @__PURE__ */ React10.createElement(
|
|
2295
2136
|
View9,
|
|
2296
2137
|
{
|
|
2297
2138
|
key: `${pujaIndex}-${bookingIndex}`,
|
|
@@ -2302,7 +2143,7 @@ var A4CombinedReport = ({
|
|
|
2302
2143
|
borderTop: "none"
|
|
2303
2144
|
}
|
|
2304
2145
|
},
|
|
2305
|
-
/* @__PURE__ */
|
|
2146
|
+
/* @__PURE__ */ React10.createElement(
|
|
2306
2147
|
View9,
|
|
2307
2148
|
{
|
|
2308
2149
|
style: {
|
|
@@ -2312,9 +2153,9 @@ var A4CombinedReport = ({
|
|
|
2312
2153
|
width: "10%"
|
|
2313
2154
|
}
|
|
2314
2155
|
},
|
|
2315
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, serialOfEarlyReminders)
|
|
2316
2157
|
),
|
|
2317
|
-
/* @__PURE__ */
|
|
2158
|
+
/* @__PURE__ */ React10.createElement(
|
|
2318
2159
|
View9,
|
|
2319
2160
|
{
|
|
2320
2161
|
style: {
|
|
@@ -2324,9 +2165,9 @@ var A4CombinedReport = ({
|
|
|
2324
2165
|
width: "60%"
|
|
2325
2166
|
}
|
|
2326
2167
|
},
|
|
2327
|
-
/* @__PURE__ */
|
|
2168
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, puja.name)
|
|
2328
2169
|
),
|
|
2329
|
-
/* @__PURE__ */
|
|
2170
|
+
/* @__PURE__ */ React10.createElement(
|
|
2330
2171
|
View9,
|
|
2331
2172
|
{
|
|
2332
2173
|
style: {
|
|
@@ -2336,9 +2177,9 @@ var A4CombinedReport = ({
|
|
|
2336
2177
|
width: "10%"
|
|
2337
2178
|
}
|
|
2338
2179
|
},
|
|
2339
|
-
/* @__PURE__ */
|
|
2180
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.quantity)
|
|
2340
2181
|
),
|
|
2341
|
-
/* @__PURE__ */
|
|
2182
|
+
/* @__PURE__ */ React10.createElement(
|
|
2342
2183
|
View9,
|
|
2343
2184
|
{
|
|
2344
2185
|
style: {
|
|
@@ -2348,11 +2189,11 @@ var A4CombinedReport = ({
|
|
|
2348
2189
|
width: "20%"
|
|
2349
2190
|
}
|
|
2350
2191
|
},
|
|
2351
|
-
/* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.date ? new Date(booking.date).toDateString() : "")
|
|
2352
2193
|
)
|
|
2353
2194
|
);
|
|
2354
2195
|
})
|
|
2355
|
-
) : 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(
|
|
2356
2197
|
View9,
|
|
2357
2198
|
{
|
|
2358
2199
|
style: {
|
|
@@ -2367,7 +2208,7 @@ var A4CombinedReport = ({
|
|
|
2367
2208
|
))
|
|
2368
2209
|
return null;
|
|
2369
2210
|
serialOfNormalPujas = 0;
|
|
2370
|
-
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(
|
|
2371
2212
|
Text_default,
|
|
2372
2213
|
{
|
|
2373
2214
|
style: {
|
|
@@ -2380,7 +2221,7 @@ var A4CombinedReport = ({
|
|
|
2380
2221
|
}
|
|
2381
2222
|
},
|
|
2382
2223
|
`${puja.name} - ${puja.bookings.length}`
|
|
2383
|
-
)), /* @__PURE__ */
|
|
2224
|
+
)), /* @__PURE__ */ React10.createElement(
|
|
2384
2225
|
View9,
|
|
2385
2226
|
{
|
|
2386
2227
|
style: {
|
|
@@ -2389,7 +2230,7 @@ var A4CombinedReport = ({
|
|
|
2389
2230
|
border: "1px solid black"
|
|
2390
2231
|
}
|
|
2391
2232
|
},
|
|
2392
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ React10.createElement(
|
|
2393
2234
|
View9,
|
|
2394
2235
|
{
|
|
2395
2236
|
style: {
|
|
@@ -2400,9 +2241,9 @@ var A4CombinedReport = ({
|
|
|
2400
2241
|
width: "10%"
|
|
2401
2242
|
}
|
|
2402
2243
|
},
|
|
2403
|
-
/* @__PURE__ */
|
|
2244
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Sr No")
|
|
2404
2245
|
),
|
|
2405
|
-
/* @__PURE__ */
|
|
2246
|
+
/* @__PURE__ */ React10.createElement(
|
|
2406
2247
|
View9,
|
|
2407
2248
|
{
|
|
2408
2249
|
style: {
|
|
@@ -2413,9 +2254,9 @@ var A4CombinedReport = ({
|
|
|
2413
2254
|
width: "20%"
|
|
2414
2255
|
}
|
|
2415
2256
|
},
|
|
2416
|
-
/* @__PURE__ */
|
|
2257
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Invoice No")
|
|
2417
2258
|
),
|
|
2418
|
-
/* @__PURE__ */
|
|
2259
|
+
/* @__PURE__ */ React10.createElement(
|
|
2419
2260
|
View9,
|
|
2420
2261
|
{
|
|
2421
2262
|
style: {
|
|
@@ -2426,9 +2267,9 @@ var A4CombinedReport = ({
|
|
|
2426
2267
|
width: "35%"
|
|
2427
2268
|
}
|
|
2428
2269
|
},
|
|
2429
|
-
/* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Devotee Name")
|
|
2430
2271
|
),
|
|
2431
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ React10.createElement(
|
|
2432
2273
|
View9,
|
|
2433
2274
|
{
|
|
2434
2275
|
style: {
|
|
@@ -2439,9 +2280,9 @@ var A4CombinedReport = ({
|
|
|
2439
2280
|
width: "25%"
|
|
2440
2281
|
}
|
|
2441
2282
|
},
|
|
2442
|
-
/* @__PURE__ */
|
|
2283
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Nakshatra")
|
|
2443
2284
|
),
|
|
2444
|
-
/* @__PURE__ */
|
|
2285
|
+
/* @__PURE__ */ React10.createElement(
|
|
2445
2286
|
View9,
|
|
2446
2287
|
{
|
|
2447
2288
|
style: {
|
|
@@ -2452,13 +2293,13 @@ var A4CombinedReport = ({
|
|
|
2452
2293
|
width: "10%"
|
|
2453
2294
|
}
|
|
2454
2295
|
},
|
|
2455
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Qty")
|
|
2456
2297
|
)
|
|
2457
2298
|
), puja.bookings.map((booking, bookingIndex) => {
|
|
2458
2299
|
if (booking.is_early_reminder || booking.requires_coupon)
|
|
2459
2300
|
return null;
|
|
2460
2301
|
serialOfNormalPujas++;
|
|
2461
|
-
return /* @__PURE__ */
|
|
2302
|
+
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
|
|
2462
2303
|
View9,
|
|
2463
2304
|
{
|
|
2464
2305
|
style: {
|
|
@@ -2469,7 +2310,7 @@ var A4CombinedReport = ({
|
|
|
2469
2310
|
width: "100%"
|
|
2470
2311
|
}
|
|
2471
2312
|
},
|
|
2472
|
-
/* @__PURE__ */
|
|
2313
|
+
/* @__PURE__ */ React10.createElement(
|
|
2473
2314
|
View9,
|
|
2474
2315
|
{
|
|
2475
2316
|
style: {
|
|
@@ -2479,9 +2320,9 @@ var A4CombinedReport = ({
|
|
|
2479
2320
|
width: "10%"
|
|
2480
2321
|
}
|
|
2481
2322
|
},
|
|
2482
|
-
/* @__PURE__ */
|
|
2323
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, serialOfNormalPujas)
|
|
2483
2324
|
),
|
|
2484
|
-
/* @__PURE__ */
|
|
2325
|
+
/* @__PURE__ */ React10.createElement(
|
|
2485
2326
|
View9,
|
|
2486
2327
|
{
|
|
2487
2328
|
style: {
|
|
@@ -2490,7 +2331,7 @@ var A4CombinedReport = ({
|
|
|
2490
2331
|
width: "90%"
|
|
2491
2332
|
}
|
|
2492
2333
|
},
|
|
2493
|
-
/* @__PURE__ */
|
|
2334
|
+
/* @__PURE__ */ React10.createElement(
|
|
2494
2335
|
View9,
|
|
2495
2336
|
{
|
|
2496
2337
|
style: {
|
|
@@ -2498,7 +2339,7 @@ var A4CombinedReport = ({
|
|
|
2498
2339
|
flexDirection: "row"
|
|
2499
2340
|
}
|
|
2500
2341
|
},
|
|
2501
|
-
/* @__PURE__ */
|
|
2342
|
+
/* @__PURE__ */ React10.createElement(
|
|
2502
2343
|
View9,
|
|
2503
2344
|
{
|
|
2504
2345
|
style: {
|
|
@@ -2508,9 +2349,9 @@ var A4CombinedReport = ({
|
|
|
2508
2349
|
width: `${20 * 1.11111}%`
|
|
2509
2350
|
}
|
|
2510
2351
|
},
|
|
2511
|
-
/* @__PURE__ */
|
|
2352
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.invoiceNumber)
|
|
2512
2353
|
),
|
|
2513
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ React10.createElement(
|
|
2514
2355
|
View9,
|
|
2515
2356
|
{
|
|
2516
2357
|
style: {
|
|
@@ -2520,9 +2361,9 @@ var A4CombinedReport = ({
|
|
|
2520
2361
|
width: `${35 * 1.11111}%`
|
|
2521
2362
|
}
|
|
2522
2363
|
},
|
|
2523
|
-
/* @__PURE__ */
|
|
2364
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.devoteeName)
|
|
2524
2365
|
),
|
|
2525
|
-
/* @__PURE__ */
|
|
2366
|
+
/* @__PURE__ */ React10.createElement(
|
|
2526
2367
|
View9,
|
|
2527
2368
|
{
|
|
2528
2369
|
style: {
|
|
@@ -2532,9 +2373,9 @@ var A4CombinedReport = ({
|
|
|
2532
2373
|
width: `${25 * 1.11111}%`
|
|
2533
2374
|
}
|
|
2534
2375
|
},
|
|
2535
|
-
/* @__PURE__ */
|
|
2376
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.nakshatra)
|
|
2536
2377
|
),
|
|
2537
|
-
/* @__PURE__ */
|
|
2378
|
+
/* @__PURE__ */ React10.createElement(
|
|
2538
2379
|
View9,
|
|
2539
2380
|
{
|
|
2540
2381
|
style: {
|
|
@@ -2544,10 +2385,10 @@ var A4CombinedReport = ({
|
|
|
2544
2385
|
width: `${10 * 1.11111}%`
|
|
2545
2386
|
}
|
|
2546
2387
|
},
|
|
2547
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.quantity)
|
|
2548
2389
|
)
|
|
2549
2390
|
),
|
|
2550
|
-
booking.priestNote && /* @__PURE__ */
|
|
2391
|
+
booking.priestNote && /* @__PURE__ */ React10.createElement(
|
|
2551
2392
|
View9,
|
|
2552
2393
|
{
|
|
2553
2394
|
style: {
|
|
@@ -2557,14 +2398,14 @@ var A4CombinedReport = ({
|
|
|
2557
2398
|
width: "100%"
|
|
2558
2399
|
}
|
|
2559
2400
|
},
|
|
2560
|
-
/* @__PURE__ */
|
|
2401
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, booking.priestNote)
|
|
2561
2402
|
)
|
|
2562
2403
|
)
|
|
2563
2404
|
));
|
|
2564
2405
|
})));
|
|
2565
2406
|
})
|
|
2566
|
-
)), pujaData.length > 0 && pujasRequiresCoupon && /* @__PURE__ */
|
|
2567
|
-
|
|
2407
|
+
)), pujaData.length > 0 && pujasRequiresCoupon && /* @__PURE__ */ React10.createElement(Page10, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
2408
|
+
Image9,
|
|
2568
2409
|
{
|
|
2569
2410
|
fixed: true,
|
|
2570
2411
|
style: {
|
|
@@ -2574,7 +2415,7 @@ var A4CombinedReport = ({
|
|
|
2574
2415
|
},
|
|
2575
2416
|
src: bmpLogo
|
|
2576
2417
|
}
|
|
2577
|
-
), /* @__PURE__ */
|
|
2418
|
+
), /* @__PURE__ */ React10.createElement(
|
|
2578
2419
|
View9,
|
|
2579
2420
|
{
|
|
2580
2421
|
style: {
|
|
@@ -2598,7 +2439,7 @@ var A4CombinedReport = ({
|
|
|
2598
2439
|
([invoiceNumber, bookings], groupIdx) => {
|
|
2599
2440
|
const bookingsArr = bookings;
|
|
2600
2441
|
const first = bookingsArr[0];
|
|
2601
|
-
return /* @__PURE__ */
|
|
2442
|
+
return /* @__PURE__ */ React10.createElement(
|
|
2602
2443
|
View9,
|
|
2603
2444
|
{
|
|
2604
2445
|
key: invoiceNumber,
|
|
@@ -2610,7 +2451,7 @@ var A4CombinedReport = ({
|
|
|
2610
2451
|
},
|
|
2611
2452
|
wrap: false
|
|
2612
2453
|
},
|
|
2613
|
-
/* @__PURE__ */
|
|
2454
|
+
/* @__PURE__ */ React10.createElement(
|
|
2614
2455
|
View9,
|
|
2615
2456
|
{
|
|
2616
2457
|
style: {
|
|
@@ -2620,7 +2461,7 @@ var A4CombinedReport = ({
|
|
|
2620
2461
|
gap: 10
|
|
2621
2462
|
}
|
|
2622
2463
|
},
|
|
2623
|
-
/* @__PURE__ */
|
|
2464
|
+
/* @__PURE__ */ React10.createElement(
|
|
2624
2465
|
View9,
|
|
2625
2466
|
{
|
|
2626
2467
|
style: {
|
|
@@ -2629,14 +2470,14 @@ var A4CombinedReport = ({
|
|
|
2629
2470
|
gap: 10
|
|
2630
2471
|
}
|
|
2631
2472
|
},
|
|
2632
|
-
/* @__PURE__ */
|
|
2633
|
-
/* @__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())
|
|
2634
2475
|
),
|
|
2635
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, first.phone_number)
|
|
2636
2477
|
),
|
|
2637
|
-
/* @__PURE__ */
|
|
2478
|
+
/* @__PURE__ */ React10.createElement(View9, { style: { height: 15, width: "100%" } }),
|
|
2638
2479
|
bookingsArr.map(
|
|
2639
|
-
(booking, idx) => /* @__PURE__ */
|
|
2480
|
+
(booking, idx) => /* @__PURE__ */ React10.createElement(
|
|
2640
2481
|
View9,
|
|
2641
2482
|
{
|
|
2642
2483
|
key: idx,
|
|
@@ -2646,15 +2487,15 @@ var A4CombinedReport = ({
|
|
|
2646
2487
|
marginTop: 25
|
|
2647
2488
|
}
|
|
2648
2489
|
},
|
|
2649
|
-
/* @__PURE__ */
|
|
2490
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, `${booking.devoteeName} ----- ${booking.nakshatra} ----- ${booking.pujaName}`)
|
|
2650
2491
|
)
|
|
2651
2492
|
)
|
|
2652
2493
|
);
|
|
2653
2494
|
}
|
|
2654
2495
|
);
|
|
2655
2496
|
})()
|
|
2656
|
-
)), prasadData.length > 0 && /* @__PURE__ */
|
|
2657
|
-
|
|
2497
|
+
)), prasadData.length > 0 && /* @__PURE__ */ React10.createElement(Page10, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
2498
|
+
Image9,
|
|
2658
2499
|
{
|
|
2659
2500
|
fixed: true,
|
|
2660
2501
|
style: {
|
|
@@ -2664,7 +2505,7 @@ var A4CombinedReport = ({
|
|
|
2664
2505
|
},
|
|
2665
2506
|
src: bmpLogo
|
|
2666
2507
|
}
|
|
2667
|
-
), /* @__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(
|
|
2668
2509
|
View9,
|
|
2669
2510
|
{
|
|
2670
2511
|
style: {
|
|
@@ -2673,7 +2514,7 @@ var A4CombinedReport = ({
|
|
|
2673
2514
|
marginTop: 20
|
|
2674
2515
|
}
|
|
2675
2516
|
},
|
|
2676
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ React10.createElement(
|
|
2677
2518
|
View9,
|
|
2678
2519
|
{
|
|
2679
2520
|
style: {
|
|
@@ -2684,7 +2525,7 @@ var A4CombinedReport = ({
|
|
|
2684
2525
|
fontSize: 10
|
|
2685
2526
|
}
|
|
2686
2527
|
},
|
|
2687
|
-
/* @__PURE__ */
|
|
2528
|
+
/* @__PURE__ */ React10.createElement(
|
|
2688
2529
|
View9,
|
|
2689
2530
|
{
|
|
2690
2531
|
style: {
|
|
@@ -2693,9 +2534,9 @@ var A4CombinedReport = ({
|
|
|
2693
2534
|
width: "10%"
|
|
2694
2535
|
}
|
|
2695
2536
|
},
|
|
2696
|
-
/* @__PURE__ */
|
|
2537
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Sr no")
|
|
2697
2538
|
),
|
|
2698
|
-
/* @__PURE__ */
|
|
2539
|
+
/* @__PURE__ */ React10.createElement(
|
|
2699
2540
|
View9,
|
|
2700
2541
|
{
|
|
2701
2542
|
style: {
|
|
@@ -2704,9 +2545,9 @@ var A4CombinedReport = ({
|
|
|
2704
2545
|
width: "20%"
|
|
2705
2546
|
}
|
|
2706
2547
|
},
|
|
2707
|
-
/* @__PURE__ */
|
|
2548
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Invoice Number")
|
|
2708
2549
|
),
|
|
2709
|
-
/* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ React10.createElement(
|
|
2710
2551
|
View9,
|
|
2711
2552
|
{
|
|
2712
2553
|
style: {
|
|
@@ -2715,9 +2556,9 @@ var A4CombinedReport = ({
|
|
|
2715
2556
|
width: "30%"
|
|
2716
2557
|
}
|
|
2717
2558
|
},
|
|
2718
|
-
/* @__PURE__ */
|
|
2559
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Devotee Name")
|
|
2719
2560
|
),
|
|
2720
|
-
/* @__PURE__ */
|
|
2561
|
+
/* @__PURE__ */ React10.createElement(
|
|
2721
2562
|
View9,
|
|
2722
2563
|
{
|
|
2723
2564
|
style: {
|
|
@@ -2726,9 +2567,9 @@ var A4CombinedReport = ({
|
|
|
2726
2567
|
width: "30%"
|
|
2727
2568
|
}
|
|
2728
2569
|
},
|
|
2729
|
-
/* @__PURE__ */
|
|
2570
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Prasad Name")
|
|
2730
2571
|
),
|
|
2731
|
-
/* @__PURE__ */
|
|
2572
|
+
/* @__PURE__ */ React10.createElement(
|
|
2732
2573
|
View9,
|
|
2733
2574
|
{
|
|
2734
2575
|
style: {
|
|
@@ -2736,11 +2577,11 @@ var A4CombinedReport = ({
|
|
|
2736
2577
|
width: "10%"
|
|
2737
2578
|
}
|
|
2738
2579
|
},
|
|
2739
|
-
/* @__PURE__ */
|
|
2580
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Qty")
|
|
2740
2581
|
)
|
|
2741
2582
|
),
|
|
2742
2583
|
prasadData.map((item, index) => {
|
|
2743
|
-
return /* @__PURE__ */
|
|
2584
|
+
return /* @__PURE__ */ React10.createElement(
|
|
2744
2585
|
View9,
|
|
2745
2586
|
{
|
|
2746
2587
|
style: {
|
|
@@ -2751,7 +2592,7 @@ var A4CombinedReport = ({
|
|
|
2751
2592
|
fontSize: 10
|
|
2752
2593
|
}
|
|
2753
2594
|
},
|
|
2754
|
-
/* @__PURE__ */
|
|
2595
|
+
/* @__PURE__ */ React10.createElement(
|
|
2755
2596
|
View9,
|
|
2756
2597
|
{
|
|
2757
2598
|
style: {
|
|
@@ -2760,9 +2601,9 @@ var A4CombinedReport = ({
|
|
|
2760
2601
|
width: "10%"
|
|
2761
2602
|
}
|
|
2762
2603
|
},
|
|
2763
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, index + 1)
|
|
2764
2605
|
),
|
|
2765
|
-
/* @__PURE__ */
|
|
2606
|
+
/* @__PURE__ */ React10.createElement(
|
|
2766
2607
|
View9,
|
|
2767
2608
|
{
|
|
2768
2609
|
style: {
|
|
@@ -2771,9 +2612,9 @@ var A4CombinedReport = ({
|
|
|
2771
2612
|
width: "20%"
|
|
2772
2613
|
}
|
|
2773
2614
|
},
|
|
2774
|
-
/* @__PURE__ */
|
|
2615
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.invoiceNumber)
|
|
2775
2616
|
),
|
|
2776
|
-
/* @__PURE__ */
|
|
2617
|
+
/* @__PURE__ */ React10.createElement(
|
|
2777
2618
|
View9,
|
|
2778
2619
|
{
|
|
2779
2620
|
style: {
|
|
@@ -2782,9 +2623,9 @@ var A4CombinedReport = ({
|
|
|
2782
2623
|
width: "30%"
|
|
2783
2624
|
}
|
|
2784
2625
|
},
|
|
2785
|
-
/* @__PURE__ */
|
|
2626
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.devoteeName)
|
|
2786
2627
|
),
|
|
2787
|
-
/* @__PURE__ */
|
|
2628
|
+
/* @__PURE__ */ React10.createElement(
|
|
2788
2629
|
View9,
|
|
2789
2630
|
{
|
|
2790
2631
|
style: {
|
|
@@ -2793,9 +2634,9 @@ var A4CombinedReport = ({
|
|
|
2793
2634
|
width: "30%"
|
|
2794
2635
|
}
|
|
2795
2636
|
},
|
|
2796
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.prasadName)
|
|
2797
2638
|
),
|
|
2798
|
-
/* @__PURE__ */
|
|
2639
|
+
/* @__PURE__ */ React10.createElement(
|
|
2799
2640
|
View9,
|
|
2800
2641
|
{
|
|
2801
2642
|
style: {
|
|
@@ -2803,12 +2644,12 @@ var A4CombinedReport = ({
|
|
|
2803
2644
|
width: "10%"
|
|
2804
2645
|
}
|
|
2805
2646
|
},
|
|
2806
|
-
/* @__PURE__ */
|
|
2647
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.quantity)
|
|
2807
2648
|
)
|
|
2808
2649
|
);
|
|
2809
2650
|
})
|
|
2810
|
-
)), deliveryData.length > 0 && /* @__PURE__ */
|
|
2811
|
-
|
|
2651
|
+
)), deliveryData.length > 0 && /* @__PURE__ */ React10.createElement(Page10, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
2652
|
+
Image9,
|
|
2812
2653
|
{
|
|
2813
2654
|
fixed: true,
|
|
2814
2655
|
style: {
|
|
@@ -2818,7 +2659,7 @@ var A4CombinedReport = ({
|
|
|
2818
2659
|
},
|
|
2819
2660
|
src: bmpLogo
|
|
2820
2661
|
}
|
|
2821
|
-
), /* @__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(
|
|
2822
2663
|
View9,
|
|
2823
2664
|
{
|
|
2824
2665
|
style: {
|
|
@@ -2831,7 +2672,7 @@ var A4CombinedReport = ({
|
|
|
2831
2672
|
}
|
|
2832
2673
|
},
|
|
2833
2674
|
deliveryData && deliveryData.map((item) => {
|
|
2834
|
-
return /* @__PURE__ */
|
|
2675
|
+
return /* @__PURE__ */ React10.createElement(
|
|
2835
2676
|
View9,
|
|
2836
2677
|
{
|
|
2837
2678
|
key: item.id,
|
|
@@ -2845,18 +2686,18 @@ var A4CombinedReport = ({
|
|
|
2845
2686
|
padding: 6
|
|
2846
2687
|
}
|
|
2847
2688
|
},
|
|
2848
|
-
/* @__PURE__ */
|
|
2689
|
+
/* @__PURE__ */ React10.createElement(
|
|
2849
2690
|
View9,
|
|
2850
2691
|
{
|
|
2851
2692
|
style: {
|
|
2852
2693
|
flexGrow: 1
|
|
2853
2694
|
}
|
|
2854
2695
|
},
|
|
2855
|
-
/* @__PURE__ */
|
|
2856
|
-
/* @__PURE__ */
|
|
2857
|
-
/* @__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)
|
|
2858
2699
|
),
|
|
2859
|
-
/* @__PURE__ */
|
|
2700
|
+
/* @__PURE__ */ React10.createElement(
|
|
2860
2701
|
View9,
|
|
2861
2702
|
{
|
|
2862
2703
|
style: {
|
|
@@ -2867,7 +2708,7 @@ var A4CombinedReport = ({
|
|
|
2867
2708
|
}
|
|
2868
2709
|
}
|
|
2869
2710
|
),
|
|
2870
|
-
/* @__PURE__ */
|
|
2711
|
+
/* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 9, marginTop: 3 } }, "Note: ", item.pujaDetails)
|
|
2871
2712
|
);
|
|
2872
2713
|
})
|
|
2873
2714
|
))));
|
|
@@ -2875,15 +2716,15 @@ var A4CombinedReport = ({
|
|
|
2875
2716
|
var A4CombinedReport_default = A4CombinedReport;
|
|
2876
2717
|
|
|
2877
2718
|
// src/sizes/a4/A4MultiTemplePaymentReport.tsx
|
|
2878
|
-
import { Document as Document11, Image as
|
|
2879
|
-
import
|
|
2719
|
+
import { Document as Document11, Image as Image10, Page as Page11, View as View10 } from "@react-pdf/renderer";
|
|
2720
|
+
import React11 from "react";
|
|
2880
2721
|
var A4MultiTemplePaymentReport = ({
|
|
2881
2722
|
startDate,
|
|
2882
2723
|
endDate,
|
|
2883
2724
|
data
|
|
2884
2725
|
}) => {
|
|
2885
|
-
return /* @__PURE__ */
|
|
2886
|
-
|
|
2726
|
+
return /* @__PURE__ */ React11.createElement(Document11, null, /* @__PURE__ */ React11.createElement(Page11, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React11.createElement(
|
|
2727
|
+
Image10,
|
|
2887
2728
|
{
|
|
2888
2729
|
fixed: true,
|
|
2889
2730
|
style: {
|
|
@@ -2893,7 +2734,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2893
2734
|
},
|
|
2894
2735
|
src: bmpLogo
|
|
2895
2736
|
}
|
|
2896
|
-
), /* @__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(
|
|
2897
2738
|
View10,
|
|
2898
2739
|
{
|
|
2899
2740
|
style: {
|
|
@@ -2902,7 +2743,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2902
2743
|
marginTop: 20
|
|
2903
2744
|
}
|
|
2904
2745
|
},
|
|
2905
|
-
/* @__PURE__ */
|
|
2746
|
+
/* @__PURE__ */ React11.createElement(
|
|
2906
2747
|
View10,
|
|
2907
2748
|
{
|
|
2908
2749
|
style: {
|
|
@@ -2913,7 +2754,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2913
2754
|
fontSize: 10
|
|
2914
2755
|
}
|
|
2915
2756
|
},
|
|
2916
|
-
/* @__PURE__ */
|
|
2757
|
+
/* @__PURE__ */ React11.createElement(
|
|
2917
2758
|
View10,
|
|
2918
2759
|
{
|
|
2919
2760
|
style: {
|
|
@@ -2922,9 +2763,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2922
2763
|
width: "10%"
|
|
2923
2764
|
}
|
|
2924
2765
|
},
|
|
2925
|
-
/* @__PURE__ */
|
|
2766
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "S.No.")
|
|
2926
2767
|
),
|
|
2927
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ React11.createElement(
|
|
2928
2769
|
View10,
|
|
2929
2770
|
{
|
|
2930
2771
|
style: {
|
|
@@ -2933,9 +2774,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2933
2774
|
width: "55%"
|
|
2934
2775
|
}
|
|
2935
2776
|
},
|
|
2936
|
-
/* @__PURE__ */
|
|
2777
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Temple Name")
|
|
2937
2778
|
),
|
|
2938
|
-
/* @__PURE__ */
|
|
2779
|
+
/* @__PURE__ */ React11.createElement(
|
|
2939
2780
|
View10,
|
|
2940
2781
|
{
|
|
2941
2782
|
style: {
|
|
@@ -2944,9 +2785,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2944
2785
|
width: "15%"
|
|
2945
2786
|
}
|
|
2946
2787
|
},
|
|
2947
|
-
/* @__PURE__ */
|
|
2788
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Bookings")
|
|
2948
2789
|
),
|
|
2949
|
-
/* @__PURE__ */
|
|
2790
|
+
/* @__PURE__ */ React11.createElement(
|
|
2950
2791
|
View10,
|
|
2951
2792
|
{
|
|
2952
2793
|
style: {
|
|
@@ -2954,11 +2795,11 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2954
2795
|
width: "20%"
|
|
2955
2796
|
}
|
|
2956
2797
|
},
|
|
2957
|
-
/* @__PURE__ */
|
|
2798
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Revenue")
|
|
2958
2799
|
)
|
|
2959
2800
|
),
|
|
2960
2801
|
data?.map((temple, index) => {
|
|
2961
|
-
return /* @__PURE__ */
|
|
2802
|
+
return /* @__PURE__ */ React11.createElement(
|
|
2962
2803
|
View10,
|
|
2963
2804
|
{
|
|
2964
2805
|
key: index,
|
|
@@ -2970,7 +2811,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2970
2811
|
fontSize: 10
|
|
2971
2812
|
}
|
|
2972
2813
|
},
|
|
2973
|
-
/* @__PURE__ */
|
|
2814
|
+
/* @__PURE__ */ React11.createElement(
|
|
2974
2815
|
View10,
|
|
2975
2816
|
{
|
|
2976
2817
|
style: {
|
|
@@ -2979,9 +2820,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2979
2820
|
width: "10%"
|
|
2980
2821
|
}
|
|
2981
2822
|
},
|
|
2982
|
-
/* @__PURE__ */
|
|
2823
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, index + 1)
|
|
2983
2824
|
),
|
|
2984
|
-
/* @__PURE__ */
|
|
2825
|
+
/* @__PURE__ */ React11.createElement(
|
|
2985
2826
|
View10,
|
|
2986
2827
|
{
|
|
2987
2828
|
style: {
|
|
@@ -2990,9 +2831,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
2990
2831
|
width: "55%"
|
|
2991
2832
|
}
|
|
2992
2833
|
},
|
|
2993
|
-
/* @__PURE__ */
|
|
2834
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, temple.name)
|
|
2994
2835
|
),
|
|
2995
|
-
/* @__PURE__ */
|
|
2836
|
+
/* @__PURE__ */ React11.createElement(
|
|
2996
2837
|
View10,
|
|
2997
2838
|
{
|
|
2998
2839
|
style: {
|
|
@@ -3001,9 +2842,9 @@ var A4MultiTemplePaymentReport = ({
|
|
|
3001
2842
|
width: "15%"
|
|
3002
2843
|
}
|
|
3003
2844
|
},
|
|
3004
|
-
/* @__PURE__ */
|
|
2845
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, temple.bookings)
|
|
3005
2846
|
),
|
|
3006
|
-
/* @__PURE__ */
|
|
2847
|
+
/* @__PURE__ */ React11.createElement(
|
|
3007
2848
|
View10,
|
|
3008
2849
|
{
|
|
3009
2850
|
style: {
|
|
@@ -3011,7 +2852,7 @@ var A4MultiTemplePaymentReport = ({
|
|
|
3011
2852
|
width: "20%"
|
|
3012
2853
|
}
|
|
3013
2854
|
},
|
|
3014
|
-
/* @__PURE__ */
|
|
2855
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "\u20B9", temple.revenue)
|
|
3015
2856
|
)
|
|
3016
2857
|
);
|
|
3017
2858
|
})
|
|
@@ -3020,15 +2861,15 @@ var A4MultiTemplePaymentReport = ({
|
|
|
3020
2861
|
var A4MultiTemplePaymentReport_default = A4MultiTemplePaymentReport;
|
|
3021
2862
|
|
|
3022
2863
|
// src/sizes/a4/A4SettlementsReport.tsx
|
|
3023
|
-
import
|
|
3024
|
-
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";
|
|
3025
2866
|
var A4SettlementsReport = ({
|
|
3026
2867
|
startDate,
|
|
3027
2868
|
endDate,
|
|
3028
2869
|
templeName,
|
|
3029
2870
|
data
|
|
3030
2871
|
}) => {
|
|
3031
|
-
return /* @__PURE__ */
|
|
2872
|
+
return /* @__PURE__ */ React12.createElement(Document12, null, /* @__PURE__ */ React12.createElement(
|
|
3032
2873
|
Page12,
|
|
3033
2874
|
{
|
|
3034
2875
|
size: "A4",
|
|
@@ -3037,8 +2878,8 @@ var A4SettlementsReport = ({
|
|
|
3037
2878
|
fontFamily: "Noto Sans"
|
|
3038
2879
|
}
|
|
3039
2880
|
},
|
|
3040
|
-
/* @__PURE__ */
|
|
3041
|
-
|
|
2881
|
+
/* @__PURE__ */ React12.createElement(
|
|
2882
|
+
Image11,
|
|
3042
2883
|
{
|
|
3043
2884
|
fixed: true,
|
|
3044
2885
|
style: {
|
|
@@ -3049,11 +2890,11 @@ var A4SettlementsReport = ({
|
|
|
3049
2890
|
src: bmpLogo
|
|
3050
2891
|
}
|
|
3051
2892
|
),
|
|
3052
|
-
/* @__PURE__ */
|
|
3053
|
-
/* @__PURE__ */
|
|
3054
|
-
/* @__PURE__ */
|
|
3055
|
-
/* @__PURE__ */
|
|
3056
|
-
data.settlements.length > 0 ? /* @__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(
|
|
3057
2898
|
View11,
|
|
3058
2899
|
{
|
|
3059
2900
|
style: {
|
|
@@ -3062,7 +2903,7 @@ var A4SettlementsReport = ({
|
|
|
3062
2903
|
marginTop: 20
|
|
3063
2904
|
}
|
|
3064
2905
|
},
|
|
3065
|
-
/* @__PURE__ */
|
|
2906
|
+
/* @__PURE__ */ React12.createElement(
|
|
3066
2907
|
View11,
|
|
3067
2908
|
{
|
|
3068
2909
|
style: {
|
|
@@ -3073,7 +2914,7 @@ var A4SettlementsReport = ({
|
|
|
3073
2914
|
fontWeight: "semibold"
|
|
3074
2915
|
}
|
|
3075
2916
|
},
|
|
3076
|
-
/* @__PURE__ */
|
|
2917
|
+
/* @__PURE__ */ React12.createElement(
|
|
3077
2918
|
View11,
|
|
3078
2919
|
{
|
|
3079
2920
|
style: {
|
|
@@ -3082,9 +2923,9 @@ var A4SettlementsReport = ({
|
|
|
3082
2923
|
width: "10%"
|
|
3083
2924
|
}
|
|
3084
2925
|
},
|
|
3085
|
-
/* @__PURE__ */
|
|
2926
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Sr no")
|
|
3086
2927
|
),
|
|
3087
|
-
/* @__PURE__ */
|
|
2928
|
+
/* @__PURE__ */ React12.createElement(
|
|
3088
2929
|
View11,
|
|
3089
2930
|
{
|
|
3090
2931
|
style: {
|
|
@@ -3093,9 +2934,9 @@ var A4SettlementsReport = ({
|
|
|
3093
2934
|
width: "15%"
|
|
3094
2935
|
}
|
|
3095
2936
|
},
|
|
3096
|
-
/* @__PURE__ */
|
|
2937
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Date")
|
|
3097
2938
|
),
|
|
3098
|
-
/* @__PURE__ */
|
|
2939
|
+
/* @__PURE__ */ React12.createElement(
|
|
3099
2940
|
View11,
|
|
3100
2941
|
{
|
|
3101
2942
|
style: {
|
|
@@ -3104,9 +2945,9 @@ var A4SettlementsReport = ({
|
|
|
3104
2945
|
width: "15%"
|
|
3105
2946
|
}
|
|
3106
2947
|
},
|
|
3107
|
-
/* @__PURE__ */
|
|
2948
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Settlement")
|
|
3108
2949
|
),
|
|
3109
|
-
/* @__PURE__ */
|
|
2950
|
+
/* @__PURE__ */ React12.createElement(
|
|
3110
2951
|
View11,
|
|
3111
2952
|
{
|
|
3112
2953
|
style: {
|
|
@@ -3115,9 +2956,9 @@ var A4SettlementsReport = ({
|
|
|
3115
2956
|
width: "20%"
|
|
3116
2957
|
}
|
|
3117
2958
|
},
|
|
3118
|
-
/* @__PURE__ */
|
|
2959
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "UTR")
|
|
3119
2960
|
),
|
|
3120
|
-
/* @__PURE__ */
|
|
2961
|
+
/* @__PURE__ */ React12.createElement(
|
|
3121
2962
|
View11,
|
|
3122
2963
|
{
|
|
3123
2964
|
style: {
|
|
@@ -3126,9 +2967,9 @@ var A4SettlementsReport = ({
|
|
|
3126
2967
|
width: "25%"
|
|
3127
2968
|
}
|
|
3128
2969
|
},
|
|
3129
|
-
/* @__PURE__ */
|
|
2970
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Invoice")
|
|
3130
2971
|
),
|
|
3131
|
-
/* @__PURE__ */
|
|
2972
|
+
/* @__PURE__ */ React12.createElement(
|
|
3132
2973
|
View11,
|
|
3133
2974
|
{
|
|
3134
2975
|
style: {
|
|
@@ -3137,11 +2978,11 @@ var A4SettlementsReport = ({
|
|
|
3137
2978
|
width: "20%"
|
|
3138
2979
|
}
|
|
3139
2980
|
},
|
|
3140
|
-
/* @__PURE__ */
|
|
2981
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Settlement ID")
|
|
3141
2982
|
)
|
|
3142
2983
|
),
|
|
3143
2984
|
data.settlements?.map((item, index) => {
|
|
3144
|
-
return /* @__PURE__ */
|
|
2985
|
+
return /* @__PURE__ */ React12.createElement(
|
|
3145
2986
|
View11,
|
|
3146
2987
|
{
|
|
3147
2988
|
style: {
|
|
@@ -3152,7 +2993,7 @@ var A4SettlementsReport = ({
|
|
|
3152
2993
|
fontSize: 10
|
|
3153
2994
|
}
|
|
3154
2995
|
},
|
|
3155
|
-
/* @__PURE__ */
|
|
2996
|
+
/* @__PURE__ */ React12.createElement(
|
|
3156
2997
|
View11,
|
|
3157
2998
|
{
|
|
3158
2999
|
style: {
|
|
@@ -3161,9 +3002,9 @@ var A4SettlementsReport = ({
|
|
|
3161
3002
|
width: "10%"
|
|
3162
3003
|
}
|
|
3163
3004
|
},
|
|
3164
|
-
/* @__PURE__ */
|
|
3005
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, index + 1)
|
|
3165
3006
|
),
|
|
3166
|
-
/* @__PURE__ */
|
|
3007
|
+
/* @__PURE__ */ React12.createElement(
|
|
3167
3008
|
View11,
|
|
3168
3009
|
{
|
|
3169
3010
|
style: {
|
|
@@ -3173,9 +3014,9 @@ var A4SettlementsReport = ({
|
|
|
3173
3014
|
borderRight: "1px solid #000"
|
|
3174
3015
|
}
|
|
3175
3016
|
},
|
|
3176
|
-
/* @__PURE__ */
|
|
3017
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, item.date)
|
|
3177
3018
|
),
|
|
3178
|
-
/* @__PURE__ */
|
|
3019
|
+
/* @__PURE__ */ React12.createElement(
|
|
3179
3020
|
View11,
|
|
3180
3021
|
{
|
|
3181
3022
|
style: {
|
|
@@ -3184,9 +3025,9 @@ var A4SettlementsReport = ({
|
|
|
3184
3025
|
width: "15%"
|
|
3185
3026
|
}
|
|
3186
3027
|
},
|
|
3187
|
-
/* @__PURE__ */
|
|
3028
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, item.settlement_amount)
|
|
3188
3029
|
),
|
|
3189
|
-
/* @__PURE__ */
|
|
3030
|
+
/* @__PURE__ */ React12.createElement(
|
|
3190
3031
|
View11,
|
|
3191
3032
|
{
|
|
3192
3033
|
style: {
|
|
@@ -3196,9 +3037,9 @@ var A4SettlementsReport = ({
|
|
|
3196
3037
|
fontSize: 9
|
|
3197
3038
|
}
|
|
3198
3039
|
},
|
|
3199
|
-
/* @__PURE__ */
|
|
3040
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, item.utr.split("").map((line, index2) => /* @__PURE__ */ React12.createElement(Text_default, { key: index2 }, line)))
|
|
3200
3041
|
),
|
|
3201
|
-
/* @__PURE__ */
|
|
3042
|
+
/* @__PURE__ */ React12.createElement(
|
|
3202
3043
|
View11,
|
|
3203
3044
|
{
|
|
3204
3045
|
style: {
|
|
@@ -3208,7 +3049,7 @@ var A4SettlementsReport = ({
|
|
|
3208
3049
|
fontSize: 9
|
|
3209
3050
|
}
|
|
3210
3051
|
},
|
|
3211
|
-
/* @__PURE__ */
|
|
3052
|
+
/* @__PURE__ */ React12.createElement(
|
|
3212
3053
|
View11,
|
|
3213
3054
|
{
|
|
3214
3055
|
style: {
|
|
@@ -3216,10 +3057,10 @@ var A4SettlementsReport = ({
|
|
|
3216
3057
|
flexDirection: "column"
|
|
3217
3058
|
}
|
|
3218
3059
|
},
|
|
3219
|
-
item.invoices.map((invoice, idx) => /* @__PURE__ */
|
|
3060
|
+
item.invoices.map((invoice, idx) => /* @__PURE__ */ React12.createElement(Text_default, { key: idx }, invoice.number, " (", invoice.amount, ")"))
|
|
3220
3061
|
)
|
|
3221
3062
|
),
|
|
3222
|
-
/* @__PURE__ */
|
|
3063
|
+
/* @__PURE__ */ React12.createElement(
|
|
3223
3064
|
View11,
|
|
3224
3065
|
{
|
|
3225
3066
|
style: {
|
|
@@ -3228,11 +3069,11 @@ var A4SettlementsReport = ({
|
|
|
3228
3069
|
width: "20%"
|
|
3229
3070
|
}
|
|
3230
3071
|
},
|
|
3231
|
-
/* @__PURE__ */
|
|
3072
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, item.settlement_id)
|
|
3232
3073
|
)
|
|
3233
3074
|
);
|
|
3234
3075
|
})
|
|
3235
|
-
) : /* @__PURE__ */
|
|
3076
|
+
) : /* @__PURE__ */ React12.createElement(
|
|
3236
3077
|
Text_default,
|
|
3237
3078
|
{
|
|
3238
3079
|
style: {
|
|
@@ -3248,10 +3089,10 @@ var A4SettlementsReport = ({
|
|
|
3248
3089
|
var A4SettlementsReport_default = A4SettlementsReport;
|
|
3249
3090
|
|
|
3250
3091
|
// src/sizes/a4/A4Invoice.tsx
|
|
3251
|
-
import
|
|
3252
|
-
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";
|
|
3253
3094
|
var A4Invoice = ({ data }) => {
|
|
3254
|
-
return /* @__PURE__ */
|
|
3095
|
+
return /* @__PURE__ */ React13.createElement(Document13, null, /* @__PURE__ */ React13.createElement(Page13, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
|
|
3255
3096
|
View12,
|
|
3256
3097
|
{
|
|
3257
3098
|
style: {
|
|
@@ -3259,7 +3100,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3259
3100
|
flexDirection: "row"
|
|
3260
3101
|
}
|
|
3261
3102
|
},
|
|
3262
|
-
/* @__PURE__ */
|
|
3103
|
+
/* @__PURE__ */ React13.createElement(
|
|
3263
3104
|
View12,
|
|
3264
3105
|
{
|
|
3265
3106
|
style: {
|
|
@@ -3269,7 +3110,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3269
3110
|
}
|
|
3270
3111
|
}
|
|
3271
3112
|
),
|
|
3272
|
-
/* @__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(
|
|
3273
3114
|
View12,
|
|
3274
3115
|
{
|
|
3275
3116
|
style: {
|
|
@@ -3280,9 +3121,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3280
3121
|
alignItems: "center"
|
|
3281
3122
|
}
|
|
3282
3123
|
},
|
|
3283
|
-
/* @__PURE__ */
|
|
3284
|
-
/* @__PURE__ */
|
|
3285
|
-
|
|
3124
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 10, marginTop: -5 } }, "Powered by"),
|
|
3125
|
+
/* @__PURE__ */ React13.createElement(
|
|
3126
|
+
Image12,
|
|
3286
3127
|
{
|
|
3287
3128
|
style: {
|
|
3288
3129
|
height: 25,
|
|
@@ -3294,7 +3135,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3294
3135
|
}
|
|
3295
3136
|
)
|
|
3296
3137
|
))
|
|
3297
|
-
), /* @__PURE__ */
|
|
3138
|
+
), /* @__PURE__ */ React13.createElement(
|
|
3298
3139
|
View12,
|
|
3299
3140
|
{
|
|
3300
3141
|
style: {
|
|
@@ -3305,8 +3146,8 @@ var A4Invoice = ({ data }) => {
|
|
|
3305
3146
|
position: "relative"
|
|
3306
3147
|
}
|
|
3307
3148
|
},
|
|
3308
|
-
data.status === "confirmed" ? /* @__PURE__ */
|
|
3309
|
-
|
|
3149
|
+
data.status === "confirmed" ? /* @__PURE__ */ React13.createElement(
|
|
3150
|
+
Image12,
|
|
3310
3151
|
{
|
|
3311
3152
|
style: {
|
|
3312
3153
|
height: 85,
|
|
@@ -3320,20 +3161,20 @@ var A4Invoice = ({ data }) => {
|
|
|
3320
3161
|
src: paidIcon
|
|
3321
3162
|
}
|
|
3322
3163
|
) : null,
|
|
3323
|
-
/* @__PURE__ */
|
|
3324
|
-
/* @__PURE__ */
|
|
3325
|
-
), /* @__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(
|
|
3326
3167
|
View12,
|
|
3327
3168
|
{
|
|
3328
3169
|
style: {
|
|
3329
3170
|
marginTop: 10
|
|
3330
3171
|
}
|
|
3331
3172
|
},
|
|
3332
|
-
/* @__PURE__ */
|
|
3333
|
-
/* @__PURE__ */
|
|
3334
|
-
data.devoteeDetails.phone ? /* @__PURE__ */
|
|
3335
|
-
/* @__PURE__ */
|
|
3336
|
-
), /* @__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(
|
|
3337
3178
|
View12,
|
|
3338
3179
|
{
|
|
3339
3180
|
style: {
|
|
@@ -3342,7 +3183,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3342
3183
|
marginTop: 20
|
|
3343
3184
|
}
|
|
3344
3185
|
},
|
|
3345
|
-
/* @__PURE__ */
|
|
3186
|
+
/* @__PURE__ */ React13.createElement(
|
|
3346
3187
|
View12,
|
|
3347
3188
|
{
|
|
3348
3189
|
style: {
|
|
@@ -3353,7 +3194,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3353
3194
|
fontWeight: "semibold"
|
|
3354
3195
|
}
|
|
3355
3196
|
},
|
|
3356
|
-
/* @__PURE__ */
|
|
3197
|
+
/* @__PURE__ */ React13.createElement(
|
|
3357
3198
|
View12,
|
|
3358
3199
|
{
|
|
3359
3200
|
style: {
|
|
@@ -3362,9 +3203,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3362
3203
|
width: "50%"
|
|
3363
3204
|
}
|
|
3364
3205
|
},
|
|
3365
|
-
/* @__PURE__ */
|
|
3206
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Item Description")
|
|
3366
3207
|
),
|
|
3367
|
-
/* @__PURE__ */
|
|
3208
|
+
/* @__PURE__ */ React13.createElement(
|
|
3368
3209
|
View12,
|
|
3369
3210
|
{
|
|
3370
3211
|
style: {
|
|
@@ -3374,9 +3215,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3374
3215
|
textAlign: "center"
|
|
3375
3216
|
}
|
|
3376
3217
|
},
|
|
3377
|
-
/* @__PURE__ */
|
|
3218
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Price")
|
|
3378
3219
|
),
|
|
3379
|
-
/* @__PURE__ */
|
|
3220
|
+
/* @__PURE__ */ React13.createElement(
|
|
3380
3221
|
View12,
|
|
3381
3222
|
{
|
|
3382
3223
|
style: {
|
|
@@ -3386,9 +3227,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3386
3227
|
textAlign: "center"
|
|
3387
3228
|
}
|
|
3388
3229
|
},
|
|
3389
|
-
/* @__PURE__ */
|
|
3230
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Quantity")
|
|
3390
3231
|
),
|
|
3391
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ React13.createElement(
|
|
3392
3233
|
View12,
|
|
3393
3234
|
{
|
|
3394
3235
|
style: {
|
|
@@ -3398,11 +3239,11 @@ var A4Invoice = ({ data }) => {
|
|
|
3398
3239
|
textAlign: "center"
|
|
3399
3240
|
}
|
|
3400
3241
|
},
|
|
3401
|
-
/* @__PURE__ */
|
|
3242
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Total")
|
|
3402
3243
|
)
|
|
3403
3244
|
),
|
|
3404
3245
|
data.items.map((item, index) => {
|
|
3405
|
-
return /* @__PURE__ */
|
|
3246
|
+
return /* @__PURE__ */ React13.createElement(
|
|
3406
3247
|
View12,
|
|
3407
3248
|
{
|
|
3408
3249
|
wrap: false,
|
|
@@ -3413,7 +3254,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3413
3254
|
fontSize: 10
|
|
3414
3255
|
}
|
|
3415
3256
|
},
|
|
3416
|
-
/* @__PURE__ */
|
|
3257
|
+
/* @__PURE__ */ React13.createElement(
|
|
3417
3258
|
View12,
|
|
3418
3259
|
{
|
|
3419
3260
|
style: {
|
|
@@ -3422,7 +3263,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3422
3263
|
width: "50%"
|
|
3423
3264
|
}
|
|
3424
3265
|
},
|
|
3425
|
-
item.pujaName ? /* @__PURE__ */
|
|
3266
|
+
item.pujaName ? /* @__PURE__ */ React13.createElement(
|
|
3426
3267
|
Text_default,
|
|
3427
3268
|
{
|
|
3428
3269
|
style: {
|
|
@@ -3431,7 +3272,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3431
3272
|
},
|
|
3432
3273
|
item.pujaName
|
|
3433
3274
|
) : null,
|
|
3434
|
-
item.devoteesName ? /* @__PURE__ */
|
|
3275
|
+
item.devoteesName ? /* @__PURE__ */ React13.createElement(
|
|
3435
3276
|
Text_default,
|
|
3436
3277
|
{
|
|
3437
3278
|
style: {
|
|
@@ -3441,7 +3282,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3441
3282
|
},
|
|
3442
3283
|
item.devoteesName
|
|
3443
3284
|
) : null,
|
|
3444
|
-
item.pujaDate ? /* @__PURE__ */
|
|
3285
|
+
item.pujaDate ? /* @__PURE__ */ React13.createElement(
|
|
3445
3286
|
Text_default,
|
|
3446
3287
|
{
|
|
3447
3288
|
style: {
|
|
@@ -3453,7 +3294,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3453
3294
|
" ",
|
|
3454
3295
|
item.timing ? `- ${item.timing}` : null
|
|
3455
3296
|
) : null,
|
|
3456
|
-
item.repeatEndDate && item.repeatStartDate ? /* @__PURE__ */
|
|
3297
|
+
item.repeatEndDate && item.repeatStartDate ? /* @__PURE__ */ React13.createElement(
|
|
3457
3298
|
Text_default,
|
|
3458
3299
|
{
|
|
3459
3300
|
style: {
|
|
@@ -3468,7 +3309,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3468
3309
|
item.timing ? `- ${item.timing}` : null
|
|
3469
3310
|
) : null
|
|
3470
3311
|
),
|
|
3471
|
-
/* @__PURE__ */
|
|
3312
|
+
/* @__PURE__ */ React13.createElement(
|
|
3472
3313
|
View12,
|
|
3473
3314
|
{
|
|
3474
3315
|
style: {
|
|
@@ -3481,9 +3322,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3481
3322
|
justifyContent: "center"
|
|
3482
3323
|
}
|
|
3483
3324
|
},
|
|
3484
|
-
/* @__PURE__ */
|
|
3325
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: {} }, item.basePujPrice)
|
|
3485
3326
|
),
|
|
3486
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ React13.createElement(
|
|
3487
3328
|
View12,
|
|
3488
3329
|
{
|
|
3489
3330
|
style: {
|
|
@@ -3496,9 +3337,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3496
3337
|
justifyContent: "center"
|
|
3497
3338
|
}
|
|
3498
3339
|
},
|
|
3499
|
-
/* @__PURE__ */
|
|
3340
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: {} }, `${item.quantity ? item.quantity : ""}${item.repeatCount ? ` x ${item.repeatCount}` : ""}`)
|
|
3500
3341
|
),
|
|
3501
|
-
/* @__PURE__ */
|
|
3342
|
+
/* @__PURE__ */ React13.createElement(
|
|
3502
3343
|
View12,
|
|
3503
3344
|
{
|
|
3504
3345
|
style: {
|
|
@@ -3510,11 +3351,11 @@ var A4Invoice = ({ data }) => {
|
|
|
3510
3351
|
justifyContent: "center"
|
|
3511
3352
|
}
|
|
3512
3353
|
},
|
|
3513
|
-
/* @__PURE__ */
|
|
3354
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: {} }, item.totalPrice)
|
|
3514
3355
|
)
|
|
3515
3356
|
);
|
|
3516
3357
|
})
|
|
3517
|
-
), /* @__PURE__ */
|
|
3358
|
+
), /* @__PURE__ */ React13.createElement(
|
|
3518
3359
|
View12,
|
|
3519
3360
|
{
|
|
3520
3361
|
style: {
|
|
@@ -3524,7 +3365,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3524
3365
|
marginHorizontal: 20
|
|
3525
3366
|
}
|
|
3526
3367
|
},
|
|
3527
|
-
/* @__PURE__ */
|
|
3368
|
+
/* @__PURE__ */ React13.createElement(
|
|
3528
3369
|
View12,
|
|
3529
3370
|
{
|
|
3530
3371
|
style: {
|
|
@@ -3535,7 +3376,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3535
3376
|
fontSize: 11
|
|
3536
3377
|
}
|
|
3537
3378
|
},
|
|
3538
|
-
/* @__PURE__ */
|
|
3379
|
+
/* @__PURE__ */ React13.createElement(
|
|
3539
3380
|
Text_default,
|
|
3540
3381
|
{
|
|
3541
3382
|
style: {
|
|
@@ -3544,9 +3385,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3544
3385
|
},
|
|
3545
3386
|
"Payment Method:"
|
|
3546
3387
|
),
|
|
3547
|
-
/* @__PURE__ */
|
|
3388
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.paymentMethod)
|
|
3548
3389
|
),
|
|
3549
|
-
/* @__PURE__ */
|
|
3390
|
+
/* @__PURE__ */ React13.createElement(
|
|
3550
3391
|
View12,
|
|
3551
3392
|
{
|
|
3552
3393
|
style: {
|
|
@@ -3557,7 +3398,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3557
3398
|
alignItems: "flex-end"
|
|
3558
3399
|
}
|
|
3559
3400
|
},
|
|
3560
|
-
/* @__PURE__ */
|
|
3401
|
+
/* @__PURE__ */ React13.createElement(
|
|
3561
3402
|
View12,
|
|
3562
3403
|
{
|
|
3563
3404
|
style: {
|
|
@@ -3567,7 +3408,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3567
3408
|
fontSize: 10
|
|
3568
3409
|
}
|
|
3569
3410
|
},
|
|
3570
|
-
/* @__PURE__ */
|
|
3411
|
+
/* @__PURE__ */ React13.createElement(
|
|
3571
3412
|
View12,
|
|
3572
3413
|
{
|
|
3573
3414
|
style: {
|
|
@@ -3575,9 +3416,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3575
3416
|
textAlign: "right"
|
|
3576
3417
|
}
|
|
3577
3418
|
},
|
|
3578
|
-
/* @__PURE__ */
|
|
3419
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Subtotal: ")
|
|
3579
3420
|
),
|
|
3580
|
-
/* @__PURE__ */
|
|
3421
|
+
/* @__PURE__ */ React13.createElement(
|
|
3581
3422
|
View12,
|
|
3582
3423
|
{
|
|
3583
3424
|
style: {
|
|
@@ -3585,10 +3426,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3585
3426
|
textAlign: "right"
|
|
3586
3427
|
}
|
|
3587
3428
|
},
|
|
3588
|
-
/* @__PURE__ */
|
|
3429
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.subTotal)
|
|
3589
3430
|
)
|
|
3590
3431
|
),
|
|
3591
|
-
data.postalCharges ? /* @__PURE__ */
|
|
3432
|
+
data.postalCharges ? /* @__PURE__ */ React13.createElement(
|
|
3592
3433
|
View12,
|
|
3593
3434
|
{
|
|
3594
3435
|
style: {
|
|
@@ -3598,7 +3439,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3598
3439
|
fontSize: 10
|
|
3599
3440
|
}
|
|
3600
3441
|
},
|
|
3601
|
-
/* @__PURE__ */
|
|
3442
|
+
/* @__PURE__ */ React13.createElement(
|
|
3602
3443
|
View12,
|
|
3603
3444
|
{
|
|
3604
3445
|
style: {
|
|
@@ -3606,9 +3447,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3606
3447
|
textAlign: "right"
|
|
3607
3448
|
}
|
|
3608
3449
|
},
|
|
3609
|
-
/* @__PURE__ */
|
|
3450
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Postal Charges: ")
|
|
3610
3451
|
),
|
|
3611
|
-
/* @__PURE__ */
|
|
3452
|
+
/* @__PURE__ */ React13.createElement(
|
|
3612
3453
|
View12,
|
|
3613
3454
|
{
|
|
3614
3455
|
style: {
|
|
@@ -3616,10 +3457,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3616
3457
|
textAlign: "right"
|
|
3617
3458
|
}
|
|
3618
3459
|
},
|
|
3619
|
-
/* @__PURE__ */
|
|
3460
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.postalCharges)
|
|
3620
3461
|
)
|
|
3621
3462
|
) : null,
|
|
3622
|
-
/* @__PURE__ */
|
|
3463
|
+
/* @__PURE__ */ React13.createElement(
|
|
3623
3464
|
View12,
|
|
3624
3465
|
{
|
|
3625
3466
|
style: {
|
|
@@ -3629,7 +3470,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3629
3470
|
fontSize: 10
|
|
3630
3471
|
}
|
|
3631
3472
|
},
|
|
3632
|
-
/* @__PURE__ */
|
|
3473
|
+
/* @__PURE__ */ React13.createElement(
|
|
3633
3474
|
View12,
|
|
3634
3475
|
{
|
|
3635
3476
|
style: {
|
|
@@ -3637,9 +3478,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3637
3478
|
textAlign: "right"
|
|
3638
3479
|
}
|
|
3639
3480
|
},
|
|
3640
|
-
/* @__PURE__ */
|
|
3481
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Payment Gateway Charges: ")
|
|
3641
3482
|
),
|
|
3642
|
-
/* @__PURE__ */
|
|
3483
|
+
/* @__PURE__ */ React13.createElement(
|
|
3643
3484
|
View12,
|
|
3644
3485
|
{
|
|
3645
3486
|
style: {
|
|
@@ -3647,10 +3488,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3647
3488
|
textAlign: "right"
|
|
3648
3489
|
}
|
|
3649
3490
|
},
|
|
3650
|
-
/* @__PURE__ */
|
|
3491
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.paymentGatewayCharges)
|
|
3651
3492
|
)
|
|
3652
3493
|
),
|
|
3653
|
-
/* @__PURE__ */
|
|
3494
|
+
/* @__PURE__ */ React13.createElement(
|
|
3654
3495
|
View12,
|
|
3655
3496
|
{
|
|
3656
3497
|
style: {
|
|
@@ -3660,7 +3501,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3660
3501
|
fontSize: 10
|
|
3661
3502
|
}
|
|
3662
3503
|
},
|
|
3663
|
-
/* @__PURE__ */
|
|
3504
|
+
/* @__PURE__ */ React13.createElement(
|
|
3664
3505
|
View12,
|
|
3665
3506
|
{
|
|
3666
3507
|
style: {
|
|
@@ -3668,9 +3509,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3668
3509
|
textAlign: "right"
|
|
3669
3510
|
}
|
|
3670
3511
|
},
|
|
3671
|
-
/* @__PURE__ */
|
|
3512
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Platform Charges: ")
|
|
3672
3513
|
),
|
|
3673
|
-
/* @__PURE__ */
|
|
3514
|
+
/* @__PURE__ */ React13.createElement(
|
|
3674
3515
|
View12,
|
|
3675
3516
|
{
|
|
3676
3517
|
style: {
|
|
@@ -3678,10 +3519,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3678
3519
|
textAlign: "right"
|
|
3679
3520
|
}
|
|
3680
3521
|
},
|
|
3681
|
-
/* @__PURE__ */
|
|
3522
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.platformCharges)
|
|
3682
3523
|
)
|
|
3683
3524
|
),
|
|
3684
|
-
/* @__PURE__ */
|
|
3525
|
+
/* @__PURE__ */ React13.createElement(
|
|
3685
3526
|
View12,
|
|
3686
3527
|
{
|
|
3687
3528
|
style: {
|
|
@@ -3691,7 +3532,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3691
3532
|
fontSize: 10
|
|
3692
3533
|
}
|
|
3693
3534
|
},
|
|
3694
|
-
/* @__PURE__ */
|
|
3535
|
+
/* @__PURE__ */ React13.createElement(
|
|
3695
3536
|
View12,
|
|
3696
3537
|
{
|
|
3697
3538
|
style: {
|
|
@@ -3699,9 +3540,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3699
3540
|
textAlign: "right"
|
|
3700
3541
|
}
|
|
3701
3542
|
},
|
|
3702
|
-
/* @__PURE__ */
|
|
3543
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "GST (18%): ")
|
|
3703
3544
|
),
|
|
3704
|
-
/* @__PURE__ */
|
|
3545
|
+
/* @__PURE__ */ React13.createElement(
|
|
3705
3546
|
View12,
|
|
3706
3547
|
{
|
|
3707
3548
|
style: {
|
|
@@ -3709,10 +3550,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3709
3550
|
textAlign: "right"
|
|
3710
3551
|
}
|
|
3711
3552
|
},
|
|
3712
|
-
/* @__PURE__ */
|
|
3553
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.gst)
|
|
3713
3554
|
)
|
|
3714
3555
|
),
|
|
3715
|
-
/* @__PURE__ */
|
|
3556
|
+
/* @__PURE__ */ React13.createElement(
|
|
3716
3557
|
View12,
|
|
3717
3558
|
{
|
|
3718
3559
|
style: {
|
|
@@ -3723,7 +3564,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3723
3564
|
}
|
|
3724
3565
|
}
|
|
3725
3566
|
),
|
|
3726
|
-
/* @__PURE__ */
|
|
3567
|
+
/* @__PURE__ */ React13.createElement(
|
|
3727
3568
|
View12,
|
|
3728
3569
|
{
|
|
3729
3570
|
style: {
|
|
@@ -3734,7 +3575,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3734
3575
|
fontWeight: "bold"
|
|
3735
3576
|
}
|
|
3736
3577
|
},
|
|
3737
|
-
/* @__PURE__ */
|
|
3578
|
+
/* @__PURE__ */ React13.createElement(
|
|
3738
3579
|
View12,
|
|
3739
3580
|
{
|
|
3740
3581
|
style: {
|
|
@@ -3742,9 +3583,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3742
3583
|
textAlign: "right"
|
|
3743
3584
|
}
|
|
3744
3585
|
},
|
|
3745
|
-
/* @__PURE__ */
|
|
3586
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Total: ")
|
|
3746
3587
|
),
|
|
3747
|
-
/* @__PURE__ */
|
|
3588
|
+
/* @__PURE__ */ React13.createElement(
|
|
3748
3589
|
View12,
|
|
3749
3590
|
{
|
|
3750
3591
|
style: {
|
|
@@ -3752,11 +3593,11 @@ var A4Invoice = ({ data }) => {
|
|
|
3752
3593
|
textAlign: "right"
|
|
3753
3594
|
}
|
|
3754
3595
|
},
|
|
3755
|
-
/* @__PURE__ */
|
|
3596
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, data.totalAmount)
|
|
3756
3597
|
)
|
|
3757
3598
|
)
|
|
3758
3599
|
)
|
|
3759
|
-
), 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(
|
|
3760
3601
|
View12,
|
|
3761
3602
|
{
|
|
3762
3603
|
style: {
|
|
@@ -3765,7 +3606,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3765
3606
|
marginBottom: 30
|
|
3766
3607
|
}
|
|
3767
3608
|
},
|
|
3768
|
-
/* @__PURE__ */
|
|
3609
|
+
/* @__PURE__ */ React13.createElement(
|
|
3769
3610
|
View12,
|
|
3770
3611
|
{
|
|
3771
3612
|
style: {
|
|
@@ -3773,9 +3614,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3773
3614
|
padding: 5
|
|
3774
3615
|
}
|
|
3775
3616
|
},
|
|
3776
|
-
/* @__PURE__ */
|
|
3617
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 10, fontWeight: "bold", color: "white" } }, "Prasadsam Details")
|
|
3777
3618
|
),
|
|
3778
|
-
data.prasads.morning.length > 0 ? /* @__PURE__ */
|
|
3619
|
+
data.prasads.morning.length > 0 ? /* @__PURE__ */ React13.createElement(
|
|
3779
3620
|
View12,
|
|
3780
3621
|
{
|
|
3781
3622
|
wrap: false,
|
|
@@ -3789,10 +3630,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3789
3630
|
borderLeft: "1px solid #757575"
|
|
3790
3631
|
}
|
|
3791
3632
|
},
|
|
3792
|
-
/* @__PURE__ */
|
|
3793
|
-
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, ")"))
|
|
3794
3635
|
) : null,
|
|
3795
|
-
data.prasads.afternoon.length > 0 ? /* @__PURE__ */
|
|
3636
|
+
data.prasads.afternoon.length > 0 ? /* @__PURE__ */ React13.createElement(
|
|
3796
3637
|
View12,
|
|
3797
3638
|
{
|
|
3798
3639
|
wrap: false,
|
|
@@ -3806,10 +3647,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3806
3647
|
borderLeft: "1px solid #757575"
|
|
3807
3648
|
}
|
|
3808
3649
|
},
|
|
3809
|
-
/* @__PURE__ */
|
|
3810
|
-
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, ")"))
|
|
3811
3652
|
) : null,
|
|
3812
|
-
data.prasads.evening.length > 0 ? /* @__PURE__ */
|
|
3653
|
+
data.prasads.evening.length > 0 ? /* @__PURE__ */ React13.createElement(
|
|
3813
3654
|
View12,
|
|
3814
3655
|
{
|
|
3815
3656
|
wrap: false,
|
|
@@ -3823,10 +3664,10 @@ var A4Invoice = ({ data }) => {
|
|
|
3823
3664
|
borderLeft: "1px solid #757575"
|
|
3824
3665
|
}
|
|
3825
3666
|
},
|
|
3826
|
-
/* @__PURE__ */
|
|
3827
|
-
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, ")"))
|
|
3828
3669
|
) : null
|
|
3829
|
-
) : null, data.instructions.length > 0 ? /* @__PURE__ */
|
|
3670
|
+
) : null, data.instructions.length > 0 ? /* @__PURE__ */ React13.createElement(
|
|
3830
3671
|
View12,
|
|
3831
3672
|
{
|
|
3832
3673
|
style: {
|
|
@@ -3837,7 +3678,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3837
3678
|
border: "1px solid #757575"
|
|
3838
3679
|
}
|
|
3839
3680
|
},
|
|
3840
|
-
/* @__PURE__ */
|
|
3681
|
+
/* @__PURE__ */ React13.createElement(
|
|
3841
3682
|
View12,
|
|
3842
3683
|
{
|
|
3843
3684
|
style: {
|
|
@@ -3846,9 +3687,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3846
3687
|
paddingVertical: 5
|
|
3847
3688
|
}
|
|
3848
3689
|
},
|
|
3849
|
-
/* @__PURE__ */
|
|
3690
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "IMPORTANT INSTRUCTIONS:")
|
|
3850
3691
|
),
|
|
3851
|
-
/* @__PURE__ */
|
|
3692
|
+
/* @__PURE__ */ React13.createElement(
|
|
3852
3693
|
View12,
|
|
3853
3694
|
{
|
|
3854
3695
|
style: {
|
|
@@ -3859,9 +3700,9 @@ var A4Invoice = ({ data }) => {
|
|
|
3859
3700
|
paddingHorizontal: 10
|
|
3860
3701
|
}
|
|
3861
3702
|
},
|
|
3862
|
-
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))
|
|
3863
3704
|
)
|
|
3864
|
-
) : null, /* @__PURE__ */
|
|
3705
|
+
) : null, /* @__PURE__ */ React13.createElement(
|
|
3865
3706
|
View12,
|
|
3866
3707
|
{
|
|
3867
3708
|
style: {
|
|
@@ -3870,18 +3711,18 @@ var A4Invoice = ({ data }) => {
|
|
|
3870
3711
|
marginTop: 20
|
|
3871
3712
|
}
|
|
3872
3713
|
},
|
|
3873
|
-
/* @__PURE__ */
|
|
3874
|
-
/* @__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")
|
|
3875
3716
|
)));
|
|
3876
3717
|
};
|
|
3877
3718
|
var A4Invoice_default = A4Invoice;
|
|
3878
3719
|
|
|
3879
3720
|
// src/sizes/a4/A4PostalReport.tsx
|
|
3880
|
-
import { Document as Document14, Image as
|
|
3881
|
-
import
|
|
3721
|
+
import { Document as Document14, Image as Image13, Page as Page14, View as View13 } from "@react-pdf/renderer";
|
|
3722
|
+
import React14 from "react";
|
|
3882
3723
|
var A4PostalReport = ({ date, templeName, data }) => {
|
|
3883
|
-
return /* @__PURE__ */
|
|
3884
|
-
|
|
3724
|
+
return /* @__PURE__ */ React14.createElement(Document14, null, /* @__PURE__ */ React14.createElement(Page14, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React14.createElement(
|
|
3725
|
+
Image13,
|
|
3885
3726
|
{
|
|
3886
3727
|
fixed: true,
|
|
3887
3728
|
style: {
|
|
@@ -3891,7 +3732,7 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3891
3732
|
},
|
|
3892
3733
|
src: bmpLogo
|
|
3893
3734
|
}
|
|
3894
|
-
), /* @__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(
|
|
3895
3736
|
View13,
|
|
3896
3737
|
{
|
|
3897
3738
|
style: {
|
|
@@ -3904,7 +3745,7 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3904
3745
|
}
|
|
3905
3746
|
},
|
|
3906
3747
|
data.map((item) => {
|
|
3907
|
-
return /* @__PURE__ */
|
|
3748
|
+
return /* @__PURE__ */ React14.createElement(
|
|
3908
3749
|
View13,
|
|
3909
3750
|
{
|
|
3910
3751
|
key: item.id,
|
|
@@ -3918,18 +3759,18 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3918
3759
|
padding: 6
|
|
3919
3760
|
}
|
|
3920
3761
|
},
|
|
3921
|
-
/* @__PURE__ */
|
|
3762
|
+
/* @__PURE__ */ React14.createElement(
|
|
3922
3763
|
View13,
|
|
3923
3764
|
{
|
|
3924
3765
|
style: {
|
|
3925
3766
|
flexGrow: 1
|
|
3926
3767
|
}
|
|
3927
3768
|
},
|
|
3928
|
-
/* @__PURE__ */
|
|
3929
|
-
/* @__PURE__ */
|
|
3930
|
-
/* @__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)
|
|
3931
3772
|
),
|
|
3932
|
-
/* @__PURE__ */
|
|
3773
|
+
/* @__PURE__ */ React14.createElement(
|
|
3933
3774
|
View13,
|
|
3934
3775
|
{
|
|
3935
3776
|
style: {
|
|
@@ -3940,10 +3781,10 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3940
3781
|
}
|
|
3941
3782
|
}
|
|
3942
3783
|
),
|
|
3943
|
-
/* @__PURE__ */
|
|
3784
|
+
/* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 9, marginTop: 3 } }, "Note: ", item.pujaDetails)
|
|
3944
3785
|
);
|
|
3945
3786
|
})
|
|
3946
|
-
) : /* @__PURE__ */
|
|
3787
|
+
) : /* @__PURE__ */ React14.createElement(
|
|
3947
3788
|
Text_default,
|
|
3948
3789
|
{
|
|
3949
3790
|
style: {
|
|
@@ -3958,15 +3799,15 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3958
3799
|
var A4PostalReport_default = A4PostalReport;
|
|
3959
3800
|
|
|
3960
3801
|
// src/sizes/a4/A4PaymentSettlementReport.tsx
|
|
3961
|
-
import { Document as Document15, Image as
|
|
3962
|
-
import
|
|
3802
|
+
import { Document as Document15, Image as Image14, Page as Page15, View as View15 } from "@react-pdf/renderer";
|
|
3803
|
+
import React16 from "react";
|
|
3963
3804
|
|
|
3964
3805
|
// src/components/BrokenText.tsx
|
|
3965
|
-
import
|
|
3806
|
+
import React15 from "react";
|
|
3966
3807
|
import { View as View14 } from "@react-pdf/renderer";
|
|
3967
3808
|
var BrokenText = ({ children }) => {
|
|
3968
3809
|
if (!children || typeof children !== "string") return null;
|
|
3969
|
-
return /* @__PURE__ */
|
|
3810
|
+
return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(
|
|
3970
3811
|
View14,
|
|
3971
3812
|
{
|
|
3972
3813
|
style: {
|
|
@@ -3975,7 +3816,7 @@ var BrokenText = ({ children }) => {
|
|
|
3975
3816
|
flexWrap: "wrap"
|
|
3976
3817
|
}
|
|
3977
3818
|
},
|
|
3978
|
-
children.split("").map((char, charIndex) => /* @__PURE__ */
|
|
3819
|
+
children.split("").map((char, charIndex) => /* @__PURE__ */ React15.createElement(Text_default, { key: charIndex }, char))
|
|
3979
3820
|
));
|
|
3980
3821
|
};
|
|
3981
3822
|
var BrokenText_default = BrokenText;
|
|
@@ -3987,8 +3828,8 @@ var A4PaymentSettlementReport = ({
|
|
|
3987
3828
|
templeName,
|
|
3988
3829
|
data
|
|
3989
3830
|
}) => {
|
|
3990
|
-
return /* @__PURE__ */
|
|
3991
|
-
|
|
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,
|
|
3992
3833
|
{
|
|
3993
3834
|
fixed: true,
|
|
3994
3835
|
style: {
|
|
@@ -3998,7 +3839,7 @@ var A4PaymentSettlementReport = ({
|
|
|
3998
3839
|
},
|
|
3999
3840
|
src: bmpLogo
|
|
4000
3841
|
}
|
|
4001
|
-
), /* @__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(
|
|
4002
3843
|
View15,
|
|
4003
3844
|
{
|
|
4004
3845
|
style: {
|
|
@@ -4007,7 +3848,7 @@ var A4PaymentSettlementReport = ({
|
|
|
4007
3848
|
marginTop: 20
|
|
4008
3849
|
}
|
|
4009
3850
|
},
|
|
4010
|
-
/* @__PURE__ */
|
|
3851
|
+
/* @__PURE__ */ React16.createElement(
|
|
4011
3852
|
View15,
|
|
4012
3853
|
{
|
|
4013
3854
|
style: {
|
|
@@ -4018,7 +3859,7 @@ var A4PaymentSettlementReport = ({
|
|
|
4018
3859
|
fontWeight: "semibold"
|
|
4019
3860
|
}
|
|
4020
3861
|
},
|
|
4021
|
-
/* @__PURE__ */
|
|
3862
|
+
/* @__PURE__ */ React16.createElement(
|
|
4022
3863
|
View15,
|
|
4023
3864
|
{
|
|
4024
3865
|
style: {
|
|
@@ -4027,9 +3868,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4027
3868
|
width: "10%"
|
|
4028
3869
|
}
|
|
4029
3870
|
},
|
|
4030
|
-
/* @__PURE__ */
|
|
3871
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Sr no")
|
|
4031
3872
|
),
|
|
4032
|
-
/* @__PURE__ */
|
|
3873
|
+
/* @__PURE__ */ React16.createElement(
|
|
4033
3874
|
View15,
|
|
4034
3875
|
{
|
|
4035
3876
|
style: {
|
|
@@ -4038,9 +3879,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4038
3879
|
width: "15%"
|
|
4039
3880
|
}
|
|
4040
3881
|
},
|
|
4041
|
-
/* @__PURE__ */
|
|
3882
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Invoice No")
|
|
4042
3883
|
),
|
|
4043
|
-
/* @__PURE__ */
|
|
3884
|
+
/* @__PURE__ */ React16.createElement(
|
|
4044
3885
|
View15,
|
|
4045
3886
|
{
|
|
4046
3887
|
style: {
|
|
@@ -4049,9 +3890,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4049
3890
|
width: "15%"
|
|
4050
3891
|
}
|
|
4051
3892
|
},
|
|
4052
|
-
/* @__PURE__ */
|
|
3893
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Amount")
|
|
4053
3894
|
),
|
|
4054
|
-
/* @__PURE__ */
|
|
3895
|
+
/* @__PURE__ */ React16.createElement(
|
|
4055
3896
|
View15,
|
|
4056
3897
|
{
|
|
4057
3898
|
style: {
|
|
@@ -4060,9 +3901,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4060
3901
|
width: "20%"
|
|
4061
3902
|
}
|
|
4062
3903
|
},
|
|
4063
|
-
/* @__PURE__ */
|
|
3904
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Payment Date")
|
|
4064
3905
|
),
|
|
4065
|
-
/* @__PURE__ */
|
|
3906
|
+
/* @__PURE__ */ React16.createElement(
|
|
4066
3907
|
View15,
|
|
4067
3908
|
{
|
|
4068
3909
|
style: {
|
|
@@ -4071,9 +3912,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4071
3912
|
width: "20%"
|
|
4072
3913
|
}
|
|
4073
3914
|
},
|
|
4074
|
-
/* @__PURE__ */
|
|
3915
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Settlement Date")
|
|
4075
3916
|
),
|
|
4076
|
-
/* @__PURE__ */
|
|
3917
|
+
/* @__PURE__ */ React16.createElement(
|
|
4077
3918
|
View15,
|
|
4078
3919
|
{
|
|
4079
3920
|
style: {
|
|
@@ -4083,11 +3924,11 @@ var A4PaymentSettlementReport = ({
|
|
|
4083
3924
|
width: "25%"
|
|
4084
3925
|
}
|
|
4085
3926
|
},
|
|
4086
|
-
/* @__PURE__ */
|
|
3927
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Bank UTR No")
|
|
4087
3928
|
)
|
|
4088
3929
|
),
|
|
4089
3930
|
data.map((item, index) => {
|
|
4090
|
-
return /* @__PURE__ */
|
|
3931
|
+
return /* @__PURE__ */ React16.createElement(
|
|
4091
3932
|
View15,
|
|
4092
3933
|
{
|
|
4093
3934
|
style: {
|
|
@@ -4098,7 +3939,7 @@ var A4PaymentSettlementReport = ({
|
|
|
4098
3939
|
fontSize: 10
|
|
4099
3940
|
}
|
|
4100
3941
|
},
|
|
4101
|
-
/* @__PURE__ */
|
|
3942
|
+
/* @__PURE__ */ React16.createElement(
|
|
4102
3943
|
View15,
|
|
4103
3944
|
{
|
|
4104
3945
|
style: {
|
|
@@ -4107,9 +3948,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4107
3948
|
width: "10%"
|
|
4108
3949
|
}
|
|
4109
3950
|
},
|
|
4110
|
-
/* @__PURE__ */
|
|
3951
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, index + 1)
|
|
4111
3952
|
),
|
|
4112
|
-
/* @__PURE__ */
|
|
3953
|
+
/* @__PURE__ */ React16.createElement(
|
|
4113
3954
|
View15,
|
|
4114
3955
|
{
|
|
4115
3956
|
style: {
|
|
@@ -4118,9 +3959,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4118
3959
|
width: "15%"
|
|
4119
3960
|
}
|
|
4120
3961
|
},
|
|
4121
|
-
/* @__PURE__ */
|
|
3962
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.invoiceNo)
|
|
4122
3963
|
),
|
|
4123
|
-
/* @__PURE__ */
|
|
3964
|
+
/* @__PURE__ */ React16.createElement(
|
|
4124
3965
|
View15,
|
|
4125
3966
|
{
|
|
4126
3967
|
style: {
|
|
@@ -4129,9 +3970,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4129
3970
|
width: "15%"
|
|
4130
3971
|
}
|
|
4131
3972
|
},
|
|
4132
|
-
/* @__PURE__ */
|
|
3973
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.amount)
|
|
4133
3974
|
),
|
|
4134
|
-
/* @__PURE__ */
|
|
3975
|
+
/* @__PURE__ */ React16.createElement(
|
|
4135
3976
|
View15,
|
|
4136
3977
|
{
|
|
4137
3978
|
style: {
|
|
@@ -4140,9 +3981,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4140
3981
|
width: "20%"
|
|
4141
3982
|
}
|
|
4142
3983
|
},
|
|
4143
|
-
/* @__PURE__ */
|
|
3984
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.paymentDate)
|
|
4144
3985
|
),
|
|
4145
|
-
/* @__PURE__ */
|
|
3986
|
+
/* @__PURE__ */ React16.createElement(
|
|
4146
3987
|
View15,
|
|
4147
3988
|
{
|
|
4148
3989
|
style: {
|
|
@@ -4151,9 +3992,9 @@ var A4PaymentSettlementReport = ({
|
|
|
4151
3992
|
width: "20%"
|
|
4152
3993
|
}
|
|
4153
3994
|
},
|
|
4154
|
-
/* @__PURE__ */
|
|
3995
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.settlementDate)
|
|
4155
3996
|
),
|
|
4156
|
-
/* @__PURE__ */
|
|
3997
|
+
/* @__PURE__ */ React16.createElement(
|
|
4157
3998
|
View15,
|
|
4158
3999
|
{
|
|
4159
4000
|
style: {
|
|
@@ -4163,11 +4004,11 @@ var A4PaymentSettlementReport = ({
|
|
|
4163
4004
|
width: "25%"
|
|
4164
4005
|
}
|
|
4165
4006
|
},
|
|
4166
|
-
/* @__PURE__ */
|
|
4007
|
+
/* @__PURE__ */ React16.createElement(BrokenText_default, null, item.bankUtrNo)
|
|
4167
4008
|
)
|
|
4168
4009
|
);
|
|
4169
4010
|
})
|
|
4170
|
-
) : /* @__PURE__ */
|
|
4011
|
+
) : /* @__PURE__ */ React16.createElement(
|
|
4171
4012
|
Text_default,
|
|
4172
4013
|
{
|
|
4173
4014
|
style: {
|
|
@@ -4182,16 +4023,16 @@ var A4PaymentSettlementReport = ({
|
|
|
4182
4023
|
var A4PaymentSettlementReport_default = A4PaymentSettlementReport;
|
|
4183
4024
|
|
|
4184
4025
|
// src/sizes/a4/A4InvoiceLevelBreakup.tsx
|
|
4185
|
-
import { Document as Document16, Image as
|
|
4186
|
-
import
|
|
4026
|
+
import { Document as Document16, Image as Image15, Page as Page16, View as View16 } from "@react-pdf/renderer";
|
|
4027
|
+
import React17 from "react";
|
|
4187
4028
|
var A4InvoiceLevelBreakup = ({
|
|
4188
4029
|
startDate,
|
|
4189
4030
|
endDate,
|
|
4190
4031
|
templeName,
|
|
4191
4032
|
data
|
|
4192
4033
|
}) => {
|
|
4193
|
-
return /* @__PURE__ */
|
|
4194
|
-
|
|
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,
|
|
4195
4036
|
{
|
|
4196
4037
|
fixed: true,
|
|
4197
4038
|
style: {
|
|
@@ -4201,7 +4042,7 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4201
4042
|
},
|
|
4202
4043
|
src: bmpLogo
|
|
4203
4044
|
}
|
|
4204
|
-
), /* @__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(
|
|
4205
4046
|
View16,
|
|
4206
4047
|
{
|
|
4207
4048
|
style: {
|
|
@@ -4210,7 +4051,7 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4210
4051
|
marginTop: 20
|
|
4211
4052
|
}
|
|
4212
4053
|
},
|
|
4213
|
-
/* @__PURE__ */
|
|
4054
|
+
/* @__PURE__ */ React17.createElement(
|
|
4214
4055
|
View16,
|
|
4215
4056
|
{
|
|
4216
4057
|
style: {
|
|
@@ -4221,7 +4062,7 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4221
4062
|
fontWeight: "semibold"
|
|
4222
4063
|
}
|
|
4223
4064
|
},
|
|
4224
|
-
/* @__PURE__ */
|
|
4065
|
+
/* @__PURE__ */ React17.createElement(
|
|
4225
4066
|
View16,
|
|
4226
4067
|
{
|
|
4227
4068
|
style: {
|
|
@@ -4230,9 +4071,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4230
4071
|
width: "4%"
|
|
4231
4072
|
}
|
|
4232
4073
|
},
|
|
4233
|
-
/* @__PURE__ */
|
|
4074
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Sr no")
|
|
4234
4075
|
),
|
|
4235
|
-
/* @__PURE__ */
|
|
4076
|
+
/* @__PURE__ */ React17.createElement(
|
|
4236
4077
|
View16,
|
|
4237
4078
|
{
|
|
4238
4079
|
style: {
|
|
@@ -4241,9 +4082,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4241
4082
|
width: "9%"
|
|
4242
4083
|
}
|
|
4243
4084
|
},
|
|
4244
|
-
/* @__PURE__ */
|
|
4085
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Invoice Number")
|
|
4245
4086
|
),
|
|
4246
|
-
/* @__PURE__ */
|
|
4087
|
+
/* @__PURE__ */ React17.createElement(
|
|
4247
4088
|
View16,
|
|
4248
4089
|
{
|
|
4249
4090
|
style: {
|
|
@@ -4252,9 +4093,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4252
4093
|
width: "9%"
|
|
4253
4094
|
}
|
|
4254
4095
|
},
|
|
4255
|
-
/* @__PURE__ */
|
|
4096
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Base Amount")
|
|
4256
4097
|
),
|
|
4257
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ React17.createElement(
|
|
4258
4099
|
View16,
|
|
4259
4100
|
{
|
|
4260
4101
|
style: {
|
|
@@ -4263,9 +4104,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4263
4104
|
width: "9%"
|
|
4264
4105
|
}
|
|
4265
4106
|
},
|
|
4266
|
-
/* @__PURE__ */
|
|
4107
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Platform Fees")
|
|
4267
4108
|
),
|
|
4268
|
-
/* @__PURE__ */
|
|
4109
|
+
/* @__PURE__ */ React17.createElement(
|
|
4269
4110
|
View16,
|
|
4270
4111
|
{
|
|
4271
4112
|
style: {
|
|
@@ -4274,9 +4115,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4274
4115
|
width: "9%"
|
|
4275
4116
|
}
|
|
4276
4117
|
},
|
|
4277
|
-
/* @__PURE__ */
|
|
4118
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Platform Fees GST")
|
|
4278
4119
|
),
|
|
4279
|
-
/* @__PURE__ */
|
|
4120
|
+
/* @__PURE__ */ React17.createElement(
|
|
4280
4121
|
View16,
|
|
4281
4122
|
{
|
|
4282
4123
|
style: {
|
|
@@ -4285,9 +4126,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4285
4126
|
width: "9%"
|
|
4286
4127
|
}
|
|
4287
4128
|
},
|
|
4288
|
-
/* @__PURE__ */
|
|
4129
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Gateway Charges")
|
|
4289
4130
|
),
|
|
4290
|
-
/* @__PURE__ */
|
|
4131
|
+
/* @__PURE__ */ React17.createElement(
|
|
4291
4132
|
View16,
|
|
4292
4133
|
{
|
|
4293
4134
|
style: {
|
|
@@ -4296,9 +4137,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4296
4137
|
width: "9%"
|
|
4297
4138
|
}
|
|
4298
4139
|
},
|
|
4299
|
-
/* @__PURE__ */
|
|
4140
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Gateway GST")
|
|
4300
4141
|
),
|
|
4301
|
-
/* @__PURE__ */
|
|
4142
|
+
/* @__PURE__ */ React17.createElement(
|
|
4302
4143
|
View16,
|
|
4303
4144
|
{
|
|
4304
4145
|
style: {
|
|
@@ -4307,9 +4148,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4307
4148
|
width: "9%"
|
|
4308
4149
|
}
|
|
4309
4150
|
},
|
|
4310
|
-
/* @__PURE__ */
|
|
4151
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Payment Mode")
|
|
4311
4152
|
),
|
|
4312
|
-
/* @__PURE__ */
|
|
4153
|
+
/* @__PURE__ */ React17.createElement(
|
|
4313
4154
|
View16,
|
|
4314
4155
|
{
|
|
4315
4156
|
style: {
|
|
@@ -4318,9 +4159,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4318
4159
|
width: "9%"
|
|
4319
4160
|
}
|
|
4320
4161
|
},
|
|
4321
|
-
/* @__PURE__ */
|
|
4162
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Booking Date")
|
|
4322
4163
|
),
|
|
4323
|
-
/* @__PURE__ */
|
|
4164
|
+
/* @__PURE__ */ React17.createElement(
|
|
4324
4165
|
View16,
|
|
4325
4166
|
{
|
|
4326
4167
|
style: {
|
|
@@ -4329,9 +4170,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4329
4170
|
width: "9%"
|
|
4330
4171
|
}
|
|
4331
4172
|
},
|
|
4332
|
-
/* @__PURE__ */
|
|
4173
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "Settlement Date")
|
|
4333
4174
|
),
|
|
4334
|
-
/* @__PURE__ */
|
|
4175
|
+
/* @__PURE__ */ React17.createElement(
|
|
4335
4176
|
View16,
|
|
4336
4177
|
{
|
|
4337
4178
|
style: {
|
|
@@ -4340,11 +4181,11 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4340
4181
|
width: "12%"
|
|
4341
4182
|
}
|
|
4342
4183
|
},
|
|
4343
|
-
/* @__PURE__ */
|
|
4184
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, "UTR Number")
|
|
4344
4185
|
)
|
|
4345
4186
|
),
|
|
4346
4187
|
data.map((item, index) => {
|
|
4347
|
-
return /* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ React17.createElement(
|
|
4348
4189
|
View16,
|
|
4349
4190
|
{
|
|
4350
4191
|
key: index,
|
|
@@ -4356,7 +4197,7 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4356
4197
|
fontSize: 8
|
|
4357
4198
|
}
|
|
4358
4199
|
},
|
|
4359
|
-
/* @__PURE__ */
|
|
4200
|
+
/* @__PURE__ */ React17.createElement(
|
|
4360
4201
|
View16,
|
|
4361
4202
|
{
|
|
4362
4203
|
style: {
|
|
@@ -4365,9 +4206,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4365
4206
|
width: "4%"
|
|
4366
4207
|
}
|
|
4367
4208
|
},
|
|
4368
|
-
/* @__PURE__ */
|
|
4209
|
+
/* @__PURE__ */ React17.createElement(Text_default, null, index + 1)
|
|
4369
4210
|
),
|
|
4370
|
-
/* @__PURE__ */
|
|
4211
|
+
/* @__PURE__ */ React17.createElement(
|
|
4371
4212
|
View16,
|
|
4372
4213
|
{
|
|
4373
4214
|
style: {
|
|
@@ -4376,9 +4217,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4376
4217
|
width: "9%"
|
|
4377
4218
|
}
|
|
4378
4219
|
},
|
|
4379
|
-
/* @__PURE__ */
|
|
4220
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.invoiceNumber)
|
|
4380
4221
|
),
|
|
4381
|
-
/* @__PURE__ */
|
|
4222
|
+
/* @__PURE__ */ React17.createElement(
|
|
4382
4223
|
View16,
|
|
4383
4224
|
{
|
|
4384
4225
|
style: {
|
|
@@ -4387,9 +4228,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4387
4228
|
width: "9%"
|
|
4388
4229
|
}
|
|
4389
4230
|
},
|
|
4390
|
-
/* @__PURE__ */
|
|
4231
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.baseAmount)
|
|
4391
4232
|
),
|
|
4392
|
-
/* @__PURE__ */
|
|
4233
|
+
/* @__PURE__ */ React17.createElement(
|
|
4393
4234
|
View16,
|
|
4394
4235
|
{
|
|
4395
4236
|
style: {
|
|
@@ -4398,9 +4239,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4398
4239
|
width: "9%"
|
|
4399
4240
|
}
|
|
4400
4241
|
},
|
|
4401
|
-
/* @__PURE__ */
|
|
4242
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.platformFees)
|
|
4402
4243
|
),
|
|
4403
|
-
/* @__PURE__ */
|
|
4244
|
+
/* @__PURE__ */ React17.createElement(
|
|
4404
4245
|
View16,
|
|
4405
4246
|
{
|
|
4406
4247
|
style: {
|
|
@@ -4409,9 +4250,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4409
4250
|
width: "9%"
|
|
4410
4251
|
}
|
|
4411
4252
|
},
|
|
4412
|
-
/* @__PURE__ */
|
|
4253
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.platformFeesGST)
|
|
4413
4254
|
),
|
|
4414
|
-
/* @__PURE__ */
|
|
4255
|
+
/* @__PURE__ */ React17.createElement(
|
|
4415
4256
|
View16,
|
|
4416
4257
|
{
|
|
4417
4258
|
style: {
|
|
@@ -4420,9 +4261,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4420
4261
|
width: "9%"
|
|
4421
4262
|
}
|
|
4422
4263
|
},
|
|
4423
|
-
/* @__PURE__ */
|
|
4264
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.gatewayCharges)
|
|
4424
4265
|
),
|
|
4425
|
-
/* @__PURE__ */
|
|
4266
|
+
/* @__PURE__ */ React17.createElement(
|
|
4426
4267
|
View16,
|
|
4427
4268
|
{
|
|
4428
4269
|
style: {
|
|
@@ -4431,9 +4272,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4431
4272
|
width: "9%"
|
|
4432
4273
|
}
|
|
4433
4274
|
},
|
|
4434
|
-
/* @__PURE__ */
|
|
4275
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.gatewayChargesGST)
|
|
4435
4276
|
),
|
|
4436
|
-
/* @__PURE__ */
|
|
4277
|
+
/* @__PURE__ */ React17.createElement(
|
|
4437
4278
|
View16,
|
|
4438
4279
|
{
|
|
4439
4280
|
style: {
|
|
@@ -4442,9 +4283,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4442
4283
|
width: "9%"
|
|
4443
4284
|
}
|
|
4444
4285
|
},
|
|
4445
|
-
/* @__PURE__ */
|
|
4286
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.paymentMode)
|
|
4446
4287
|
),
|
|
4447
|
-
/* @__PURE__ */
|
|
4288
|
+
/* @__PURE__ */ React17.createElement(
|
|
4448
4289
|
View16,
|
|
4449
4290
|
{
|
|
4450
4291
|
style: {
|
|
@@ -4454,9 +4295,9 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4454
4295
|
fontSize: 7
|
|
4455
4296
|
}
|
|
4456
4297
|
},
|
|
4457
|
-
/* @__PURE__ */
|
|
4298
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.bookingDate)
|
|
4458
4299
|
),
|
|
4459
|
-
/* @__PURE__ */
|
|
4300
|
+
/* @__PURE__ */ React17.createElement(
|
|
4460
4301
|
View16,
|
|
4461
4302
|
{
|
|
4462
4303
|
style: {
|
|
@@ -4466,12 +4307,12 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4466
4307
|
fontSize: 7
|
|
4467
4308
|
}
|
|
4468
4309
|
},
|
|
4469
|
-
/* @__PURE__ */
|
|
4310
|
+
/* @__PURE__ */ React17.createElement(BrokenText_default, null, item.settlementDate)
|
|
4470
4311
|
),
|
|
4471
|
-
/* @__PURE__ */
|
|
4312
|
+
/* @__PURE__ */ React17.createElement(View16, { style: { padding: 3, width: "12%" } }, /* @__PURE__ */ React17.createElement(BrokenText_default, null, item.utrNumber))
|
|
4472
4313
|
);
|
|
4473
4314
|
})
|
|
4474
|
-
) : /* @__PURE__ */
|
|
4315
|
+
) : /* @__PURE__ */ React17.createElement(
|
|
4475
4316
|
Text_default,
|
|
4476
4317
|
{
|
|
4477
4318
|
style: {
|
|
@@ -4486,16 +4327,16 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4486
4327
|
var A4InvoiceLevelBreakup_default = A4InvoiceLevelBreakup;
|
|
4487
4328
|
|
|
4488
4329
|
// src/sizes/a4/A4PujaCountReport.tsx
|
|
4489
|
-
import { Document as Document17, Image as
|
|
4490
|
-
import
|
|
4330
|
+
import { Document as Document17, Image as Image16, Page as Page17, View as View17 } from "@react-pdf/renderer";
|
|
4331
|
+
import React18 from "react";
|
|
4491
4332
|
var A4PujaCountReport = ({
|
|
4492
4333
|
startDate,
|
|
4493
4334
|
endDate,
|
|
4494
4335
|
templeName,
|
|
4495
4336
|
data
|
|
4496
4337
|
}) => {
|
|
4497
|
-
return /* @__PURE__ */
|
|
4498
|
-
|
|
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,
|
|
4499
4340
|
{
|
|
4500
4341
|
fixed: true,
|
|
4501
4342
|
style: {
|
|
@@ -4505,7 +4346,7 @@ var A4PujaCountReport = ({
|
|
|
4505
4346
|
},
|
|
4506
4347
|
src: bmpLogo
|
|
4507
4348
|
}
|
|
4508
|
-
), /* @__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(
|
|
4509
4350
|
View17,
|
|
4510
4351
|
{
|
|
4511
4352
|
style: {
|
|
@@ -4514,7 +4355,7 @@ var A4PujaCountReport = ({
|
|
|
4514
4355
|
marginTop: 20
|
|
4515
4356
|
}
|
|
4516
4357
|
},
|
|
4517
|
-
/* @__PURE__ */
|
|
4358
|
+
/* @__PURE__ */ React18.createElement(
|
|
4518
4359
|
View17,
|
|
4519
4360
|
{
|
|
4520
4361
|
style: {
|
|
@@ -4525,7 +4366,7 @@ var A4PujaCountReport = ({
|
|
|
4525
4366
|
fontWeight: "semibold"
|
|
4526
4367
|
}
|
|
4527
4368
|
},
|
|
4528
|
-
/* @__PURE__ */
|
|
4369
|
+
/* @__PURE__ */ React18.createElement(
|
|
4529
4370
|
View17,
|
|
4530
4371
|
{
|
|
4531
4372
|
style: {
|
|
@@ -4534,9 +4375,9 @@ var A4PujaCountReport = ({
|
|
|
4534
4375
|
width: "10%"
|
|
4535
4376
|
}
|
|
4536
4377
|
},
|
|
4537
|
-
/* @__PURE__ */
|
|
4378
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, "Sr no")
|
|
4538
4379
|
),
|
|
4539
|
-
/* @__PURE__ */
|
|
4380
|
+
/* @__PURE__ */ React18.createElement(
|
|
4540
4381
|
View17,
|
|
4541
4382
|
{
|
|
4542
4383
|
style: {
|
|
@@ -4545,9 +4386,9 @@ var A4PujaCountReport = ({
|
|
|
4545
4386
|
width: "40%"
|
|
4546
4387
|
}
|
|
4547
4388
|
},
|
|
4548
|
-
/* @__PURE__ */
|
|
4389
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, "Puja Name")
|
|
4549
4390
|
),
|
|
4550
|
-
/* @__PURE__ */
|
|
4391
|
+
/* @__PURE__ */ React18.createElement(
|
|
4551
4392
|
View17,
|
|
4552
4393
|
{
|
|
4553
4394
|
style: {
|
|
@@ -4556,9 +4397,9 @@ var A4PujaCountReport = ({
|
|
|
4556
4397
|
width: "15%"
|
|
4557
4398
|
}
|
|
4558
4399
|
},
|
|
4559
|
-
/* @__PURE__ */
|
|
4400
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, "Total Count")
|
|
4560
4401
|
),
|
|
4561
|
-
/* @__PURE__ */
|
|
4402
|
+
/* @__PURE__ */ React18.createElement(
|
|
4562
4403
|
View17,
|
|
4563
4404
|
{
|
|
4564
4405
|
style: {
|
|
@@ -4567,11 +4408,11 @@ var A4PujaCountReport = ({
|
|
|
4567
4408
|
width: "35%"
|
|
4568
4409
|
}
|
|
4569
4410
|
},
|
|
4570
|
-
/* @__PURE__ */
|
|
4411
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, "Remarks")
|
|
4571
4412
|
)
|
|
4572
4413
|
),
|
|
4573
4414
|
data.map((item, index) => {
|
|
4574
|
-
return /* @__PURE__ */
|
|
4415
|
+
return /* @__PURE__ */ React18.createElement(
|
|
4575
4416
|
View17,
|
|
4576
4417
|
{
|
|
4577
4418
|
style: {
|
|
@@ -4582,7 +4423,7 @@ var A4PujaCountReport = ({
|
|
|
4582
4423
|
fontSize: 10
|
|
4583
4424
|
}
|
|
4584
4425
|
},
|
|
4585
|
-
/* @__PURE__ */
|
|
4426
|
+
/* @__PURE__ */ React18.createElement(
|
|
4586
4427
|
View17,
|
|
4587
4428
|
{
|
|
4588
4429
|
style: {
|
|
@@ -4591,9 +4432,9 @@ var A4PujaCountReport = ({
|
|
|
4591
4432
|
width: "10%"
|
|
4592
4433
|
}
|
|
4593
4434
|
},
|
|
4594
|
-
/* @__PURE__ */
|
|
4435
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, index + 1)
|
|
4595
4436
|
),
|
|
4596
|
-
/* @__PURE__ */
|
|
4437
|
+
/* @__PURE__ */ React18.createElement(
|
|
4597
4438
|
View17,
|
|
4598
4439
|
{
|
|
4599
4440
|
style: {
|
|
@@ -4602,9 +4443,9 @@ var A4PujaCountReport = ({
|
|
|
4602
4443
|
width: "40%"
|
|
4603
4444
|
}
|
|
4604
4445
|
},
|
|
4605
|
-
/* @__PURE__ */
|
|
4446
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, item.name)
|
|
4606
4447
|
),
|
|
4607
|
-
/* @__PURE__ */
|
|
4448
|
+
/* @__PURE__ */ React18.createElement(
|
|
4608
4449
|
View17,
|
|
4609
4450
|
{
|
|
4610
4451
|
style: {
|
|
@@ -4613,9 +4454,9 @@ var A4PujaCountReport = ({
|
|
|
4613
4454
|
width: "15%"
|
|
4614
4455
|
}
|
|
4615
4456
|
},
|
|
4616
|
-
/* @__PURE__ */
|
|
4457
|
+
/* @__PURE__ */ React18.createElement(Text_default, null, item.quantity)
|
|
4617
4458
|
),
|
|
4618
|
-
/* @__PURE__ */
|
|
4459
|
+
/* @__PURE__ */ React18.createElement(
|
|
4619
4460
|
View17,
|
|
4620
4461
|
{
|
|
4621
4462
|
style: {
|
|
@@ -4627,7 +4468,7 @@ var A4PujaCountReport = ({
|
|
|
4627
4468
|
)
|
|
4628
4469
|
);
|
|
4629
4470
|
})
|
|
4630
|
-
) : /* @__PURE__ */
|
|
4471
|
+
) : /* @__PURE__ */ React18.createElement(
|
|
4631
4472
|
Text_default,
|
|
4632
4473
|
{
|
|
4633
4474
|
style: {
|
|
@@ -4642,47 +4483,6 @@ var A4PujaCountReport = ({
|
|
|
4642
4483
|
var A4PujaCountReport_default = A4PujaCountReport;
|
|
4643
4484
|
|
|
4644
4485
|
// src/index.tsx
|
|
4645
|
-
var getPrintBlob = ({
|
|
4646
|
-
size,
|
|
4647
|
-
data,
|
|
4648
|
-
dates
|
|
4649
|
-
}) => {
|
|
4650
|
-
if (size === "A4") {
|
|
4651
|
-
const blob = pdf(/* @__PURE__ */ React23.createElement(A4Print_default, { data, dates })).toBlob();
|
|
4652
|
-
return blob;
|
|
4653
|
-
} else {
|
|
4654
|
-
const blob = pdf(/* @__PURE__ */ React23.createElement(T2Inch_default, { data, dates })).toBlob();
|
|
4655
|
-
return blob;
|
|
4656
|
-
}
|
|
4657
|
-
};
|
|
4658
|
-
var getA4SummaryBlob = async () => {
|
|
4659
|
-
const blob = await pdf(/* @__PURE__ */ React23.createElement(A4Print_default, { data: [], dates: ["", ""] })).toBlob();
|
|
4660
|
-
return blob;
|
|
4661
|
-
};
|
|
4662
|
-
var printDevoteeReceipt2Inch = async (data) => {
|
|
4663
|
-
const base64DataObject = await getDevoteeReceipt2InchBase64Data(data);
|
|
4664
|
-
var S = "#Intent;scheme=rawbt;";
|
|
4665
|
-
var P = "package=ru.a402d.rawbtprinter;end;";
|
|
4666
|
-
window.location.href = "intent:base64," + base64DataObject + S + P;
|
|
4667
|
-
};
|
|
4668
|
-
var printTotalReceipt2Inch = async (data) => {
|
|
4669
|
-
const base64DataObject = await getTotalReceipt2InchBase64Data(data);
|
|
4670
|
-
var S = "#Intent;scheme=rawbt;";
|
|
4671
|
-
var P = "package=ru.a402d.rawbtprinter;end;";
|
|
4672
|
-
window.location.href = "intent:base64," + base64DataObject + S + P;
|
|
4673
|
-
};
|
|
4674
|
-
var printePujaReport2Inch = async (data) => {
|
|
4675
|
-
const base64DataObject = await getPujaReportReceipt2InchBase64Data(data);
|
|
4676
|
-
var S = "#Intent;scheme=rawbt;";
|
|
4677
|
-
var P = "package=ru.a402d.rawbtprinter;end;";
|
|
4678
|
-
window.location.href = "intent:base64," + base64DataObject + S + P;
|
|
4679
|
-
};
|
|
4680
|
-
var printQuickPrintReceipt2Inch = async (data) => {
|
|
4681
|
-
const base64DataObject = await getQuickReceipt2InchBase64Data(data);
|
|
4682
|
-
var S = "#Intent;scheme=rawbt;";
|
|
4683
|
-
var P = "package=ru.a402d.rawbtprinter;end;";
|
|
4684
|
-
window.location.href = "intent:base64," + base64DataObject + S + P;
|
|
4685
|
-
};
|
|
4686
4486
|
var options = {
|
|
4687
4487
|
kitchen: {
|
|
4688
4488
|
A4: A4KitchenReport_default
|
|
@@ -4939,7 +4739,7 @@ var reportPrinter = class {
|
|
|
4939
4739
|
}
|
|
4940
4740
|
async print(data) {
|
|
4941
4741
|
const ReportComponent = options[this.option][this.size];
|
|
4942
|
-
const document = /* @__PURE__ */
|
|
4742
|
+
const document = /* @__PURE__ */ React19.createElement(ReportComponent, { ...data });
|
|
4943
4743
|
const blob = pdf(document).toBlob();
|
|
4944
4744
|
blob.then((blob2) => {
|
|
4945
4745
|
var blobURL = URL.createObjectURL(blob2);
|
|
@@ -4954,7 +4754,7 @@ var reportPrinter = class {
|
|
|
4954
4754
|
}
|
|
4955
4755
|
async getBlob(data) {
|
|
4956
4756
|
const ReportComponent = options[this.option][this.size];
|
|
4957
|
-
const document = /* @__PURE__ */
|
|
4757
|
+
const document = /* @__PURE__ */ React19.createElement(ReportComponent, { ...data });
|
|
4958
4758
|
const blob = pdf(document).toBlob();
|
|
4959
4759
|
return blob;
|
|
4960
4760
|
}
|
|
@@ -4962,11 +4762,5 @@ var reportPrinter = class {
|
|
|
4962
4762
|
export {
|
|
4963
4763
|
A4Print_default as A4Print,
|
|
4964
4764
|
T2Inch_default as T2Inch,
|
|
4965
|
-
getA4SummaryBlob,
|
|
4966
|
-
getPrintBlob,
|
|
4967
|
-
printDevoteeReceipt2Inch,
|
|
4968
|
-
printQuickPrintReceipt2Inch,
|
|
4969
|
-
printTotalReceipt2Inch,
|
|
4970
|
-
printePujaReport2Inch,
|
|
4971
4765
|
reportPrinter
|
|
4972
4766
|
};
|