@tomei/finance 0.6.9 → 0.6.11
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/document/document.d.ts +1 -1
- package/dist/document/document.js +3 -3
- package/dist/document/document.js.map +1 -1
- package/dist/finance-company/finance-company.js +1 -1
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/payment-item/payment-item.d.ts +2 -2
- package/dist/payment-item/payment-item.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/document/document.ts +3 -0
- package/src/finance-company/finance-company.ts +1 -0
- package/src/payment-item/payment-item.ts +2 -2
package/package.json
CHANGED
package/src/document/document.ts
CHANGED
|
@@ -896,6 +896,7 @@ export default class Document extends AccountSystemEntity {
|
|
|
896
896
|
async generateReceipt(
|
|
897
897
|
userId?: string,
|
|
898
898
|
customer?: FinanceCustomerBase,
|
|
899
|
+
transaction?: any,
|
|
899
900
|
): Promise<{
|
|
900
901
|
HTMLMedia: MediasModel;
|
|
901
902
|
PDFMedia: MediasModel;
|
|
@@ -920,6 +921,7 @@ export default class Document extends AccountSystemEntity {
|
|
|
920
921
|
await Document.DEFAULT_INVOICE_TEMPLATE_HTML(),
|
|
921
922
|
htmlPayload,
|
|
922
923
|
userId ?? 'System',
|
|
924
|
+
transaction,
|
|
923
925
|
);
|
|
924
926
|
|
|
925
927
|
/* insert FileStream on pdfPayload */
|
|
@@ -940,6 +942,7 @@ export default class Document extends AccountSystemEntity {
|
|
|
940
942
|
await this.DEFAULT_RECEIPT_TEMPLATE_PDF(customer),
|
|
941
943
|
pdfPayload,
|
|
942
944
|
userId ?? 'System',
|
|
945
|
+
transaction,
|
|
943
946
|
);
|
|
944
947
|
|
|
945
948
|
return {
|
|
@@ -1212,6 +1212,7 @@ export default class FinanceCompany extends ObjectBase {
|
|
|
1212
1212
|
const receiptMedia = await receipt.generateReceipt(
|
|
1213
1213
|
receipt.IssuedById,
|
|
1214
1214
|
customer,
|
|
1215
|
+
dbTransaction,
|
|
1215
1216
|
);
|
|
1216
1217
|
|
|
1217
1218
|
/*Saving the receipt document and document items to the database*/
|
|
@@ -27,7 +27,7 @@ export default class PaymentItem extends ObjectBase {
|
|
|
27
27
|
return this._PayForObjectId;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
set PayForObjectId(id: string) {
|
|
31
31
|
this._PayForObjectId = id;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ export default class PaymentItem extends ObjectBase {
|
|
|
35
35
|
return this._PayForObjectType;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
set PayForObjectType(type: string) {
|
|
39
39
|
this._PayForObjectType = type;
|
|
40
40
|
}
|
|
41
41
|
|