hvp-shared 14.6.0 → 14.7.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.
|
@@ -48,6 +48,31 @@ export interface AdhocPaymentResponse {
|
|
|
48
48
|
createdBy?: string;
|
|
49
49
|
updatedBy?: string;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* A single chain-validation issue the user should fix in QVET.
|
|
53
|
+
*/
|
|
54
|
+
export interface ChainValidationIssue {
|
|
55
|
+
/** e.g. "order_without_purchase" | "purchase_without_invoice". */
|
|
56
|
+
kind: string;
|
|
57
|
+
supplier: string;
|
|
58
|
+
/** Order number / invoice number / supplier invoice, per kind. */
|
|
59
|
+
reference: string;
|
|
60
|
+
date?: string;
|
|
61
|
+
amount?: number;
|
|
62
|
+
detail?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Chain validation for the period: each pedido has its compra, each compra its factura.
|
|
66
|
+
* @example GET /api/supplier-payments/validation
|
|
67
|
+
*/
|
|
68
|
+
export interface SupplierPaymentsValidationResponse {
|
|
69
|
+
ordersWithoutPurchase: ChainValidationIssue[];
|
|
70
|
+
purchasesWithoutInvoice: ChainValidationIssue[];
|
|
71
|
+
counts: {
|
|
72
|
+
ordersWithoutPurchase: number;
|
|
73
|
+
purchasesWithoutInvoice: number;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
51
76
|
/** A per-supplier discount rule (HVP-owned). */
|
|
52
77
|
export interface SupplierDiscountRuleResponse {
|
|
53
78
|
id: string;
|