@zauru-sdk/types 6.15.0 → 6.16.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 +12 -0
- package/package.json +2 -2
package/dist/Custom.types.d.ts
CHANGED
|
@@ -631,11 +631,21 @@ export type PurchaseOrderFinancialDetail = {
|
|
|
631
631
|
};
|
|
632
632
|
export type CalculatePurchaseOrderFinancialsInput = {
|
|
633
633
|
details?: PurchaseOrderFinancialDetail[] | null;
|
|
634
|
+
/** % de rechazo de origen, o el % final ya guardado en el memo */
|
|
634
635
|
rejectionPercentage?: number | string | null;
|
|
636
|
+
/** memo de la OC, para recuperar el % de origen y no apilar dos veces las reglas */
|
|
637
|
+
memo?: string | object;
|
|
638
|
+
/** reglas activas; si no se pasan, el % se usa tal cual */
|
|
639
|
+
rules?: Array<RejectionPercentageAdjustmentRule | WebAppRowGraphQL<RejectionPercentageAdjustmentRule>>;
|
|
640
|
+
ctx?: RejectionPercentageAdjustmentContext;
|
|
635
641
|
};
|
|
636
642
|
export type CalculatePurchaseOrderFinancialsResult = {
|
|
637
643
|
subtotal: number;
|
|
638
644
|
discount: number;
|
|
645
|
+
/** % de rechazo con el que se calculó el descuento */
|
|
646
|
+
rejectionPercentage: number;
|
|
647
|
+
/** trazabilidad de las reglas aplicadas, para guardar en el memo */
|
|
648
|
+
rejectionCalculations?: RejectionCalculationMemo;
|
|
639
649
|
};
|
|
640
650
|
export type CostoSemanal = {
|
|
641
651
|
item: number;
|
|
@@ -682,6 +692,8 @@ export type CalculateItemPriceFromWeeklyMatrixResult = PriceAdjustmentResult & {
|
|
|
682
692
|
source: WeeklyCostMatrixSource;
|
|
683
693
|
period: WeeklyCostPeriod;
|
|
684
694
|
specialItemId?: number;
|
|
695
|
+
/** categoría (programa) del proveedor con la que se filtraron las reglas */
|
|
696
|
+
providerCategoryId?: number;
|
|
685
697
|
};
|
|
686
698
|
export type DischargeHistory = {
|
|
687
699
|
creadoPor: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.16.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": "9e840d01a540f2ab49233dda2cb2b0c916ffba0b"
|
|
26
26
|
}
|