@zauru-sdk/types 6.16.0 → 6.18.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 +37 -10
- package/package.json +2 -2
package/dist/Custom.types.d.ts
CHANGED
|
@@ -89,6 +89,15 @@ export type RejectionCalculationMemo = {
|
|
|
89
89
|
description: string;
|
|
90
90
|
steps: RejectionPercentageAdjustmentStep[];
|
|
91
91
|
};
|
|
92
|
+
export type RejectionPercentageApplicationMode = "add" | "replace" | "successive";
|
|
93
|
+
export type RejectionPercentageApplication = {
|
|
94
|
+
value: number;
|
|
95
|
+
mode: RejectionPercentageApplicationMode;
|
|
96
|
+
};
|
|
97
|
+
export type RejectionPercentageLayers = {
|
|
98
|
+
additive: number;
|
|
99
|
+
successive: number[];
|
|
100
|
+
};
|
|
92
101
|
export type ExtendedInsertBookingBody = {
|
|
93
102
|
movements: Partial<MovementGraphQL>[];
|
|
94
103
|
};
|
|
@@ -264,18 +273,27 @@ export type PesoMaximoPorCanasta = {
|
|
|
264
273
|
item_id: number;
|
|
265
274
|
weight_limit: number;
|
|
266
275
|
};
|
|
276
|
+
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";
|
|
277
|
+
export type PoDiscountHistoryEntry = {
|
|
278
|
+
discount: number;
|
|
279
|
+
description: string;
|
|
280
|
+
agency_id: number;
|
|
281
|
+
employee_id: number;
|
|
282
|
+
employee_name: string;
|
|
283
|
+
created_at: string;
|
|
284
|
+
type: PoDiscountHistoryType;
|
|
285
|
+
successive?: boolean;
|
|
286
|
+
};
|
|
267
287
|
export type PoDiscountHistory = {
|
|
268
288
|
purchase_order_id: number;
|
|
269
289
|
purchase_order_id_number: string;
|
|
270
|
-
discounts:
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
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
|
-
}[];
|
|
290
|
+
discounts: PoDiscountHistoryEntry[];
|
|
291
|
+
};
|
|
292
|
+
export type UpdateOchAndDisResult = {
|
|
293
|
+
rejectionPercentage: number;
|
|
294
|
+
rejectionLayers: RejectionPercentageLayers;
|
|
295
|
+
rejectionCalculations?: RejectionCalculationMemo;
|
|
296
|
+
newlyAppliedSteps: RejectionPercentageAdjustmentStep[];
|
|
279
297
|
};
|
|
280
298
|
export type AuthorizationUpdateDiscountPO = {
|
|
281
299
|
id?: number;
|
|
@@ -547,6 +565,7 @@ export type POHistoryMassive = {
|
|
|
547
565
|
finalizada?: boolean;
|
|
548
566
|
originalOtherCharges: number;
|
|
549
567
|
originalDiscount: number;
|
|
568
|
+
originalLayers?: RejectionPercentageLayers;
|
|
550
569
|
revertida?: boolean;
|
|
551
570
|
/** memo del listado, para actualizar rejectionPercentage sin volver a consultar la OC */
|
|
552
571
|
memo?: string | object | null;
|
|
@@ -565,6 +584,7 @@ export type BitacoraPOMassive = {
|
|
|
565
584
|
fechaCreacion: string;
|
|
566
585
|
observations: string;
|
|
567
586
|
replace: boolean;
|
|
587
|
+
successive?: boolean;
|
|
568
588
|
desprocesar?: boolean;
|
|
569
589
|
lbsBuenas?: number;
|
|
570
590
|
lbsMalas?: number;
|
|
@@ -633,6 +653,10 @@ export type CalculatePurchaseOrderFinancialsInput = {
|
|
|
633
653
|
details?: PurchaseOrderFinancialDetail[] | null;
|
|
634
654
|
/** % de rechazo de origen, o el % final ya guardado en el memo */
|
|
635
655
|
rejectionPercentage?: number | string | null;
|
|
656
|
+
/** capas de usuario (antes de reglas). Si no se pasan, se leen del memo */
|
|
657
|
+
rejectionLayers?: RejectionPercentageLayers;
|
|
658
|
+
/** delta a aplicar sobre las capas actuales */
|
|
659
|
+
rejectionApplication?: RejectionPercentageApplication;
|
|
636
660
|
/** memo de la OC, para recuperar el % de origen y no apilar dos veces las reglas */
|
|
637
661
|
memo?: string | object;
|
|
638
662
|
/** reglas activas; si no se pasan, el % se usa tal cual */
|
|
@@ -642,8 +666,10 @@ export type CalculatePurchaseOrderFinancialsInput = {
|
|
|
642
666
|
export type CalculatePurchaseOrderFinancialsResult = {
|
|
643
667
|
subtotal: number;
|
|
644
668
|
discount: number;
|
|
645
|
-
/** % de rechazo con el que se calculó el descuento */
|
|
669
|
+
/** % de rechazo efectivo con el que se calculó el descuento */
|
|
646
670
|
rejectionPercentage: number;
|
|
671
|
+
/** capas de usuario (antes de reglas), para guardar en el memo */
|
|
672
|
+
rejectionLayers: RejectionPercentageLayers;
|
|
647
673
|
/** trazabilidad de las reglas aplicadas, para guardar en el memo */
|
|
648
674
|
rejectionCalculations?: RejectionCalculationMemo;
|
|
649
675
|
};
|
|
@@ -911,6 +937,7 @@ export type JsonMemoType = {
|
|
|
911
937
|
}>;
|
|
912
938
|
confirmed?: boolean;
|
|
913
939
|
rejectionPercentage?: number;
|
|
940
|
+
rejectionLayers?: RejectionPercentageLayers;
|
|
914
941
|
costCalculations?: CostCalculationMemo[];
|
|
915
942
|
rejectionCalculations?: RejectionCalculationMemo;
|
|
916
943
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.18.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": "c5b785baa29fdd2ab7f42a9077ba5cbe5c7c9707"
|
|
26
26
|
}
|