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