ztechno_core 0.0.127 → 0.0.128
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.
|
@@ -7,6 +7,7 @@ import { ZSQLService } from '../../core/sql_service';
|
|
|
7
7
|
import {
|
|
8
8
|
ZInvoice,
|
|
9
9
|
CreateInvoiceInput,
|
|
10
|
+
ZInvoiceItem,
|
|
10
11
|
ZInvoicePayment,
|
|
11
12
|
CreateInvoiceOverrides,
|
|
12
13
|
ZIssuedPayToken,
|
|
@@ -73,6 +74,7 @@ export declare class InvoiceService {
|
|
|
73
74
|
listInvoices(): Promise<ZInvoice[]>;
|
|
74
75
|
getInvoiceById(invoiceId: number): Promise<ZInvoice | undefined>;
|
|
75
76
|
listPayments(invoice_id: number): Promise<ZInvoicePayment[]>;
|
|
77
|
+
getInvoiceItems(invoiceId: number): Promise<ZInvoiceItem[]>;
|
|
76
78
|
archiveInvoice(invoiceId: number): Promise<ZInvoice>;
|
|
77
79
|
duplicateInvoice(
|
|
78
80
|
sourceInvoiceId: number,
|
|
@@ -419,6 +419,9 @@ class InvoiceService {
|
|
|
419
419
|
async listPayments(invoice_id) {
|
|
420
420
|
return await this.paymentsOrm.findByInvoice(invoice_id);
|
|
421
421
|
}
|
|
422
|
+
async getInvoiceItems(invoiceId) {
|
|
423
|
+
return await this.itemsOrm.findByInvoice(invoiceId);
|
|
424
|
+
}
|
|
422
425
|
// ==================== Archive ====================
|
|
423
426
|
async archiveInvoice(invoiceId) {
|
|
424
427
|
const invoice = await this.invoicesOrm.findById(invoiceId);
|