@zauru-sdk/types 6.17.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 +21 -1
- 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
|
};
|
|
@@ -273,6 +282,7 @@ export type PoDiscountHistoryEntry = {
|
|
|
273
282
|
employee_name: string;
|
|
274
283
|
created_at: string;
|
|
275
284
|
type: PoDiscountHistoryType;
|
|
285
|
+
successive?: boolean;
|
|
276
286
|
};
|
|
277
287
|
export type PoDiscountHistory = {
|
|
278
288
|
purchase_order_id: number;
|
|
@@ -281,6 +291,7 @@ export type PoDiscountHistory = {
|
|
|
281
291
|
};
|
|
282
292
|
export type UpdateOchAndDisResult = {
|
|
283
293
|
rejectionPercentage: number;
|
|
294
|
+
rejectionLayers: RejectionPercentageLayers;
|
|
284
295
|
rejectionCalculations?: RejectionCalculationMemo;
|
|
285
296
|
newlyAppliedSteps: RejectionPercentageAdjustmentStep[];
|
|
286
297
|
};
|
|
@@ -554,6 +565,7 @@ export type POHistoryMassive = {
|
|
|
554
565
|
finalizada?: boolean;
|
|
555
566
|
originalOtherCharges: number;
|
|
556
567
|
originalDiscount: number;
|
|
568
|
+
originalLayers?: RejectionPercentageLayers;
|
|
557
569
|
revertida?: boolean;
|
|
558
570
|
/** memo del listado, para actualizar rejectionPercentage sin volver a consultar la OC */
|
|
559
571
|
memo?: string | object | null;
|
|
@@ -572,6 +584,7 @@ export type BitacoraPOMassive = {
|
|
|
572
584
|
fechaCreacion: string;
|
|
573
585
|
observations: string;
|
|
574
586
|
replace: boolean;
|
|
587
|
+
successive?: boolean;
|
|
575
588
|
desprocesar?: boolean;
|
|
576
589
|
lbsBuenas?: number;
|
|
577
590
|
lbsMalas?: number;
|
|
@@ -640,6 +653,10 @@ export type CalculatePurchaseOrderFinancialsInput = {
|
|
|
640
653
|
details?: PurchaseOrderFinancialDetail[] | null;
|
|
641
654
|
/** % de rechazo de origen, o el % final ya guardado en el memo */
|
|
642
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;
|
|
643
660
|
/** memo de la OC, para recuperar el % de origen y no apilar dos veces las reglas */
|
|
644
661
|
memo?: string | object;
|
|
645
662
|
/** reglas activas; si no se pasan, el % se usa tal cual */
|
|
@@ -649,8 +666,10 @@ export type CalculatePurchaseOrderFinancialsInput = {
|
|
|
649
666
|
export type CalculatePurchaseOrderFinancialsResult = {
|
|
650
667
|
subtotal: number;
|
|
651
668
|
discount: number;
|
|
652
|
-
/** % de rechazo con el que se calculó el descuento */
|
|
669
|
+
/** % de rechazo efectivo con el que se calculó el descuento */
|
|
653
670
|
rejectionPercentage: number;
|
|
671
|
+
/** capas de usuario (antes de reglas), para guardar en el memo */
|
|
672
|
+
rejectionLayers: RejectionPercentageLayers;
|
|
654
673
|
/** trazabilidad de las reglas aplicadas, para guardar en el memo */
|
|
655
674
|
rejectionCalculations?: RejectionCalculationMemo;
|
|
656
675
|
};
|
|
@@ -918,6 +937,7 @@ export type JsonMemoType = {
|
|
|
918
937
|
}>;
|
|
919
938
|
confirmed?: boolean;
|
|
920
939
|
rejectionPercentage?: number;
|
|
940
|
+
rejectionLayers?: RejectionPercentageLayers;
|
|
921
941
|
costCalculations?: CostCalculationMemo[];
|
|
922
942
|
rejectionCalculations?: RejectionCalculationMemo;
|
|
923
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
|
}
|