@tomei/finance 0.6.10 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/finance",
3
- "version": "0.6.10",
3
+ "version": "0.6.11",
4
4
  "description": "NestJS package for finance module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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*/