@hisaabo/cli 0.4.0 → 0.5.0
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/bin/hisaabo.js
CHANGED
|
@@ -1691,9 +1691,7 @@ async function paymentCreateCommand(opts) {
|
|
|
1691
1691
|
console.log(`
|
|
1692
1692
|
Party: ${selected.name}
|
|
1693
1693
|
`);
|
|
1694
|
-
const
|
|
1695
|
-
const partial = await client.invoice.list({ partyId, status: "partial", limit: 10 });
|
|
1696
|
-
const unpaid = [...invoices.data, ...partial.data];
|
|
1694
|
+
const { data: unpaid } = await client.invoice.list({ partyId, status: ["sent", "partial", "overdue"], limit: 20 });
|
|
1697
1695
|
if (unpaid.length > 0) {
|
|
1698
1696
|
console.log(" Unpaid Invoices:");
|
|
1699
1697
|
console.log(" " + "\u2500".repeat(65));
|
|
@@ -4281,7 +4279,7 @@ function registerSessionCommands(program2) {
|
|
|
4281
4279
|
|
|
4282
4280
|
// src/bin/hisaabo.ts
|
|
4283
4281
|
var program = new Command();
|
|
4284
|
-
var cliVersion = true ? "0.
|
|
4282
|
+
var cliVersion = true ? "0.5.0" : "dev";
|
|
4285
4283
|
program.name("hisaabo").description("Hisaabo CLI \u2014 Invoicing and business management").version(cliVersion);
|
|
4286
4284
|
registerAuthCommands(program);
|
|
4287
4285
|
registerDashboardCommands(program);
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1002,7 +1002,7 @@ export interface InvoiceDetail extends InvoiceSummary {
|
|
|
1002
1002
|
|
|
1003
1003
|
export interface InvoiceListInput {
|
|
1004
1004
|
type?: "sale" | "purchase" | null;
|
|
1005
|
-
status?: InvoiceStatus | null;
|
|
1005
|
+
status?: InvoiceStatus | InvoiceStatus[] | null;
|
|
1006
1006
|
documentType?: DocumentType;
|
|
1007
1007
|
partyId?: string | null;
|
|
1008
1008
|
fromDate?: string | null;
|
|
@@ -57,9 +57,7 @@ export async function paymentCreateCommand(opts: CreateOpts): Promise<void> {
|
|
|
57
57
|
console.log(`\n Party: ${selected.name}\n`);
|
|
58
58
|
|
|
59
59
|
// Show unpaid invoices
|
|
60
|
-
const
|
|
61
|
-
const partial = await client.invoice.list({ partyId, status: "partial", limit: 10 });
|
|
62
|
-
const unpaid = [...invoices.data, ...partial.data];
|
|
60
|
+
const { data: unpaid } = await client.invoice.list({ partyId, status: ["sent", "partial", "overdue"], limit: 20 });
|
|
63
61
|
|
|
64
62
|
if (unpaid.length > 0) {
|
|
65
63
|
console.log(" Unpaid Invoices:");
|