@zauru-sdk/types 6.15.0 → 6.17.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/Custom.types.d.ts +28 -9
- package/package.json +2 -2
package/dist/Custom.types.d.ts
CHANGED
|
@@ -264,18 +264,25 @@ export type PesoMaximoPorCanasta = {
|
|
|
264
264
|
item_id: number;
|
|
265
265
|
weight_limit: number;
|
|
266
266
|
};
|
|
267
|
+
export type PoDiscountHistoryType = "rechazo_recepcion_automatico_base" | "rechazo_recepcion_manual" | "rechazo_recepcion_manual_actualizacion" | "rechazo_cc_operativo_manual" | "rechazo_cc_operativo_manual_elotin_peso" | "rechazo_cc_operativo_manual_elotin_cantidad" | "rechazo_cc_admin_manual_reemplazo" | "rechazo_cc_admin_manual_actualizacion" | "rechazo_cc_admin_manual_descuento_masivo_reemplazo" | "rechazo_cc_admin_manual_descuento_masivo_actualizacion" | "rechazo_regla_automatica";
|
|
268
|
+
export type PoDiscountHistoryEntry = {
|
|
269
|
+
discount: number;
|
|
270
|
+
description: string;
|
|
271
|
+
agency_id: number;
|
|
272
|
+
employee_id: number;
|
|
273
|
+
employee_name: string;
|
|
274
|
+
created_at: string;
|
|
275
|
+
type: PoDiscountHistoryType;
|
|
276
|
+
};
|
|
267
277
|
export type PoDiscountHistory = {
|
|
268
278
|
purchase_order_id: number;
|
|
269
279
|
purchase_order_id_number: string;
|
|
270
|
-
discounts:
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
created_at: string;
|
|
277
|
-
type: "rechazo_recepcion_automatico_base" | "rechazo_recepcion_manual" | "rechazo_recepcion_manual_actualizacion" | "rechazo_cc_operativo_manual" | "rechazo_cc_operativo_manual_elotin_peso" | "rechazo_cc_operativo_manual_elotin_cantidad" | "rechazo_cc_admin_manual_reemplazo" | "rechazo_cc_admin_manual_actualizacion" | "rechazo_cc_admin_manual_descuento_masivo_reemplazo" | "rechazo_cc_admin_manual_descuento_masivo_actualizacion";
|
|
278
|
-
}[];
|
|
280
|
+
discounts: PoDiscountHistoryEntry[];
|
|
281
|
+
};
|
|
282
|
+
export type UpdateOchAndDisResult = {
|
|
283
|
+
rejectionPercentage: number;
|
|
284
|
+
rejectionCalculations?: RejectionCalculationMemo;
|
|
285
|
+
newlyAppliedSteps: RejectionPercentageAdjustmentStep[];
|
|
279
286
|
};
|
|
280
287
|
export type AuthorizationUpdateDiscountPO = {
|
|
281
288
|
id?: number;
|
|
@@ -631,11 +638,21 @@ export type PurchaseOrderFinancialDetail = {
|
|
|
631
638
|
};
|
|
632
639
|
export type CalculatePurchaseOrderFinancialsInput = {
|
|
633
640
|
details?: PurchaseOrderFinancialDetail[] | null;
|
|
641
|
+
/** % de rechazo de origen, o el % final ya guardado en el memo */
|
|
634
642
|
rejectionPercentage?: number | string | null;
|
|
643
|
+
/** memo de la OC, para recuperar el % de origen y no apilar dos veces las reglas */
|
|
644
|
+
memo?: string | object;
|
|
645
|
+
/** reglas activas; si no se pasan, el % se usa tal cual */
|
|
646
|
+
rules?: Array<RejectionPercentageAdjustmentRule | WebAppRowGraphQL<RejectionPercentageAdjustmentRule>>;
|
|
647
|
+
ctx?: RejectionPercentageAdjustmentContext;
|
|
635
648
|
};
|
|
636
649
|
export type CalculatePurchaseOrderFinancialsResult = {
|
|
637
650
|
subtotal: number;
|
|
638
651
|
discount: number;
|
|
652
|
+
/** % de rechazo con el que se calculó el descuento */
|
|
653
|
+
rejectionPercentage: number;
|
|
654
|
+
/** trazabilidad de las reglas aplicadas, para guardar en el memo */
|
|
655
|
+
rejectionCalculations?: RejectionCalculationMemo;
|
|
639
656
|
};
|
|
640
657
|
export type CostoSemanal = {
|
|
641
658
|
item: number;
|
|
@@ -682,6 +699,8 @@ export type CalculateItemPriceFromWeeklyMatrixResult = PriceAdjustmentResult & {
|
|
|
682
699
|
source: WeeklyCostMatrixSource;
|
|
683
700
|
period: WeeklyCostPeriod;
|
|
684
701
|
specialItemId?: number;
|
|
702
|
+
/** categoría (programa) del proveedor con la que se filtraron las reglas */
|
|
703
|
+
providerCategoryId?: number;
|
|
685
704
|
};
|
|
686
705
|
export type DischargeHistory = {
|
|
687
706
|
creadoPor: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.17.0",
|
|
4
4
|
"description": "Estructuras de Zauru, tipado de modelos y modelos personalizados.",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.1.6"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "d3483aa3b55a9a692f955e6a56d13f33b70db1c4"
|
|
26
26
|
}
|