@tomei/finance 0.6.57 → 0.6.58
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
package/src/document/document.ts
CHANGED
|
@@ -497,13 +497,11 @@ export default class Document extends AccountSystemEntity {
|
|
|
497
497
|
<td class="tm_width_4">
|
|
498
498
|
${documentItem.Description}
|
|
499
499
|
</td>
|
|
500
|
-
<td class="tm_width_2">${documentItem.Currency} ${
|
|
501
|
-
|
|
502
|
-
}</td>
|
|
500
|
+
<td class="tm_width_2">${documentItem.Currency} ${documentItem.UnitPrice
|
|
501
|
+
}</td>
|
|
503
502
|
<td class="tm_width_1">${documentItem.Quantity}</td>
|
|
504
|
-
<td class="tm_width_2 tm_text_right">${documentItem.Currency} ${
|
|
505
|
-
|
|
506
|
-
}</td>
|
|
503
|
+
<td class="tm_width_2 tm_text_right">${documentItem.Currency} ${+documentItem.UnitPrice * +documentItem.Quantity
|
|
504
|
+
}</td>
|
|
507
505
|
</tr>
|
|
508
506
|
`;
|
|
509
507
|
});
|
|
@@ -718,13 +716,11 @@ export default class Document extends AccountSystemEntity {
|
|
|
718
716
|
<td class="tm_width_4">
|
|
719
717
|
${documentItem.Description}
|
|
720
718
|
</td>
|
|
721
|
-
<td class="tm_width_2">${documentItem.Currency} ${
|
|
722
|
-
|
|
723
|
-
}</td>
|
|
719
|
+
<td class="tm_width_2">${documentItem.Currency} ${documentItem.UnitPrice
|
|
720
|
+
}</td>
|
|
724
721
|
<td class="tm_width_1">${documentItem.Quantity}</td>
|
|
725
|
-
<td class="tm_width_2 tm_text_right">${documentItem.Currency} ${
|
|
726
|
-
|
|
727
|
-
}</td>
|
|
722
|
+
<td class="tm_width_2 tm_text_right">${documentItem.Currency} ${+documentItem.UnitPrice * +documentItem.Quantity
|
|
723
|
+
}</td>
|
|
728
724
|
</tr>
|
|
729
725
|
`;
|
|
730
726
|
});
|
|
@@ -827,7 +823,7 @@ export default class Document extends AccountSystemEntity {
|
|
|
827
823
|
/* insert FileStream on htmlPayload */
|
|
828
824
|
const htmlPayload: InternalMediaDto = {
|
|
829
825
|
ObjectId: this.DocNo,
|
|
830
|
-
ObjectType:
|
|
826
|
+
ObjectType: 'Document',
|
|
831
827
|
Type: MediaType.Document,
|
|
832
828
|
FileName: `${this.DocType}-${this.DocNo}`,
|
|
833
829
|
FileStream: await Document.DEFAULT_INVOICE_TEMPLATE_HTML(),
|
|
@@ -849,7 +845,7 @@ export default class Document extends AccountSystemEntity {
|
|
|
849
845
|
/* insert FileStream on pdfPayload */
|
|
850
846
|
const pdfPayload: InternalMediaDto = {
|
|
851
847
|
ObjectId: this.DocNo,
|
|
852
|
-
ObjectType:
|
|
848
|
+
ObjectType: 'Document',
|
|
853
849
|
Type: MediaType.Document,
|
|
854
850
|
FileName: `${this.DocType}-${this.DocNo}`,
|
|
855
851
|
FileStream: await this.DEFAULT_INVOICE_TEMPLATE_PDF(customer),
|
|
@@ -916,7 +912,7 @@ export default class Document extends AccountSystemEntity {
|
|
|
916
912
|
/* insert FileStream on htmlPayload */
|
|
917
913
|
const htmlPayload: InternalMediaDto = {
|
|
918
914
|
ObjectId: this.DocNo,
|
|
919
|
-
ObjectType:
|
|
915
|
+
ObjectType: 'Document',
|
|
920
916
|
Type: MediaType.Document,
|
|
921
917
|
FileName: `${this.DocType}-${this.DocNo}`,
|
|
922
918
|
FileStream: await Document.DEFAULT_INVOICE_TEMPLATE_HTML(),
|
|
@@ -937,7 +933,7 @@ export default class Document extends AccountSystemEntity {
|
|
|
937
933
|
/* insert FileStream on pdfPayload */
|
|
938
934
|
const pdfPayload: InternalMediaDto = {
|
|
939
935
|
ObjectId: this.DocNo,
|
|
940
|
-
ObjectType:
|
|
936
|
+
ObjectType: 'Document',
|
|
941
937
|
Type: MediaType.Document,
|
|
942
938
|
FileName: `${this.DocType}-${this.DocNo}`,
|
|
943
939
|
FileStream: await this.DEFAULT_RECEIPT_TEMPLATE_PDF(customer),
|