warqadui 0.0.306 → 0.0.308
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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -11
- package/dist/index.mjs +21 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -403,7 +403,7 @@ declare const Enums: {
|
|
|
403
403
|
purchase: readonly ["cash", "credit"];
|
|
404
404
|
stockTransferTypes: readonly ["pack", "product", "pack to product"];
|
|
405
405
|
forexTypes: readonly ["direct", "exchange", "supplier exchange"];
|
|
406
|
-
branchTypes: readonly ["shop", "store", "office", "apartment", "website", "online"];
|
|
406
|
+
branchTypes: readonly ["shop", "store", "office", "apartment", "website", "online", "shipping"];
|
|
407
407
|
documentTypes: readonly ["none", "id", "passport", "license"];
|
|
408
408
|
whatsappMessageTypes: readonly ["greeting", "payment", "invoice"];
|
|
409
409
|
whatsappMessageStatuses: readonly ["queued", "sent", "delivered", "read", "failed", "undelivered"];
|
package/dist/index.d.ts
CHANGED
|
@@ -403,7 +403,7 @@ declare const Enums: {
|
|
|
403
403
|
purchase: readonly ["cash", "credit"];
|
|
404
404
|
stockTransferTypes: readonly ["pack", "product", "pack to product"];
|
|
405
405
|
forexTypes: readonly ["direct", "exchange", "supplier exchange"];
|
|
406
|
-
branchTypes: readonly ["shop", "store", "office", "apartment", "website", "online"];
|
|
406
|
+
branchTypes: readonly ["shop", "store", "office", "apartment", "website", "online", "shipping"];
|
|
407
407
|
documentTypes: readonly ["none", "id", "passport", "license"];
|
|
408
408
|
whatsappMessageTypes: readonly ["greeting", "payment", "invoice"];
|
|
409
409
|
whatsappMessageStatuses: readonly ["queued", "sent", "delivered", "read", "failed", "undelivered"];
|
package/dist/index.js
CHANGED
|
@@ -333,7 +333,8 @@ var Enums = {
|
|
|
333
333
|
"office",
|
|
334
334
|
"apartment",
|
|
335
335
|
"website",
|
|
336
|
-
"online"
|
|
336
|
+
"online",
|
|
337
|
+
"shipping"
|
|
337
338
|
],
|
|
338
339
|
documentTypes: ["none", "id", "passport", "license"],
|
|
339
340
|
whatsappMessageTypes: ["greeting", "payment", "invoice"],
|
|
@@ -38853,7 +38854,7 @@ var LeaseRentOverviews = () => {
|
|
|
38853
38854
|
header: "Name",
|
|
38854
38855
|
key: "name",
|
|
38855
38856
|
searchKeys: ["name", "unitNames"],
|
|
38856
|
-
className: "text-
|
|
38857
|
+
className: "text-[10px]! px-1 wrap-break-word",
|
|
38857
38858
|
render: (row) => /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)("div", { className: "space-y-1", children: [
|
|
38858
38859
|
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
38859
38860
|
"p",
|
|
@@ -38873,13 +38874,13 @@ var LeaseRentOverviews = () => {
|
|
|
38873
38874
|
{
|
|
38874
38875
|
header: "Balance Due",
|
|
38875
38876
|
key: "credit",
|
|
38876
|
-
className: "text-
|
|
38877
|
+
className: "text-[10px]! px-1 text-right",
|
|
38877
38878
|
render: (row) => {
|
|
38878
38879
|
const Amount = row.creditTotal;
|
|
38879
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("p", { className: "font-bold text-green-500 dark:text-green-500 print:text-green-500", children: Formats_default.Amount(Amount) }) });
|
|
38880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("p", { className: "font-bold whitespace-nowrap text-green-500 dark:text-green-500 print:text-green-500", children: Formats_default.Amount(Amount) }) });
|
|
38880
38881
|
},
|
|
38881
38882
|
renderFooter: (data2) => {
|
|
38882
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { className: "text-green-500 font-bold", children: Formats_default.Amount(
|
|
38883
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { className: "text-green-500 font-bold whitespace-nowrap", children: Formats_default.Amount(
|
|
38883
38884
|
data2.reduce((acc, row) => acc + row.creditTotal, 0)
|
|
38884
38885
|
) });
|
|
38885
38886
|
}
|
|
@@ -38888,25 +38889,34 @@ var LeaseRentOverviews = () => {
|
|
|
38888
38889
|
{
|
|
38889
38890
|
header: "Paid",
|
|
38890
38891
|
key: "debit",
|
|
38891
|
-
className: "text-
|
|
38892
|
+
className: "text-[10px]! px-1 text-right",
|
|
38892
38893
|
render: (row) => {
|
|
38893
38894
|
const Amount = row.debitTotal;
|
|
38894
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("p", { className: "font-bold text-red-500 dark:text-red-500 print:text-red-500", children: Formats_default.Amount(Amount) }) });
|
|
38895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("p", { className: "font-bold whitespace-nowrap text-red-500 dark:text-red-500 print:text-red-500", children: Formats_default.Amount(Amount) }) });
|
|
38895
38896
|
},
|
|
38896
38897
|
renderFooter: (data2) => {
|
|
38897
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { className: "text-red-500 font-bold", children: Formats_default.Amount(data2.reduce((acc, row) => acc + row.debitTotal, 0)) });
|
|
38898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { className: "text-red-500 font-bold whitespace-nowrap", children: Formats_default.Amount(data2.reduce((acc, row) => acc + row.debitTotal, 0)) });
|
|
38899
|
+
}
|
|
38900
|
+
},
|
|
38901
|
+
{
|
|
38902
|
+
header: "Acc Balance",
|
|
38903
|
+
key: "accBalance",
|
|
38904
|
+
className: "text-[10px]! px-1 text-right",
|
|
38905
|
+
render: (row) => {
|
|
38906
|
+
const AccBalance = row.creditTotal - row.debitTotal;
|
|
38907
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { className: "font-bold whitespace-nowrap text-black dark:text-white print:text-black", children: Formats_default.Amount(AccBalance) });
|
|
38898
38908
|
}
|
|
38899
38909
|
},
|
|
38900
38910
|
{
|
|
38901
38911
|
header: "Remaining Balance",
|
|
38902
38912
|
key: "runningBalance",
|
|
38903
|
-
className: "text-
|
|
38904
|
-
render: (row) => /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { className: "font-bold text-black dark:text-white print:text-black", children: Formats_default.Price(
|
|
38913
|
+
className: "text-[10px]! px-1 text-right",
|
|
38914
|
+
render: (row) => /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { className: "font-bold whitespace-nowrap text-black dark:text-white print:text-black", children: Formats_default.Price(
|
|
38905
38915
|
row.runningBalance,
|
|
38906
38916
|
row.currency || currency || currencyFilter
|
|
38907
38917
|
) }),
|
|
38908
38918
|
renderFooter: (data2) => {
|
|
38909
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { className: "text-black dark:text-white print:text-black font-bold", children: Formats_default.Price(
|
|
38919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { className: "text-black dark:text-white print:text-black font-bold whitespace-nowrap", children: Formats_default.Price(
|
|
38910
38920
|
data2.reduce((acc, row) => acc + row.balance, 0),
|
|
38911
38921
|
currency || currencyFilter
|
|
38912
38922
|
) });
|
package/dist/index.mjs
CHANGED
|
@@ -114,7 +114,8 @@ var Enums = {
|
|
|
114
114
|
"office",
|
|
115
115
|
"apartment",
|
|
116
116
|
"website",
|
|
117
|
-
"online"
|
|
117
|
+
"online",
|
|
118
|
+
"shipping"
|
|
118
119
|
],
|
|
119
120
|
documentTypes: ["none", "id", "passport", "license"],
|
|
120
121
|
whatsappMessageTypes: ["greeting", "payment", "invoice"],
|
|
@@ -39027,7 +39028,7 @@ var LeaseRentOverviews = () => {
|
|
|
39027
39028
|
header: "Name",
|
|
39028
39029
|
key: "name",
|
|
39029
39030
|
searchKeys: ["name", "unitNames"],
|
|
39030
|
-
className: "text-
|
|
39031
|
+
className: "text-[10px]! px-1 wrap-break-word",
|
|
39031
39032
|
render: (row) => /* @__PURE__ */ jsxs191("div", { className: "space-y-1", children: [
|
|
39032
39033
|
/* @__PURE__ */ jsx221(
|
|
39033
39034
|
"p",
|
|
@@ -39047,13 +39048,13 @@ var LeaseRentOverviews = () => {
|
|
|
39047
39048
|
{
|
|
39048
39049
|
header: "Balance Due",
|
|
39049
39050
|
key: "credit",
|
|
39050
|
-
className: "text-
|
|
39051
|
+
className: "text-[10px]! px-1 text-right",
|
|
39051
39052
|
render: (row) => {
|
|
39052
39053
|
const Amount = row.creditTotal;
|
|
39053
|
-
return /* @__PURE__ */ jsx221("div", { className: "", children: /* @__PURE__ */ jsx221("p", { className: "font-bold text-green-500 dark:text-green-500 print:text-green-500", children: Formats_default.Amount(Amount) }) });
|
|
39054
|
+
return /* @__PURE__ */ jsx221("div", { className: "", children: /* @__PURE__ */ jsx221("p", { className: "font-bold whitespace-nowrap text-green-500 dark:text-green-500 print:text-green-500", children: Formats_default.Amount(Amount) }) });
|
|
39054
39055
|
},
|
|
39055
39056
|
renderFooter: (data2) => {
|
|
39056
|
-
return /* @__PURE__ */ jsx221("span", { className: "text-green-500 font-bold", children: Formats_default.Amount(
|
|
39057
|
+
return /* @__PURE__ */ jsx221("span", { className: "text-green-500 font-bold whitespace-nowrap", children: Formats_default.Amount(
|
|
39057
39058
|
data2.reduce((acc, row) => acc + row.creditTotal, 0)
|
|
39058
39059
|
) });
|
|
39059
39060
|
}
|
|
@@ -39062,25 +39063,34 @@ var LeaseRentOverviews = () => {
|
|
|
39062
39063
|
{
|
|
39063
39064
|
header: "Paid",
|
|
39064
39065
|
key: "debit",
|
|
39065
|
-
className: "text-
|
|
39066
|
+
className: "text-[10px]! px-1 text-right",
|
|
39066
39067
|
render: (row) => {
|
|
39067
39068
|
const Amount = row.debitTotal;
|
|
39068
|
-
return /* @__PURE__ */ jsx221("div", { className: "", children: /* @__PURE__ */ jsx221("p", { className: "font-bold text-red-500 dark:text-red-500 print:text-red-500", children: Formats_default.Amount(Amount) }) });
|
|
39069
|
+
return /* @__PURE__ */ jsx221("div", { className: "", children: /* @__PURE__ */ jsx221("p", { className: "font-bold whitespace-nowrap text-red-500 dark:text-red-500 print:text-red-500", children: Formats_default.Amount(Amount) }) });
|
|
39069
39070
|
},
|
|
39070
39071
|
renderFooter: (data2) => {
|
|
39071
|
-
return /* @__PURE__ */ jsx221("span", { className: "text-red-500 font-bold", children: Formats_default.Amount(data2.reduce((acc, row) => acc + row.debitTotal, 0)) });
|
|
39072
|
+
return /* @__PURE__ */ jsx221("span", { className: "text-red-500 font-bold whitespace-nowrap", children: Formats_default.Amount(data2.reduce((acc, row) => acc + row.debitTotal, 0)) });
|
|
39073
|
+
}
|
|
39074
|
+
},
|
|
39075
|
+
{
|
|
39076
|
+
header: "Acc Balance",
|
|
39077
|
+
key: "accBalance",
|
|
39078
|
+
className: "text-[10px]! px-1 text-right",
|
|
39079
|
+
render: (row) => {
|
|
39080
|
+
const AccBalance = row.creditTotal - row.debitTotal;
|
|
39081
|
+
return /* @__PURE__ */ jsx221("span", { className: "font-bold whitespace-nowrap text-black dark:text-white print:text-black", children: Formats_default.Amount(AccBalance) });
|
|
39072
39082
|
}
|
|
39073
39083
|
},
|
|
39074
39084
|
{
|
|
39075
39085
|
header: "Remaining Balance",
|
|
39076
39086
|
key: "runningBalance",
|
|
39077
|
-
className: "text-
|
|
39078
|
-
render: (row) => /* @__PURE__ */ jsx221("span", { className: "font-bold text-black dark:text-white print:text-black", children: Formats_default.Price(
|
|
39087
|
+
className: "text-[10px]! px-1 text-right",
|
|
39088
|
+
render: (row) => /* @__PURE__ */ jsx221("span", { className: "font-bold whitespace-nowrap text-black dark:text-white print:text-black", children: Formats_default.Price(
|
|
39079
39089
|
row.runningBalance,
|
|
39080
39090
|
row.currency || currency || currencyFilter
|
|
39081
39091
|
) }),
|
|
39082
39092
|
renderFooter: (data2) => {
|
|
39083
|
-
return /* @__PURE__ */ jsx221("span", { className: "text-black dark:text-white print:text-black font-bold", children: Formats_default.Price(
|
|
39093
|
+
return /* @__PURE__ */ jsx221("span", { className: "text-black dark:text-white print:text-black font-bold whitespace-nowrap", children: Formats_default.Price(
|
|
39084
39094
|
data2.reduce((acc, row) => acc + row.balance, 0),
|
|
39085
39095
|
currency || currencyFilter
|
|
39086
39096
|
) });
|