@zauru-sdk/types 6.13.0 → 6.15.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.
@@ -56,6 +56,39 @@ export type CostCalculationMemo = {
56
56
  description: string;
57
57
  steps: PriceAdjustmentStep[];
58
58
  };
59
+ export type RejectionPercentageAdjustmentRule = {
60
+ nombre: string;
61
+ prioridad: number;
62
+ activa: boolean;
63
+ operacion: PriceAdjustmentOperation;
64
+ valor: number;
65
+ filtros: PriceAdjustmentFilters;
66
+ fechaEliminacion: string;
67
+ };
68
+ export type RejectionPercentageAdjustmentContext = {
69
+ itemIds: number[];
70
+ tipo?: string;
71
+ providerCategoryId?: number;
72
+ };
73
+ export type RejectionPercentageAdjustmentStep = {
74
+ ruleName: string;
75
+ operation: PriceAdjustmentOperation;
76
+ value: number;
77
+ appliedAmount: number;
78
+ runningTotal: number;
79
+ };
80
+ export type RejectionPercentageAdjustmentResult = {
81
+ basePercentage: number;
82
+ finalPercentage: number;
83
+ description: string;
84
+ steps: RejectionPercentageAdjustmentStep[];
85
+ };
86
+ export type RejectionCalculationMemo = {
87
+ basePercentage: number;
88
+ finalPercentage: number;
89
+ description: string;
90
+ steps: RejectionPercentageAdjustmentStep[];
91
+ };
59
92
  export type ExtendedInsertBookingBody = {
60
93
  movements: Partial<MovementGraphQL>[];
61
94
  };
@@ -579,6 +612,7 @@ export type PurchaseOrderCosto = {
579
612
  memo?: string;
580
613
  payee_id?: number;
581
614
  reference?: string;
615
+ discount?: number;
582
616
  purchase_order_details: {
583
617
  id: number;
584
618
  item_id: number;
@@ -587,6 +621,22 @@ export type PurchaseOrderCosto = {
587
621
  precioBase?: number;
588
622
  }[];
589
623
  };
624
+ export type PurchaseOrderFinancialDetail = {
625
+ booked_quantity?: number | string | null;
626
+ delivered_quantity?: number | string | null;
627
+ booked?: number | string | null;
628
+ delivered?: number | string | null;
629
+ quantity?: number | string | null;
630
+ unit_cost?: number | string | null;
631
+ };
632
+ export type CalculatePurchaseOrderFinancialsInput = {
633
+ details?: PurchaseOrderFinancialDetail[] | null;
634
+ rejectionPercentage?: number | string | null;
635
+ };
636
+ export type CalculatePurchaseOrderFinancialsResult = {
637
+ subtotal: number;
638
+ discount: number;
639
+ };
590
640
  export type CostoSemanal = {
591
641
  item: number;
592
642
  lunMar: number;
@@ -850,6 +900,7 @@ export type JsonMemoType = {
850
900
  confirmed?: boolean;
851
901
  rejectionPercentage?: number;
852
902
  costCalculations?: CostCalculationMemo[];
903
+ rejectionCalculations?: RejectionCalculationMemo;
853
904
  };
854
905
  export type CloseOpenWorkOrderDetailInput = {
855
906
  id: number | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/types",
3
- "version": "6.13.0",
3
+ "version": "6.15.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": "9d36380b88d7e251132cf68af896afecab65569f"
25
+ "gitHead": "ab1ff7197a4688c0e887942b4e7a1f6b729a510e"
26
26
  }