@tomei/finance 0.5.6 → 0.5.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.
@@ -17,12 +17,20 @@
17
17
  <div class="tm_invoice tm_style1" id="tm_download_section">
18
18
  <div class="tm_invoice_in">
19
19
  <div class="tm_invoice_head tm_align_center tm_mb20">
20
- <div class="tm_invoice_left">
20
+ <div class="tm_invoice_left" style="width: max-content;">
21
21
  <div class="tm_logo">
22
22
  <img src="./assets/img/logo.svg" alt="Logo" />
23
23
  </div>
24
+ <div>
25
+ <p class="tm_m0" style="font-size: small;">
26
+ <b class="tm_primary_color">TXG Financial Solutions Sdn Bhd</b> (200201019252)(586915-X)
27
+ </p>
28
+ <p class="tm_m0" style="font-size: smaller;">
29
+ 4-3, Jalan 2/131A, Project Jaya Industrial Estate, Batu 6, Jalan Kelang Lama, 58200 Kuala Lumpur, Malaysia.
30
+ </p>
31
+ </div>
24
32
  </div>
25
- <div class="tm_invoice_right tm_text_right tm_invoice_title">
33
+ <div class="tm_invoice_right tm_text_right tm_invoice_title" style="width: 30%;">
26
34
  <div class="tm_primary_color tm_f50 tm_text_uppercase">
27
35
  Invoice
28
36
  </div>
@@ -143,7 +151,7 @@
143
151
  Credit Card - 236***********928 <br />Amount: $1732
144
152
  </p>
145
153
  </div>
146
- <div class="tm_item_total_section">
154
+ <div class="tm_item_total_section" style="padding-left: 120px;">
147
155
  <table>
148
156
  <tbody>
149
157
  <tr>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/finance",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "NestJS package for finance module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -317,14 +317,12 @@ export default class Document extends AccountSystemEntity {
317
317
  const page = await browser.newPage();
318
318
 
319
319
  const imagePath = path.resolve(
320
- './invoice-template/assets/img/tomei-logo.svg',
320
+ './invoice-template/assets/img/ezcash-logo.png',
321
321
  );
322
322
  const imageBuffer = await readFileContent(imagePath);
323
- // const imageDataUrl = `data:image/svg+xml;base64,${imageBuffer.toString(
324
- // 'base64',
325
- // )}`;
326
- // temporary to hide the logo
327
- const imageDataUrl = '';
323
+ const imageDataUrl = `data:image/svg+xml;base64,${imageBuffer.toString(
324
+ 'base64',
325
+ )}`;
328
326
 
329
327
  const imgTag = `<img src="${imageDataUrl}" alt="Logo">`;
330
328
 
@@ -545,14 +543,12 @@ export default class Document extends AccountSystemEntity {
545
543
  const page = await browser.newPage();
546
544
 
547
545
  const imagePath = path.resolve(
548
- './invoice-template/assets/img/tomei-logo.svg',
546
+ './invoice-template/assets/img/ezcash-logo.png',
549
547
  );
550
548
  const imageBuffer = await readFileContent(imagePath);
551
- // const imageDataUrl = `data:image/svg+xml;base64,${imageBuffer.toString(
552
- // 'base64',
553
- // )}`;
554
- // temporary to hide tomei logo
555
- const imageDataUrl = '';
549
+ const imageDataUrl = `data:image/svg+xml;base64,${imageBuffer.toString(
550
+ 'base64',
551
+ )}`;
556
552
 
557
553
  const imgTag = `<img src="${imageDataUrl}" alt="Logo">`;
558
554