@bookmypuja-tech/bmp-pdf 0.3.6 → 0.3.8
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 +6 -3
- package/dist/index.js +27 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -179,14 +179,17 @@ interface ISettlementRow {
|
|
|
179
179
|
number: string;
|
|
180
180
|
amount: string;
|
|
181
181
|
}[];
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
settlement_id: string;
|
|
183
|
+
date: string;
|
|
184
184
|
}
|
|
185
185
|
interface ISettlementsReport {
|
|
186
186
|
startDate: Date;
|
|
187
187
|
endDate: Date;
|
|
188
188
|
templeName: string;
|
|
189
|
-
|
|
189
|
+
data: {
|
|
190
|
+
settlements: ISettlementRow[];
|
|
191
|
+
totalCreditedAmount: string;
|
|
192
|
+
};
|
|
190
193
|
}
|
|
191
194
|
|
|
192
195
|
interface IInvoiceData {
|
package/dist/index.js
CHANGED
|
@@ -2824,7 +2824,7 @@ var A4SettlementsReport = ({
|
|
|
2824
2824
|
startDate,
|
|
2825
2825
|
endDate,
|
|
2826
2826
|
templeName,
|
|
2827
|
-
|
|
2827
|
+
data
|
|
2828
2828
|
}) => {
|
|
2829
2829
|
return /* @__PURE__ */ React16.createElement(Document12, null, /* @__PURE__ */ React16.createElement(
|
|
2830
2830
|
Page12,
|
|
@@ -2850,6 +2850,7 @@ var A4SettlementsReport = ({
|
|
|
2850
2850
|
/* @__PURE__ */ React16.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Dates: ", startDate.toDateString(), " - ", endDate.toDateString()),
|
|
2851
2851
|
/* @__PURE__ */ React16.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Settlements Report"),
|
|
2852
2852
|
/* @__PURE__ */ React16.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`),
|
|
2853
|
+
/* @__PURE__ */ React16.createElement(Text_default, { style: { fontSize: 10, marginTop: 10 } }, "Total Credited Amount: ", data.totalCreditedAmount),
|
|
2853
2854
|
/* @__PURE__ */ React16.createElement(
|
|
2854
2855
|
View11,
|
|
2855
2856
|
{
|
|
@@ -2890,7 +2891,7 @@ var A4SettlementsReport = ({
|
|
|
2890
2891
|
width: "15%"
|
|
2891
2892
|
}
|
|
2892
2893
|
},
|
|
2893
|
-
/* @__PURE__ */ React16.createElement(Text_default, null, "
|
|
2894
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Date")
|
|
2894
2895
|
),
|
|
2895
2896
|
/* @__PURE__ */ React16.createElement(
|
|
2896
2897
|
View11,
|
|
@@ -2898,10 +2899,10 @@ var A4SettlementsReport = ({
|
|
|
2898
2899
|
style: {
|
|
2899
2900
|
padding: 6,
|
|
2900
2901
|
borderRight: "1px solid #000",
|
|
2901
|
-
width: "
|
|
2902
|
+
width: "15%"
|
|
2902
2903
|
}
|
|
2903
2904
|
},
|
|
2904
|
-
/* @__PURE__ */ React16.createElement(Text_default, null, "
|
|
2905
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Settlement")
|
|
2905
2906
|
),
|
|
2906
2907
|
/* @__PURE__ */ React16.createElement(
|
|
2907
2908
|
View11,
|
|
@@ -2909,10 +2910,10 @@ var A4SettlementsReport = ({
|
|
|
2909
2910
|
style: {
|
|
2910
2911
|
padding: 6,
|
|
2911
2912
|
borderRight: "1px solid #000",
|
|
2912
|
-
width: "
|
|
2913
|
+
width: "20%"
|
|
2913
2914
|
}
|
|
2914
2915
|
},
|
|
2915
|
-
/* @__PURE__ */ React16.createElement(Text_default, null, "
|
|
2916
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "UTR")
|
|
2916
2917
|
),
|
|
2917
2918
|
/* @__PURE__ */ React16.createElement(
|
|
2918
2919
|
View11,
|
|
@@ -2920,10 +2921,10 @@ var A4SettlementsReport = ({
|
|
|
2920
2921
|
style: {
|
|
2921
2922
|
padding: 6,
|
|
2922
2923
|
borderRight: "1px solid #000",
|
|
2923
|
-
width: "
|
|
2924
|
+
width: "25%"
|
|
2924
2925
|
}
|
|
2925
2926
|
},
|
|
2926
|
-
/* @__PURE__ */ React16.createElement(Text_default, null, "
|
|
2927
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Invoice")
|
|
2927
2928
|
),
|
|
2928
2929
|
/* @__PURE__ */ React16.createElement(
|
|
2929
2930
|
View11,
|
|
@@ -2931,13 +2932,13 @@ var A4SettlementsReport = ({
|
|
|
2931
2932
|
style: {
|
|
2932
2933
|
padding: 6,
|
|
2933
2934
|
// borderRight: "1px solid #000",
|
|
2934
|
-
width: "
|
|
2935
|
+
width: "20%"
|
|
2935
2936
|
}
|
|
2936
2937
|
},
|
|
2937
|
-
/* @__PURE__ */ React16.createElement(Text_default, null, "
|
|
2938
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, "Settlement ID")
|
|
2938
2939
|
)
|
|
2939
2940
|
),
|
|
2940
|
-
settlements?.map((item, index) => {
|
|
2941
|
+
data.settlements?.map((item, index) => {
|
|
2941
2942
|
return /* @__PURE__ */ React16.createElement(
|
|
2942
2943
|
View11,
|
|
2943
2944
|
{
|
|
@@ -2960,6 +2961,18 @@ var A4SettlementsReport = ({
|
|
|
2960
2961
|
},
|
|
2961
2962
|
/* @__PURE__ */ React16.createElement(Text_default, null, index + 1)
|
|
2962
2963
|
),
|
|
2964
|
+
/* @__PURE__ */ React16.createElement(
|
|
2965
|
+
View11,
|
|
2966
|
+
{
|
|
2967
|
+
style: {
|
|
2968
|
+
padding: 6,
|
|
2969
|
+
width: "15%",
|
|
2970
|
+
// fontSize: 7,
|
|
2971
|
+
borderRight: "1px solid #000"
|
|
2972
|
+
}
|
|
2973
|
+
},
|
|
2974
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, item.date)
|
|
2975
|
+
),
|
|
2963
2976
|
/* @__PURE__ */ React16.createElement(
|
|
2964
2977
|
View11,
|
|
2965
2978
|
{
|
|
@@ -3009,13 +3022,12 @@ var A4SettlementsReport = ({
|
|
|
3009
3022
|
{
|
|
3010
3023
|
style: {
|
|
3011
3024
|
padding: 6,
|
|
3012
|
-
borderRight: "1px solid #000",
|
|
3025
|
+
// borderRight: "1px solid #000",
|
|
3013
3026
|
width: "20%"
|
|
3014
3027
|
}
|
|
3015
3028
|
},
|
|
3016
|
-
/* @__PURE__ */ React16.createElement(Text_default, null, item.
|
|
3017
|
-
)
|
|
3018
|
-
/* @__PURE__ */ React16.createElement(View11, { style: { padding: 6, width: "15%", fontSize: 7 } }, /* @__PURE__ */ React16.createElement(Text_default, null, item.remarks))
|
|
3029
|
+
/* @__PURE__ */ React16.createElement(Text_default, null, item.settlement_id)
|
|
3030
|
+
)
|
|
3019
3031
|
);
|
|
3020
3032
|
})
|
|
3021
3033
|
)
|
package/package.json
CHANGED