@react-pakistan/util-functions 1.22.73 → 1.22.74
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.
|
@@ -36,6 +36,7 @@ interface PostQuoteInvoiceArgs {
|
|
|
36
36
|
id: string;
|
|
37
37
|
productQuantity: string;
|
|
38
38
|
}];
|
|
39
|
+
createdAt: string;
|
|
39
40
|
phone: string;
|
|
40
41
|
lastName: string;
|
|
41
42
|
firstName: string;
|
|
@@ -52,6 +53,6 @@ interface DeleteQuoteInvoiceArgs {
|
|
|
52
53
|
export declare const getQuotesInvoices: ({ prisma, }: GetQuotesInvoicesArgs) => Promise<Array<QuoteInvoiceBE>>;
|
|
53
54
|
export declare const getQuoteInvoiceById: ({ prisma, id, }: GetQuoteInvoiceByIdArgs) => Promise<QuoteInvoiceBE>;
|
|
54
55
|
export declare const postQuotesInvoices: ({ currentPage, pageLimit, prisma, queryWhere, }: PostQuotesInvoicesArgs) => Promise<Array<QuoteInvoiceBE>>;
|
|
55
|
-
export declare const postQuoteInvoice: ({ category, companyId, currency, customerId, date, discount, discountUnit, expiryDate, id, mode, note, ref, services, status, subTotal, taxValue, total, products, phone, lastName, firstName, email, country, city, address, prisma, }: PostQuoteInvoiceArgs) => Promise<QuoteInvoiceBE>;
|
|
56
|
+
export declare const postQuoteInvoice: ({ category, companyId, currency, customerId, date, discount, discountUnit, expiryDate, id, mode, note, ref, services, status, subTotal, taxValue, total, products, createdAt, phone, lastName, firstName, email, country, city, address, prisma, }: PostQuoteInvoiceArgs) => Promise<QuoteInvoiceBE>;
|
|
56
57
|
export declare const deleteQuoteInvoice: ({ prisma, id, }: DeleteQuoteInvoiceArgs) => Promise<QuoteInvoiceBE>;
|
|
57
58
|
export {};
|
|
@@ -69,7 +69,7 @@ const postQuotesInvoices = (_c) => __awaiter(void 0, [_c], void 0, function* ({
|
|
|
69
69
|
exports.postQuotesInvoices = postQuotesInvoices;
|
|
70
70
|
const postQuoteInvoice = (_d) => __awaiter(void 0, [_d], void 0, function* ({ category, companyId, currency, customerId, date, discount, discountUnit, expiryDate, id, mode, note, ref, services, status, subTotal, taxValue, total,
|
|
71
71
|
// productIds,
|
|
72
|
-
products, phone, lastName, firstName, email, country, city, address, prisma, }) {
|
|
72
|
+
products, createdAt, phone, lastName, firstName, email, country, city, address, prisma, }) {
|
|
73
73
|
let quoteInvoice;
|
|
74
74
|
if (mode === 'Create') {
|
|
75
75
|
const mappedServices = services.map((item) => {
|
|
@@ -94,6 +94,7 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
|
|
|
94
94
|
subTotal,
|
|
95
95
|
taxValue,
|
|
96
96
|
total,
|
|
97
|
+
createdAt,
|
|
97
98
|
services: {
|
|
98
99
|
createMany: {
|
|
99
100
|
data: mappedServices,
|