@bookmypuja-tech/bmp-pdf 0.3.35 → 0.3.37
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 +35 -2
- package/dist/index.js +533 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -267,6 +267,37 @@ interface IInvoiceProps {
|
|
|
267
267
|
data: IInvoiceData;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
+
interface PaymentSettlementData {
|
|
271
|
+
invoiceNo: string;
|
|
272
|
+
amount: string;
|
|
273
|
+
paymentDate: string;
|
|
274
|
+
settlementDate: string;
|
|
275
|
+
bankUtrNo: string;
|
|
276
|
+
}
|
|
277
|
+
interface PaymentSettlementProps {
|
|
278
|
+
date: Date;
|
|
279
|
+
templeName: string;
|
|
280
|
+
data: PaymentSettlementData[];
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface InvoiceLevelData {
|
|
284
|
+
invoiceNumber: string;
|
|
285
|
+
baseAmount: string;
|
|
286
|
+
platformFees: string;
|
|
287
|
+
platformFeesGST: string;
|
|
288
|
+
gatewayCharges: string;
|
|
289
|
+
gatewayChargesGST: string;
|
|
290
|
+
paymentMode: string;
|
|
291
|
+
bookingDate: string;
|
|
292
|
+
settlementDate: string;
|
|
293
|
+
utrNumber: string;
|
|
294
|
+
}
|
|
295
|
+
interface InvoiceLevelReportProps {
|
|
296
|
+
date: Date;
|
|
297
|
+
templeName: string;
|
|
298
|
+
data: InvoiceLevelData[];
|
|
299
|
+
}
|
|
300
|
+
|
|
270
301
|
type sizeOptions = "A4" | "2Inch";
|
|
271
302
|
declare const getPrintBlob: ({ size, data, dates, }: {
|
|
272
303
|
size: sizeOptions;
|
|
@@ -278,7 +309,7 @@ declare const printDevoteeReceipt2Inch: (data: IPujaReceipt) => Promise<void>;
|
|
|
278
309
|
declare const printTotalReceipt2Inch: (data: ITotalReceipt) => Promise<void>;
|
|
279
310
|
declare const printePujaReport2Inch: (data: IPujaReport) => Promise<void>;
|
|
280
311
|
declare const printQuickPrintReceipt2Inch: (data: IQuickReport) => Promise<void>;
|
|
281
|
-
type IReportOptions = "kitchen" | "transaction" | "prasad-delivery" | "prasad" | "puja-detailed" | "puja-summary" | "combined-report" | "multi-temple-payment" | "settlements-report" | "invoice" | "postal-report";
|
|
312
|
+
type IReportOptions = "kitchen" | "transaction" | "prasad-delivery" | "prasad" | "puja-detailed" | "puja-summary" | "combined-report" | "multi-temple-payment" | "settlements-report" | "invoice" | "postal-report" | "payment-settlement-report" | "invoice-breakup";
|
|
282
313
|
type IReportSize = "A4";
|
|
283
314
|
type ReportDataTypes = {
|
|
284
315
|
kitchen: KitchenReportProps;
|
|
@@ -292,6 +323,8 @@ type ReportDataTypes = {
|
|
|
292
323
|
"settlements-report": ISettlementsReport;
|
|
293
324
|
"invoice": IInvoiceProps;
|
|
294
325
|
"postal-report": IPostalReportProps;
|
|
326
|
+
"payment-settlement-report": PaymentSettlementProps;
|
|
327
|
+
"invoice-breakup": InvoiceLevelReportProps;
|
|
295
328
|
};
|
|
296
329
|
declare class reportPrinter<T extends IReportOptions> {
|
|
297
330
|
option: T;
|
|
@@ -301,4 +334,4 @@ declare class reportPrinter<T extends IReportOptions> {
|
|
|
301
334
|
getBlob(data: ReportDataTypes[T]): Promise<Blob>;
|
|
302
335
|
}
|
|
303
336
|
|
|
304
|
-
export { A4Print, type IInvoiceData, type IInvoiceProps, type KitchenReportProps as IKitchenReport, type IMultiTemplePaymentReport, type IPostalReportProps, type IPrasadDelivery, type IPrasadReport, type IPrintablePuja, type IPujaReceipt, type IPujaList as IPujaReport, type ISettlementRow, type ISettlementsReport, type ISummaryPujaList as ISummaryPujaReport, type ITransactionReport, T2Inch, getA4SummaryBlob, getPrintBlob, printDevoteeReceipt2Inch, printQuickPrintReceipt2Inch, printTotalReceipt2Inch, printePujaReport2Inch, reportPrinter };
|
|
337
|
+
export { A4Print, type IInvoiceData, type IInvoiceProps, type KitchenReportProps as IKitchenReport, type IMultiTemplePaymentReport, type IPostalReportProps, type IPrasadDelivery, type IPrasadReport, type IPrintablePuja, type IPujaReceipt, type IPujaList as IPujaReport, type ISettlementRow, type ISettlementsReport, type ISummaryPujaList as ISummaryPujaReport, type ITransactionReport, type InvoiceLevelReportProps, type PaymentSettlementProps, T2Inch, getA4SummaryBlob, getPrintBlob, printDevoteeReceipt2Inch, printQuickPrintReceipt2Inch, printTotalReceipt2Inch, printePujaReport2Inch, reportPrinter };
|
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 React22 from "react";
|
|
226
226
|
|
|
227
227
|
// src/sizes/T2Inch.tsx
|
|
228
228
|
import React2 from "react";
|
|
@@ -1864,7 +1864,8 @@ var A4PujaList = ({
|
|
|
1864
1864
|
marginBottom: 10,
|
|
1865
1865
|
fontSize: 18,
|
|
1866
1866
|
padding: 10,
|
|
1867
|
-
border: "1px dotted black"
|
|
1867
|
+
border: "1px dotted black",
|
|
1868
|
+
position: "relative"
|
|
1868
1869
|
},
|
|
1869
1870
|
wrap: false
|
|
1870
1871
|
},
|
|
@@ -1906,7 +1907,19 @@ var A4PujaList = ({
|
|
|
1906
1907
|
},
|
|
1907
1908
|
/* @__PURE__ */ React12.createElement(Text_default, null, `${booking.devoteeName} ----- ${booking.nakshatra} ----- ${booking.pujaName}`)
|
|
1908
1909
|
)
|
|
1909
|
-
)
|
|
1910
|
+
),
|
|
1911
|
+
/* @__PURE__ */ React12.createElement(View7, null, /* @__PURE__ */ React12.createElement(
|
|
1912
|
+
Text_default,
|
|
1913
|
+
{
|
|
1914
|
+
style: {
|
|
1915
|
+
textAlign: "center",
|
|
1916
|
+
marginTop: 10,
|
|
1917
|
+
fontSize: 10,
|
|
1918
|
+
opacity: 0.5
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
`~~~ bookmypuja.app - Your Puja, Our Commitment ~~~`
|
|
1922
|
+
))
|
|
1910
1923
|
);
|
|
1911
1924
|
}
|
|
1912
1925
|
);
|
|
@@ -3776,6 +3789,512 @@ var A4PostalReport = ({ date, templeName, data }) => {
|
|
|
3776
3789
|
};
|
|
3777
3790
|
var A4PostalReport_default = A4PostalReport;
|
|
3778
3791
|
|
|
3792
|
+
// src/sizes/a4/A4PaymentSettlementReport.tsx
|
|
3793
|
+
import { Document as Document15, Image as Image16, Page as Page15, View as View15 } from "@react-pdf/renderer";
|
|
3794
|
+
import React20 from "react";
|
|
3795
|
+
|
|
3796
|
+
// src/components/BrokenText.tsx
|
|
3797
|
+
import React19 from "react";
|
|
3798
|
+
import { View as View14 } from "@react-pdf/renderer";
|
|
3799
|
+
var BrokenText = ({ children }) => {
|
|
3800
|
+
if (!children || typeof children !== "string") return null;
|
|
3801
|
+
return /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(
|
|
3802
|
+
View14,
|
|
3803
|
+
{
|
|
3804
|
+
style: {
|
|
3805
|
+
display: "flex",
|
|
3806
|
+
flexDirection: "row",
|
|
3807
|
+
flexWrap: "wrap"
|
|
3808
|
+
}
|
|
3809
|
+
},
|
|
3810
|
+
children.split("").map((char, charIndex) => /* @__PURE__ */ React19.createElement(Text_default, { key: charIndex }, char))
|
|
3811
|
+
));
|
|
3812
|
+
};
|
|
3813
|
+
var BrokenText_default = BrokenText;
|
|
3814
|
+
|
|
3815
|
+
// src/sizes/a4/A4PaymentSettlementReport.tsx
|
|
3816
|
+
var A4PaymentSettlementReport = ({
|
|
3817
|
+
date,
|
|
3818
|
+
templeName,
|
|
3819
|
+
data
|
|
3820
|
+
}) => {
|
|
3821
|
+
return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(Document15, null, /* @__PURE__ */ React20.createElement(Page15, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React20.createElement(
|
|
3822
|
+
Image16,
|
|
3823
|
+
{
|
|
3824
|
+
fixed: true,
|
|
3825
|
+
style: {
|
|
3826
|
+
height: 15,
|
|
3827
|
+
width: 75,
|
|
3828
|
+
marginBottom: 10
|
|
3829
|
+
},
|
|
3830
|
+
src: bmpLogo
|
|
3831
|
+
}
|
|
3832
|
+
), /* @__PURE__ */ React20.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.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
|
+
View15,
|
|
3834
|
+
{
|
|
3835
|
+
style: {
|
|
3836
|
+
display: "flex",
|
|
3837
|
+
flexDirection: "column",
|
|
3838
|
+
marginTop: 20
|
|
3839
|
+
}
|
|
3840
|
+
},
|
|
3841
|
+
/* @__PURE__ */ React20.createElement(
|
|
3842
|
+
View15,
|
|
3843
|
+
{
|
|
3844
|
+
style: {
|
|
3845
|
+
display: "flex",
|
|
3846
|
+
flexDirection: "row",
|
|
3847
|
+
border: "1px solid #000",
|
|
3848
|
+
fontSize: 10,
|
|
3849
|
+
fontWeight: "semibold"
|
|
3850
|
+
}
|
|
3851
|
+
},
|
|
3852
|
+
/* @__PURE__ */ React20.createElement(
|
|
3853
|
+
View15,
|
|
3854
|
+
{
|
|
3855
|
+
style: {
|
|
3856
|
+
padding: 6,
|
|
3857
|
+
borderRight: "1px solid #000",
|
|
3858
|
+
width: "10%"
|
|
3859
|
+
}
|
|
3860
|
+
},
|
|
3861
|
+
/* @__PURE__ */ React20.createElement(Text_default, null, "Sr no")
|
|
3862
|
+
),
|
|
3863
|
+
/* @__PURE__ */ React20.createElement(
|
|
3864
|
+
View15,
|
|
3865
|
+
{
|
|
3866
|
+
style: {
|
|
3867
|
+
padding: 6,
|
|
3868
|
+
borderRight: "1px solid #000",
|
|
3869
|
+
width: "15%"
|
|
3870
|
+
}
|
|
3871
|
+
},
|
|
3872
|
+
/* @__PURE__ */ React20.createElement(Text_default, null, "Invoice No")
|
|
3873
|
+
),
|
|
3874
|
+
/* @__PURE__ */ React20.createElement(
|
|
3875
|
+
View15,
|
|
3876
|
+
{
|
|
3877
|
+
style: {
|
|
3878
|
+
padding: 6,
|
|
3879
|
+
borderRight: "1px solid #000",
|
|
3880
|
+
width: "15%"
|
|
3881
|
+
}
|
|
3882
|
+
},
|
|
3883
|
+
/* @__PURE__ */ React20.createElement(Text_default, null, "Amount")
|
|
3884
|
+
),
|
|
3885
|
+
/* @__PURE__ */ React20.createElement(
|
|
3886
|
+
View15,
|
|
3887
|
+
{
|
|
3888
|
+
style: {
|
|
3889
|
+
padding: 6,
|
|
3890
|
+
borderRight: "1px solid #000",
|
|
3891
|
+
width: "20%"
|
|
3892
|
+
}
|
|
3893
|
+
},
|
|
3894
|
+
/* @__PURE__ */ React20.createElement(Text_default, null, "Payment Date")
|
|
3895
|
+
),
|
|
3896
|
+
/* @__PURE__ */ React20.createElement(
|
|
3897
|
+
View15,
|
|
3898
|
+
{
|
|
3899
|
+
style: {
|
|
3900
|
+
padding: 6,
|
|
3901
|
+
borderRight: "1px solid #000",
|
|
3902
|
+
width: "20%"
|
|
3903
|
+
}
|
|
3904
|
+
},
|
|
3905
|
+
/* @__PURE__ */ React20.createElement(Text_default, null, "Settlement Date")
|
|
3906
|
+
),
|
|
3907
|
+
/* @__PURE__ */ React20.createElement(
|
|
3908
|
+
View15,
|
|
3909
|
+
{
|
|
3910
|
+
style: {
|
|
3911
|
+
padding: 6,
|
|
3912
|
+
// borderRight: "1px solid #000",
|
|
3913
|
+
borderRight: "none",
|
|
3914
|
+
width: "25%"
|
|
3915
|
+
}
|
|
3916
|
+
},
|
|
3917
|
+
/* @__PURE__ */ React20.createElement(Text_default, null, "Bank UTR No")
|
|
3918
|
+
)
|
|
3919
|
+
),
|
|
3920
|
+
data.map((item, index) => {
|
|
3921
|
+
return /* @__PURE__ */ React20.createElement(
|
|
3922
|
+
View15,
|
|
3923
|
+
{
|
|
3924
|
+
style: {
|
|
3925
|
+
display: "flex",
|
|
3926
|
+
flexDirection: "row",
|
|
3927
|
+
border: "1px solid #000",
|
|
3928
|
+
borderTop: "none",
|
|
3929
|
+
fontSize: 10
|
|
3930
|
+
}
|
|
3931
|
+
},
|
|
3932
|
+
/* @__PURE__ */ React20.createElement(
|
|
3933
|
+
View15,
|
|
3934
|
+
{
|
|
3935
|
+
style: {
|
|
3936
|
+
padding: 6,
|
|
3937
|
+
borderRight: "1px solid #000",
|
|
3938
|
+
width: "10%"
|
|
3939
|
+
}
|
|
3940
|
+
},
|
|
3941
|
+
/* @__PURE__ */ React20.createElement(Text_default, null, index + 1)
|
|
3942
|
+
),
|
|
3943
|
+
/* @__PURE__ */ React20.createElement(
|
|
3944
|
+
View15,
|
|
3945
|
+
{
|
|
3946
|
+
style: {
|
|
3947
|
+
padding: 6,
|
|
3948
|
+
borderRight: "1px solid #000",
|
|
3949
|
+
width: "15%"
|
|
3950
|
+
}
|
|
3951
|
+
},
|
|
3952
|
+
/* @__PURE__ */ React20.createElement(BrokenText_default, null, item.invoiceNo)
|
|
3953
|
+
),
|
|
3954
|
+
/* @__PURE__ */ React20.createElement(
|
|
3955
|
+
View15,
|
|
3956
|
+
{
|
|
3957
|
+
style: {
|
|
3958
|
+
padding: 6,
|
|
3959
|
+
borderRight: "1px solid #000",
|
|
3960
|
+
width: "15%"
|
|
3961
|
+
}
|
|
3962
|
+
},
|
|
3963
|
+
/* @__PURE__ */ React20.createElement(BrokenText_default, null, item.amount)
|
|
3964
|
+
),
|
|
3965
|
+
/* @__PURE__ */ React20.createElement(
|
|
3966
|
+
View15,
|
|
3967
|
+
{
|
|
3968
|
+
style: {
|
|
3969
|
+
padding: 6,
|
|
3970
|
+
borderRight: "1px solid #000",
|
|
3971
|
+
width: "20%"
|
|
3972
|
+
}
|
|
3973
|
+
},
|
|
3974
|
+
/* @__PURE__ */ React20.createElement(BrokenText_default, null, item.paymentDate)
|
|
3975
|
+
),
|
|
3976
|
+
/* @__PURE__ */ React20.createElement(
|
|
3977
|
+
View15,
|
|
3978
|
+
{
|
|
3979
|
+
style: {
|
|
3980
|
+
padding: 6,
|
|
3981
|
+
borderRight: "1px solid #000",
|
|
3982
|
+
width: "20%"
|
|
3983
|
+
}
|
|
3984
|
+
},
|
|
3985
|
+
/* @__PURE__ */ React20.createElement(BrokenText_default, null, item.settlementDate)
|
|
3986
|
+
),
|
|
3987
|
+
/* @__PURE__ */ React20.createElement(
|
|
3988
|
+
View15,
|
|
3989
|
+
{
|
|
3990
|
+
style: {
|
|
3991
|
+
padding: 6,
|
|
3992
|
+
// borderRight: "1px solid #000",
|
|
3993
|
+
borderRight: "none",
|
|
3994
|
+
width: "25%"
|
|
3995
|
+
}
|
|
3996
|
+
},
|
|
3997
|
+
/* @__PURE__ */ React20.createElement(BrokenText_default, null, item.bankUtrNo)
|
|
3998
|
+
)
|
|
3999
|
+
);
|
|
4000
|
+
})
|
|
4001
|
+
))));
|
|
4002
|
+
};
|
|
4003
|
+
var A4PaymentSettlementReport_default = A4PaymentSettlementReport;
|
|
4004
|
+
|
|
4005
|
+
// src/sizes/a4/A4InvoiceLevelBreakup.tsx
|
|
4006
|
+
import { Document as Document16, Image as Image17, Page as Page16, View as View16 } from "@react-pdf/renderer";
|
|
4007
|
+
import React21 from "react";
|
|
4008
|
+
var A4InvoiceLevelBreakup = ({
|
|
4009
|
+
date,
|
|
4010
|
+
templeName,
|
|
4011
|
+
data
|
|
4012
|
+
}) => {
|
|
4013
|
+
return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(Document16, null, /* @__PURE__ */ React21.createElement(Page16, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React21.createElement(
|
|
4014
|
+
Image17,
|
|
4015
|
+
{
|
|
4016
|
+
fixed: true,
|
|
4017
|
+
style: {
|
|
4018
|
+
height: 15,
|
|
4019
|
+
width: 75,
|
|
4020
|
+
marginBottom: 10
|
|
4021
|
+
},
|
|
4022
|
+
src: bmpLogo
|
|
4023
|
+
}
|
|
4024
|
+
), /* @__PURE__ */ React21.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.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
|
+
View16,
|
|
4026
|
+
{
|
|
4027
|
+
style: {
|
|
4028
|
+
display: "flex",
|
|
4029
|
+
flexDirection: "column",
|
|
4030
|
+
marginTop: 20
|
|
4031
|
+
}
|
|
4032
|
+
},
|
|
4033
|
+
/* @__PURE__ */ React21.createElement(
|
|
4034
|
+
View16,
|
|
4035
|
+
{
|
|
4036
|
+
style: {
|
|
4037
|
+
display: "flex",
|
|
4038
|
+
flexDirection: "row",
|
|
4039
|
+
border: "1px solid #000",
|
|
4040
|
+
fontSize: 8,
|
|
4041
|
+
fontWeight: "semibold"
|
|
4042
|
+
}
|
|
4043
|
+
},
|
|
4044
|
+
/* @__PURE__ */ React21.createElement(
|
|
4045
|
+
View16,
|
|
4046
|
+
{
|
|
4047
|
+
style: {
|
|
4048
|
+
padding: 3,
|
|
4049
|
+
borderRight: "1px solid #000",
|
|
4050
|
+
width: "4%"
|
|
4051
|
+
}
|
|
4052
|
+
},
|
|
4053
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Sr no")
|
|
4054
|
+
),
|
|
4055
|
+
/* @__PURE__ */ React21.createElement(
|
|
4056
|
+
View16,
|
|
4057
|
+
{
|
|
4058
|
+
style: {
|
|
4059
|
+
padding: 3,
|
|
4060
|
+
borderRight: "1px solid #000",
|
|
4061
|
+
width: "9%"
|
|
4062
|
+
}
|
|
4063
|
+
},
|
|
4064
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Invoice Number")
|
|
4065
|
+
),
|
|
4066
|
+
/* @__PURE__ */ React21.createElement(
|
|
4067
|
+
View16,
|
|
4068
|
+
{
|
|
4069
|
+
style: {
|
|
4070
|
+
padding: 3,
|
|
4071
|
+
borderRight: "1px solid #000",
|
|
4072
|
+
width: "9%"
|
|
4073
|
+
}
|
|
4074
|
+
},
|
|
4075
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Base Amount")
|
|
4076
|
+
),
|
|
4077
|
+
/* @__PURE__ */ React21.createElement(
|
|
4078
|
+
View16,
|
|
4079
|
+
{
|
|
4080
|
+
style: {
|
|
4081
|
+
padding: 3,
|
|
4082
|
+
borderRight: "1px solid #000",
|
|
4083
|
+
width: "9%"
|
|
4084
|
+
}
|
|
4085
|
+
},
|
|
4086
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Platform Fees")
|
|
4087
|
+
),
|
|
4088
|
+
/* @__PURE__ */ React21.createElement(
|
|
4089
|
+
View16,
|
|
4090
|
+
{
|
|
4091
|
+
style: {
|
|
4092
|
+
padding: 3,
|
|
4093
|
+
borderRight: "1px solid #000",
|
|
4094
|
+
width: "9%"
|
|
4095
|
+
}
|
|
4096
|
+
},
|
|
4097
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Platform Fees GST")
|
|
4098
|
+
),
|
|
4099
|
+
/* @__PURE__ */ React21.createElement(
|
|
4100
|
+
View16,
|
|
4101
|
+
{
|
|
4102
|
+
style: {
|
|
4103
|
+
padding: 3,
|
|
4104
|
+
borderRight: "1px solid #000",
|
|
4105
|
+
width: "9%"
|
|
4106
|
+
}
|
|
4107
|
+
},
|
|
4108
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Gateway Charges")
|
|
4109
|
+
),
|
|
4110
|
+
/* @__PURE__ */ React21.createElement(
|
|
4111
|
+
View16,
|
|
4112
|
+
{
|
|
4113
|
+
style: {
|
|
4114
|
+
padding: 3,
|
|
4115
|
+
borderRight: "1px solid #000",
|
|
4116
|
+
width: "9%"
|
|
4117
|
+
}
|
|
4118
|
+
},
|
|
4119
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Gateway GST")
|
|
4120
|
+
),
|
|
4121
|
+
/* @__PURE__ */ React21.createElement(
|
|
4122
|
+
View16,
|
|
4123
|
+
{
|
|
4124
|
+
style: {
|
|
4125
|
+
padding: 3,
|
|
4126
|
+
borderRight: "1px solid #000",
|
|
4127
|
+
width: "9%"
|
|
4128
|
+
}
|
|
4129
|
+
},
|
|
4130
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Payment Mode")
|
|
4131
|
+
),
|
|
4132
|
+
/* @__PURE__ */ React21.createElement(
|
|
4133
|
+
View16,
|
|
4134
|
+
{
|
|
4135
|
+
style: {
|
|
4136
|
+
padding: 3,
|
|
4137
|
+
borderRight: "1px solid #000",
|
|
4138
|
+
width: "9%"
|
|
4139
|
+
}
|
|
4140
|
+
},
|
|
4141
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Booking Date")
|
|
4142
|
+
),
|
|
4143
|
+
/* @__PURE__ */ React21.createElement(
|
|
4144
|
+
View16,
|
|
4145
|
+
{
|
|
4146
|
+
style: {
|
|
4147
|
+
padding: 3,
|
|
4148
|
+
borderRight: "1px solid #000",
|
|
4149
|
+
width: "9%"
|
|
4150
|
+
}
|
|
4151
|
+
},
|
|
4152
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "Settlement Date")
|
|
4153
|
+
),
|
|
4154
|
+
/* @__PURE__ */ React21.createElement(
|
|
4155
|
+
View16,
|
|
4156
|
+
{
|
|
4157
|
+
style: {
|
|
4158
|
+
padding: 3,
|
|
4159
|
+
borderRight: "none",
|
|
4160
|
+
width: "12%"
|
|
4161
|
+
}
|
|
4162
|
+
},
|
|
4163
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, "UTR Number")
|
|
4164
|
+
)
|
|
4165
|
+
),
|
|
4166
|
+
data.map((item, index) => {
|
|
4167
|
+
return /* @__PURE__ */ React21.createElement(
|
|
4168
|
+
View16,
|
|
4169
|
+
{
|
|
4170
|
+
key: index,
|
|
4171
|
+
style: {
|
|
4172
|
+
display: "flex",
|
|
4173
|
+
flexDirection: "row",
|
|
4174
|
+
border: "1px solid #000",
|
|
4175
|
+
borderTop: "none",
|
|
4176
|
+
fontSize: 8
|
|
4177
|
+
}
|
|
4178
|
+
},
|
|
4179
|
+
/* @__PURE__ */ React21.createElement(
|
|
4180
|
+
View16,
|
|
4181
|
+
{
|
|
4182
|
+
style: {
|
|
4183
|
+
padding: 3,
|
|
4184
|
+
borderRight: "1px solid #000",
|
|
4185
|
+
width: "4%"
|
|
4186
|
+
}
|
|
4187
|
+
},
|
|
4188
|
+
/* @__PURE__ */ React21.createElement(Text_default, null, index + 1)
|
|
4189
|
+
),
|
|
4190
|
+
/* @__PURE__ */ React21.createElement(
|
|
4191
|
+
View16,
|
|
4192
|
+
{
|
|
4193
|
+
style: {
|
|
4194
|
+
padding: 3,
|
|
4195
|
+
borderRight: "1px solid #000",
|
|
4196
|
+
width: "9%"
|
|
4197
|
+
}
|
|
4198
|
+
},
|
|
4199
|
+
/* @__PURE__ */ React21.createElement(BrokenText_default, null, item.invoiceNumber)
|
|
4200
|
+
),
|
|
4201
|
+
/* @__PURE__ */ React21.createElement(
|
|
4202
|
+
View16,
|
|
4203
|
+
{
|
|
4204
|
+
style: {
|
|
4205
|
+
padding: 3,
|
|
4206
|
+
borderRight: "1px solid #000",
|
|
4207
|
+
width: "9%"
|
|
4208
|
+
}
|
|
4209
|
+
},
|
|
4210
|
+
/* @__PURE__ */ React21.createElement(BrokenText_default, null, item.baseAmount)
|
|
4211
|
+
),
|
|
4212
|
+
/* @__PURE__ */ React21.createElement(
|
|
4213
|
+
View16,
|
|
4214
|
+
{
|
|
4215
|
+
style: {
|
|
4216
|
+
padding: 3,
|
|
4217
|
+
borderRight: "1px solid #000",
|
|
4218
|
+
width: "9%"
|
|
4219
|
+
}
|
|
4220
|
+
},
|
|
4221
|
+
/* @__PURE__ */ React21.createElement(BrokenText_default, null, item.platformFees)
|
|
4222
|
+
),
|
|
4223
|
+
/* @__PURE__ */ React21.createElement(
|
|
4224
|
+
View16,
|
|
4225
|
+
{
|
|
4226
|
+
style: {
|
|
4227
|
+
padding: 3,
|
|
4228
|
+
borderRight: "1px solid #000",
|
|
4229
|
+
width: "9%"
|
|
4230
|
+
}
|
|
4231
|
+
},
|
|
4232
|
+
/* @__PURE__ */ React21.createElement(BrokenText_default, null, item.platformFeesGST)
|
|
4233
|
+
),
|
|
4234
|
+
/* @__PURE__ */ React21.createElement(
|
|
4235
|
+
View16,
|
|
4236
|
+
{
|
|
4237
|
+
style: {
|
|
4238
|
+
padding: 3,
|
|
4239
|
+
borderRight: "1px solid #000",
|
|
4240
|
+
width: "9%"
|
|
4241
|
+
}
|
|
4242
|
+
},
|
|
4243
|
+
/* @__PURE__ */ React21.createElement(BrokenText_default, null, item.gatewayCharges)
|
|
4244
|
+
),
|
|
4245
|
+
/* @__PURE__ */ React21.createElement(
|
|
4246
|
+
View16,
|
|
4247
|
+
{
|
|
4248
|
+
style: {
|
|
4249
|
+
padding: 3,
|
|
4250
|
+
borderRight: "1px solid #000",
|
|
4251
|
+
width: "9%"
|
|
4252
|
+
}
|
|
4253
|
+
},
|
|
4254
|
+
/* @__PURE__ */ React21.createElement(BrokenText_default, null, item.gatewayChargesGST)
|
|
4255
|
+
),
|
|
4256
|
+
/* @__PURE__ */ React21.createElement(
|
|
4257
|
+
View16,
|
|
4258
|
+
{
|
|
4259
|
+
style: {
|
|
4260
|
+
padding: 3,
|
|
4261
|
+
borderRight: "1px solid #000",
|
|
4262
|
+
width: "9%"
|
|
4263
|
+
}
|
|
4264
|
+
},
|
|
4265
|
+
/* @__PURE__ */ React21.createElement(BrokenText_default, null, item.paymentMode)
|
|
4266
|
+
),
|
|
4267
|
+
/* @__PURE__ */ React21.createElement(
|
|
4268
|
+
View16,
|
|
4269
|
+
{
|
|
4270
|
+
style: {
|
|
4271
|
+
padding: 3,
|
|
4272
|
+
borderRight: "1px solid #000",
|
|
4273
|
+
width: "9%",
|
|
4274
|
+
fontSize: 7
|
|
4275
|
+
}
|
|
4276
|
+
},
|
|
4277
|
+
/* @__PURE__ */ React21.createElement(BrokenText_default, null, item.bookingDate)
|
|
4278
|
+
),
|
|
4279
|
+
/* @__PURE__ */ React21.createElement(
|
|
4280
|
+
View16,
|
|
4281
|
+
{
|
|
4282
|
+
style: {
|
|
4283
|
+
padding: 3,
|
|
4284
|
+
borderRight: "1px solid #000",
|
|
4285
|
+
width: "9%",
|
|
4286
|
+
fontSize: 7
|
|
4287
|
+
}
|
|
4288
|
+
},
|
|
4289
|
+
/* @__PURE__ */ React21.createElement(BrokenText_default, null, item.settlementDate)
|
|
4290
|
+
),
|
|
4291
|
+
/* @__PURE__ */ React21.createElement(View16, { style: { padding: 3, width: "12%" } }, /* @__PURE__ */ React21.createElement(BrokenText_default, null, item.utrNumber))
|
|
4292
|
+
);
|
|
4293
|
+
})
|
|
4294
|
+
))));
|
|
4295
|
+
};
|
|
4296
|
+
var A4InvoiceLevelBreakup_default = A4InvoiceLevelBreakup;
|
|
4297
|
+
|
|
3779
4298
|
// src/index.tsx
|
|
3780
4299
|
var getPrintBlob = ({
|
|
3781
4300
|
size,
|
|
@@ -3783,15 +4302,15 @@ var getPrintBlob = ({
|
|
|
3783
4302
|
dates
|
|
3784
4303
|
}) => {
|
|
3785
4304
|
if (size === "A4") {
|
|
3786
|
-
const blob = pdf(/* @__PURE__ */
|
|
4305
|
+
const blob = pdf(/* @__PURE__ */ React22.createElement(A4Print_default, { data, dates })).toBlob();
|
|
3787
4306
|
return blob;
|
|
3788
4307
|
} else {
|
|
3789
|
-
const blob = pdf(/* @__PURE__ */
|
|
4308
|
+
const blob = pdf(/* @__PURE__ */ React22.createElement(T2Inch_default, { data, dates })).toBlob();
|
|
3790
4309
|
return blob;
|
|
3791
4310
|
}
|
|
3792
4311
|
};
|
|
3793
4312
|
var getA4SummaryBlob = async () => {
|
|
3794
|
-
const blob = await pdf(/* @__PURE__ */
|
|
4313
|
+
const blob = await pdf(/* @__PURE__ */ React22.createElement(A4Print_default, { data: [], dates: ["", ""] })).toBlob();
|
|
3795
4314
|
return blob;
|
|
3796
4315
|
};
|
|
3797
4316
|
var printDevoteeReceipt2Inch = async (data) => {
|
|
@@ -3851,6 +4370,12 @@ var options = {
|
|
|
3851
4370
|
},
|
|
3852
4371
|
"postal-report": {
|
|
3853
4372
|
A4: A4PostalReport_default
|
|
4373
|
+
},
|
|
4374
|
+
"payment-settlement-report": {
|
|
4375
|
+
A4: A4PaymentSettlementReport_default
|
|
4376
|
+
},
|
|
4377
|
+
"invoice-breakup": {
|
|
4378
|
+
A4: A4InvoiceLevelBreakup_default
|
|
3854
4379
|
}
|
|
3855
4380
|
};
|
|
3856
4381
|
var reportPrinter = class {
|
|
@@ -4065,7 +4590,7 @@ var reportPrinter = class {
|
|
|
4065
4590
|
}
|
|
4066
4591
|
async print(data) {
|
|
4067
4592
|
const ReportComponent = options[this.option][this.size];
|
|
4068
|
-
const document = /* @__PURE__ */
|
|
4593
|
+
const document = /* @__PURE__ */ React22.createElement(ReportComponent, { ...data });
|
|
4069
4594
|
const blob = pdf(document).toBlob();
|
|
4070
4595
|
blob.then((blob2) => {
|
|
4071
4596
|
var blobURL = URL.createObjectURL(blob2);
|
|
@@ -4080,7 +4605,7 @@ var reportPrinter = class {
|
|
|
4080
4605
|
}
|
|
4081
4606
|
async getBlob(data) {
|
|
4082
4607
|
const ReportComponent = options[this.option][this.size];
|
|
4083
|
-
const document = /* @__PURE__ */
|
|
4608
|
+
const document = /* @__PURE__ */ React22.createElement(ReportComponent, { ...data });
|
|
4084
4609
|
const blob = pdf(document).toBlob();
|
|
4085
4610
|
return blob;
|
|
4086
4611
|
}
|
package/package.json
CHANGED