@bookmypuja-tech/bmp-pdf 0.3.38 → 0.3.40
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 +4 -2
- package/dist/index.js +77 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -275,7 +275,8 @@ interface PaymentSettlementData {
|
|
|
275
275
|
bankUtrNo: string;
|
|
276
276
|
}
|
|
277
277
|
interface PaymentSettlementProps {
|
|
278
|
-
|
|
278
|
+
startDate: Date;
|
|
279
|
+
endDate: Date;
|
|
279
280
|
templeName: string;
|
|
280
281
|
data: PaymentSettlementData[];
|
|
281
282
|
}
|
|
@@ -293,7 +294,8 @@ interface InvoiceLevelData {
|
|
|
293
294
|
utrNumber: string;
|
|
294
295
|
}
|
|
295
296
|
interface InvoiceLevelReportProps {
|
|
296
|
-
|
|
297
|
+
startDate: Date;
|
|
298
|
+
endDate: Date;
|
|
297
299
|
templeName: string;
|
|
298
300
|
data: InvoiceLevelData[];
|
|
299
301
|
}
|
package/dist/index.js
CHANGED
|
@@ -3668,7 +3668,77 @@ var A4Invoice = ({ data }) => {
|
|
|
3668
3668
|
)
|
|
3669
3669
|
)
|
|
3670
3670
|
)
|
|
3671
|
-
), data.
|
|
3671
|
+
), data.prasads && (data.prasads.morning.length > 0 || data.prasads.afternoon.length > 0 || data.prasads.evening.length > 0) ? /* @__PURE__ */ React17.createElement(
|
|
3672
|
+
View12,
|
|
3673
|
+
{
|
|
3674
|
+
style: {
|
|
3675
|
+
display: "flex",
|
|
3676
|
+
flexDirection: "column",
|
|
3677
|
+
marginBottom: 30
|
|
3678
|
+
}
|
|
3679
|
+
},
|
|
3680
|
+
/* @__PURE__ */ React17.createElement(
|
|
3681
|
+
View12,
|
|
3682
|
+
{
|
|
3683
|
+
style: {
|
|
3684
|
+
backgroundColor: "#FF266F",
|
|
3685
|
+
padding: 5
|
|
3686
|
+
}
|
|
3687
|
+
},
|
|
3688
|
+
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 10, fontWeight: "bold", color: "white" } }, "Prasadsam Details")
|
|
3689
|
+
),
|
|
3690
|
+
data.prasads.morning.length > 0 ? /* @__PURE__ */ React17.createElement(
|
|
3691
|
+
View12,
|
|
3692
|
+
{
|
|
3693
|
+
wrap: false,
|
|
3694
|
+
style: {
|
|
3695
|
+
display: "flex",
|
|
3696
|
+
flexDirection: "column",
|
|
3697
|
+
paddingHorizontal: 10,
|
|
3698
|
+
paddingVertical: 5,
|
|
3699
|
+
borderBottom: "1px solid #757575",
|
|
3700
|
+
borderRight: "1px solid #757575",
|
|
3701
|
+
borderLeft: "1px solid #757575"
|
|
3702
|
+
}
|
|
3703
|
+
},
|
|
3704
|
+
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 9, fontWeight: "bold" } }, "Morning:"),
|
|
3705
|
+
data.prasads.morning.map((prasad, index) => /* @__PURE__ */ React17.createElement(Text_default, { key: index, style: { fontSize: 10 } }, index + 1, ". ", prasad.name, " (", prasad.timings, ")"))
|
|
3706
|
+
) : null,
|
|
3707
|
+
data.prasads.afternoon.length > 0 ? /* @__PURE__ */ React17.createElement(
|
|
3708
|
+
View12,
|
|
3709
|
+
{
|
|
3710
|
+
wrap: false,
|
|
3711
|
+
style: {
|
|
3712
|
+
display: "flex",
|
|
3713
|
+
flexDirection: "column",
|
|
3714
|
+
paddingHorizontal: 10,
|
|
3715
|
+
paddingVertical: 5,
|
|
3716
|
+
borderBottom: "1px solid #757575",
|
|
3717
|
+
borderRight: "1px solid #757575",
|
|
3718
|
+
borderLeft: "1px solid #757575"
|
|
3719
|
+
}
|
|
3720
|
+
},
|
|
3721
|
+
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 9, fontWeight: "bold" } }, "Afternoon:"),
|
|
3722
|
+
data.prasads.afternoon.map((prasad, index) => /* @__PURE__ */ React17.createElement(Text_default, { key: index, style: { fontSize: 10 } }, index + 1, ". ", prasad.name, " (", prasad.timings, ")"))
|
|
3723
|
+
) : null,
|
|
3724
|
+
data.prasads.evening.length > 0 ? /* @__PURE__ */ React17.createElement(
|
|
3725
|
+
View12,
|
|
3726
|
+
{
|
|
3727
|
+
wrap: false,
|
|
3728
|
+
style: {
|
|
3729
|
+
display: "flex",
|
|
3730
|
+
flexDirection: "column",
|
|
3731
|
+
paddingHorizontal: 10,
|
|
3732
|
+
paddingVertical: 5,
|
|
3733
|
+
borderBottom: "1px solid #757575",
|
|
3734
|
+
borderRight: "1px solid #757575",
|
|
3735
|
+
borderLeft: "1px solid #757575"
|
|
3736
|
+
}
|
|
3737
|
+
},
|
|
3738
|
+
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 9, fontWeight: "bold" } }, "Evening:"),
|
|
3739
|
+
data.prasads.evening.map((prasad, index) => /* @__PURE__ */ React17.createElement(Text_default, { key: index, style: { fontSize: 10 } }, index + 1, ". ", prasad.name, " (", prasad.timings, ")"))
|
|
3740
|
+
) : null
|
|
3741
|
+
) : null, data.instructions.length > 0 ? /* @__PURE__ */ React17.createElement(
|
|
3672
3742
|
View12,
|
|
3673
3743
|
{
|
|
3674
3744
|
style: {
|
|
@@ -3814,7 +3884,8 @@ var BrokenText_default = BrokenText;
|
|
|
3814
3884
|
|
|
3815
3885
|
// src/sizes/a4/A4PaymentSettlementReport.tsx
|
|
3816
3886
|
var A4PaymentSettlementReport = ({
|
|
3817
|
-
|
|
3887
|
+
startDate,
|
|
3888
|
+
endDate,
|
|
3818
3889
|
templeName,
|
|
3819
3890
|
data
|
|
3820
3891
|
}) => {
|
|
@@ -3829,7 +3900,7 @@ var A4PaymentSettlementReport = ({
|
|
|
3829
3900
|
},
|
|
3830
3901
|
src: bmpLogo
|
|
3831
3902
|
}
|
|
3832
|
-
), /* @__PURE__ */ React20.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "
|
|
3903
|
+
), /* @__PURE__ */ React20.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Dates: ", startDate.toDateString(), " - ", endDate.toDateString()), /* @__PURE__ */ React20.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Payment Settlement Report"), /* @__PURE__ */ React20.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React20.createElement(
|
|
3833
3904
|
View15,
|
|
3834
3905
|
{
|
|
3835
3906
|
style: {
|
|
@@ -4006,7 +4077,8 @@ var A4PaymentSettlementReport_default = A4PaymentSettlementReport;
|
|
|
4006
4077
|
import { Document as Document16, Image as Image17, Page as Page16, View as View16 } from "@react-pdf/renderer";
|
|
4007
4078
|
import React21 from "react";
|
|
4008
4079
|
var A4InvoiceLevelBreakup = ({
|
|
4009
|
-
|
|
4080
|
+
startDate,
|
|
4081
|
+
endDate,
|
|
4010
4082
|
templeName,
|
|
4011
4083
|
data
|
|
4012
4084
|
}) => {
|
|
@@ -4021,7 +4093,7 @@ var A4InvoiceLevelBreakup = ({
|
|
|
4021
4093
|
},
|
|
4022
4094
|
src: bmpLogo
|
|
4023
4095
|
}
|
|
4024
|
-
), /* @__PURE__ */ React21.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "
|
|
4096
|
+
), /* @__PURE__ */ React21.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Dates: ", startDate.toDateString(), " - ", endDate.toDateString()), /* @__PURE__ */ React21.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Invoice Level Breakup"), /* @__PURE__ */ React21.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React21.createElement(
|
|
4025
4097
|
View16,
|
|
4026
4098
|
{
|
|
4027
4099
|
style: {
|
package/package.json
CHANGED