erpnext-queue-client 2.9.6 → 2.9.7
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.
|
@@ -46,5 +46,15 @@ class ERPNextMethodRequest {
|
|
|
46
46
|
.describe("Submitted linked docs response"),
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
+
async runDocMethod({ method, docs, }) {
|
|
50
|
+
return await this.request({
|
|
51
|
+
methodName: "run_doc_method",
|
|
52
|
+
requestMethod: "POST",
|
|
53
|
+
body: {
|
|
54
|
+
method,
|
|
55
|
+
docs,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
}
|
|
49
59
|
}
|
|
50
60
|
exports.ERPNextMethodRequest = ERPNextMethodRequest;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export declare const PaymentReconciliation: z.ZodObject<{
|
|
3
|
+
doctype: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
company: z.ZodString;
|
|
6
|
+
party_type: z.ZodString;
|
|
7
|
+
party: z.ZodString;
|
|
8
|
+
receivable_payable_account: z.ZodString;
|
|
9
|
+
payments: z.ZodArray<z.ZodObject<{
|
|
10
|
+
reference_type: z.ZodString;
|
|
11
|
+
reference_name: z.ZodString;
|
|
12
|
+
posting_date: z.ZodString;
|
|
13
|
+
amount: z.ZodNumber;
|
|
14
|
+
difference_amount: z.ZodNumber;
|
|
15
|
+
currency: z.ZodString;
|
|
16
|
+
exchange_rate: z.ZodNumber;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
amount: number;
|
|
19
|
+
posting_date: string;
|
|
20
|
+
currency: string;
|
|
21
|
+
reference_name: string;
|
|
22
|
+
difference_amount: number;
|
|
23
|
+
reference_type: string;
|
|
24
|
+
exchange_rate: number;
|
|
25
|
+
}, {
|
|
26
|
+
amount: number;
|
|
27
|
+
posting_date: string;
|
|
28
|
+
currency: string;
|
|
29
|
+
reference_name: string;
|
|
30
|
+
difference_amount: number;
|
|
31
|
+
reference_type: string;
|
|
32
|
+
exchange_rate: number;
|
|
33
|
+
}>, "many">;
|
|
34
|
+
invoices: z.ZodArray<z.ZodObject<{
|
|
35
|
+
invoice_type: z.ZodString;
|
|
36
|
+
invoice_number: z.ZodString;
|
|
37
|
+
invoice_date: z.ZodString;
|
|
38
|
+
amount: z.ZodNumber;
|
|
39
|
+
outstanding_amount: z.ZodNumber;
|
|
40
|
+
currency: z.ZodString;
|
|
41
|
+
exchange_rate: z.ZodNumber;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
amount: number;
|
|
44
|
+
currency: string;
|
|
45
|
+
outstanding_amount: number;
|
|
46
|
+
exchange_rate: number;
|
|
47
|
+
invoice_type: string;
|
|
48
|
+
invoice_number: string;
|
|
49
|
+
invoice_date: string;
|
|
50
|
+
}, {
|
|
51
|
+
amount: number;
|
|
52
|
+
currency: string;
|
|
53
|
+
outstanding_amount: number;
|
|
54
|
+
exchange_rate: number;
|
|
55
|
+
invoice_type: string;
|
|
56
|
+
invoice_number: string;
|
|
57
|
+
invoice_date: string;
|
|
58
|
+
}>, "many">;
|
|
59
|
+
allocation: z.ZodArray<z.ZodObject<{
|
|
60
|
+
reference_type: z.ZodString;
|
|
61
|
+
reference_name: z.ZodString;
|
|
62
|
+
invoice_type: z.ZodString;
|
|
63
|
+
invoice_number: z.ZodString;
|
|
64
|
+
allocated_amount: z.ZodNumber;
|
|
65
|
+
unreconciled_amount: z.ZodNumber;
|
|
66
|
+
amount: z.ZodNumber;
|
|
67
|
+
difference_amount: z.ZodNumber;
|
|
68
|
+
gain_loss_posting_date: z.ZodString;
|
|
69
|
+
difference_account: z.ZodString;
|
|
70
|
+
exchange_rate: z.ZodNumber;
|
|
71
|
+
currency: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
amount: number;
|
|
74
|
+
currency: string;
|
|
75
|
+
reference_name: string;
|
|
76
|
+
allocated_amount: number;
|
|
77
|
+
difference_amount: number;
|
|
78
|
+
reference_type: string;
|
|
79
|
+
exchange_rate: number;
|
|
80
|
+
invoice_type: string;
|
|
81
|
+
invoice_number: string;
|
|
82
|
+
unreconciled_amount: number;
|
|
83
|
+
gain_loss_posting_date: string;
|
|
84
|
+
difference_account: string;
|
|
85
|
+
}, {
|
|
86
|
+
amount: number;
|
|
87
|
+
currency: string;
|
|
88
|
+
reference_name: string;
|
|
89
|
+
allocated_amount: number;
|
|
90
|
+
difference_amount: number;
|
|
91
|
+
reference_type: string;
|
|
92
|
+
exchange_rate: number;
|
|
93
|
+
invoice_type: string;
|
|
94
|
+
invoice_number: string;
|
|
95
|
+
unreconciled_amount: number;
|
|
96
|
+
gain_loss_posting_date: string;
|
|
97
|
+
difference_account: string;
|
|
98
|
+
}>, "many">;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
name: string;
|
|
101
|
+
doctype: string;
|
|
102
|
+
company: string;
|
|
103
|
+
party_type: string;
|
|
104
|
+
party: string;
|
|
105
|
+
payments: {
|
|
106
|
+
amount: number;
|
|
107
|
+
posting_date: string;
|
|
108
|
+
currency: string;
|
|
109
|
+
reference_name: string;
|
|
110
|
+
difference_amount: number;
|
|
111
|
+
reference_type: string;
|
|
112
|
+
exchange_rate: number;
|
|
113
|
+
}[];
|
|
114
|
+
receivable_payable_account: string;
|
|
115
|
+
invoices: {
|
|
116
|
+
amount: number;
|
|
117
|
+
currency: string;
|
|
118
|
+
outstanding_amount: number;
|
|
119
|
+
exchange_rate: number;
|
|
120
|
+
invoice_type: string;
|
|
121
|
+
invoice_number: string;
|
|
122
|
+
invoice_date: string;
|
|
123
|
+
}[];
|
|
124
|
+
allocation: {
|
|
125
|
+
amount: number;
|
|
126
|
+
currency: string;
|
|
127
|
+
reference_name: string;
|
|
128
|
+
allocated_amount: number;
|
|
129
|
+
difference_amount: number;
|
|
130
|
+
reference_type: string;
|
|
131
|
+
exchange_rate: number;
|
|
132
|
+
invoice_type: string;
|
|
133
|
+
invoice_number: string;
|
|
134
|
+
unreconciled_amount: number;
|
|
135
|
+
gain_loss_posting_date: string;
|
|
136
|
+
difference_account: string;
|
|
137
|
+
}[];
|
|
138
|
+
}, {
|
|
139
|
+
name: string;
|
|
140
|
+
doctype: string;
|
|
141
|
+
company: string;
|
|
142
|
+
party_type: string;
|
|
143
|
+
party: string;
|
|
144
|
+
payments: {
|
|
145
|
+
amount: number;
|
|
146
|
+
posting_date: string;
|
|
147
|
+
currency: string;
|
|
148
|
+
reference_name: string;
|
|
149
|
+
difference_amount: number;
|
|
150
|
+
reference_type: string;
|
|
151
|
+
exchange_rate: number;
|
|
152
|
+
}[];
|
|
153
|
+
receivable_payable_account: string;
|
|
154
|
+
invoices: {
|
|
155
|
+
amount: number;
|
|
156
|
+
currency: string;
|
|
157
|
+
outstanding_amount: number;
|
|
158
|
+
exchange_rate: number;
|
|
159
|
+
invoice_type: string;
|
|
160
|
+
invoice_number: string;
|
|
161
|
+
invoice_date: string;
|
|
162
|
+
}[];
|
|
163
|
+
allocation: {
|
|
164
|
+
amount: number;
|
|
165
|
+
currency: string;
|
|
166
|
+
reference_name: string;
|
|
167
|
+
allocated_amount: number;
|
|
168
|
+
difference_amount: number;
|
|
169
|
+
reference_type: string;
|
|
170
|
+
exchange_rate: number;
|
|
171
|
+
invoice_type: string;
|
|
172
|
+
invoice_number: string;
|
|
173
|
+
unreconciled_amount: number;
|
|
174
|
+
gain_loss_posting_date: string;
|
|
175
|
+
difference_account: string;
|
|
176
|
+
}[];
|
|
177
|
+
}>;
|
|
178
|
+
export type PaymentReconciliationType = z.infer<typeof PaymentReconciliation>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PaymentReconciliation = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const PaymentReconciliationPayment = zod_1.default
|
|
9
|
+
.object({
|
|
10
|
+
reference_type: zod_1.default.string(),
|
|
11
|
+
reference_name: zod_1.default.string(),
|
|
12
|
+
posting_date: zod_1.default.string(),
|
|
13
|
+
amount: zod_1.default.number(),
|
|
14
|
+
difference_amount: zod_1.default.number(),
|
|
15
|
+
currency: zod_1.default.string(),
|
|
16
|
+
exchange_rate: zod_1.default.number(),
|
|
17
|
+
})
|
|
18
|
+
.describe("Payment Reconciliation Payment");
|
|
19
|
+
const PaymentReconciliationInvoice = zod_1.default
|
|
20
|
+
.object({
|
|
21
|
+
invoice_type: zod_1.default.string(),
|
|
22
|
+
invoice_number: zod_1.default.string(),
|
|
23
|
+
invoice_date: zod_1.default.string(),
|
|
24
|
+
amount: zod_1.default.number(),
|
|
25
|
+
outstanding_amount: zod_1.default.number(),
|
|
26
|
+
currency: zod_1.default.string(),
|
|
27
|
+
exchange_rate: zod_1.default.number(),
|
|
28
|
+
})
|
|
29
|
+
.describe("Payment Reconciliation Invoice");
|
|
30
|
+
const PaymentReconciliationAllocation = zod_1.default
|
|
31
|
+
.object({
|
|
32
|
+
reference_type: zod_1.default.string(),
|
|
33
|
+
reference_name: zod_1.default.string(),
|
|
34
|
+
invoice_type: zod_1.default.string(),
|
|
35
|
+
invoice_number: zod_1.default.string(),
|
|
36
|
+
allocated_amount: zod_1.default.number(),
|
|
37
|
+
unreconciled_amount: zod_1.default.number(),
|
|
38
|
+
amount: zod_1.default.number(),
|
|
39
|
+
difference_amount: zod_1.default.number(),
|
|
40
|
+
gain_loss_posting_date: zod_1.default.string(),
|
|
41
|
+
difference_account: zod_1.default.string(),
|
|
42
|
+
exchange_rate: zod_1.default.number(),
|
|
43
|
+
currency: zod_1.default.string(),
|
|
44
|
+
})
|
|
45
|
+
.describe("Payment Reconciliation Allocation");
|
|
46
|
+
exports.PaymentReconciliation = zod_1.default
|
|
47
|
+
.object({
|
|
48
|
+
doctype: zod_1.default.string(),
|
|
49
|
+
name: zod_1.default.string(),
|
|
50
|
+
company: zod_1.default.string(),
|
|
51
|
+
party_type: zod_1.default.string(),
|
|
52
|
+
party: zod_1.default.string(),
|
|
53
|
+
receivable_payable_account: zod_1.default.string(),
|
|
54
|
+
payments: zod_1.default.array(PaymentReconciliationPayment),
|
|
55
|
+
invoices: zod_1.default.array(PaymentReconciliationInvoice),
|
|
56
|
+
allocation: zod_1.default.array(PaymentReconciliationAllocation),
|
|
57
|
+
})
|
|
58
|
+
.describe("Payment Reconciliation");
|