@axelor/aos-mobile-manufacturing 8.2.5 → 8.2.7

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.
Files changed (112) hide show
  1. package/lib/api/index.js +1 -1
  2. package/lib/api/machine-api.d.ts +2 -1
  3. package/lib/api/machine-api.js +4 -2
  4. package/lib/api/machine-api.js.map +1 -1
  5. package/lib/api/manufacturing-order-api.d.ts +4 -2
  6. package/lib/api/manufacturing-order-api.js +10 -14
  7. package/lib/api/manufacturing-order-api.js.map +1 -1
  8. package/lib/api/operation-order-api.d.ts +6 -2
  9. package/lib/api/operation-order-api.js +7 -3
  10. package/lib/api/operation-order-api.js.map +1 -1
  11. package/lib/api/prod-product-api.js +1 -1
  12. package/lib/api/product-indicators-api.d.ts +2 -1
  13. package/lib/api/product-indicators-api.js +4 -2
  14. package/lib/api/product-indicators-api.js.map +1 -1
  15. package/lib/api/production-file-api.js +1 -1
  16. package/lib/api/waste-product-api.js +1 -1
  17. package/lib/api/work-center-api.js +1 -1
  18. package/lib/components/atoms/ManufacturingQtyIndicatorCard/ManufacturingQtyIndicatorCard.js +1 -1
  19. package/lib/components/atoms/index.js +1 -1
  20. package/lib/components/index.js +1 -1
  21. package/lib/components/molecules/ManufacturingOrderDatesCard/ManufacturingOrderDatesCard.js +1 -1
  22. package/lib/components/molecules/ManufacturingQtyIndicatorActionCard/ManufacturingQtyIndicatorActionCard.js +1 -1
  23. package/lib/components/molecules/OperationOrderDatesCard/OperationOrderDatesCard.js +1 -1
  24. package/lib/components/molecules/index.js +1 -1
  25. package/lib/components/organisms/ConsumedProductCard/ConsumedProductCard.js +1 -1
  26. package/lib/components/organisms/ConsumedProductGlobalCard/ConsumedProductGlobalCard.js +1 -1
  27. package/lib/components/organisms/LinkedManufacturingOrderCard/LinkedManufacturingOrderCard.js +1 -1
  28. package/lib/components/organisms/ManufacturingOrderButtons/ManufacturingOrderButtons.js +1 -1
  29. package/lib/components/organisms/ManufacturingOrderCard/ManufacturingOrderCard.js +1 -1
  30. package/lib/components/organisms/ManufacturingOrderHalfLabelCardList/ManufacturingOrderHalfLabelCardList.js +1 -1
  31. package/lib/components/organisms/ManufacturingOrderHeader/ManufacturingOrderHeader.js +1 -1
  32. package/lib/components/organisms/ManufacturingOrderNotesCardList/ManufacturingOrderNotesCardList.js +1 -1
  33. package/lib/components/organisms/ManufacturingOrderProductionOrderSetView/ManufacturingOrderProductionOrderSetView.js +4 -2
  34. package/lib/components/organisms/ManufacturingOrderProductionOrderSetView/ManufacturingOrderProductionOrderSetView.js.map +1 -1
  35. package/lib/components/organisms/ManufacturingOrderSaleOrderSetView/ManufacturingOrderSaleOrderSetView.js +1 -1
  36. package/lib/components/organisms/OperationOrderCard/OperationOrderCard.js +1 -1
  37. package/lib/components/organisms/OperationOrderDetailsCard/OperationOrderDetailsCard.js +1 -1
  38. package/lib/components/organisms/OperationOrderHeader/OperationOrderHeader.js +1 -1
  39. package/lib/components/organisms/OperationOrderLabelTextList/OperationOrderLabelTextList.js +1 -1
  40. package/lib/components/organisms/OperationOrderStopwatch/OperationOrderStopwatch.js +1 -1
  41. package/lib/components/organisms/ProdProductFixedItems/ProdProductFixedItems.js +1 -1
  42. package/lib/components/organisms/ProducedProductCard/ProducedProductCard.js +1 -1
  43. package/lib/components/organisms/ProductionFileLargeCard/ProductionFileLargeCard.js +1 -1
  44. package/lib/components/organisms/ProductionFileSmallCard/ProductionFileSmallCard.js +1 -1
  45. package/lib/components/organisms/WasteProductCard/WasteProductCard.js +1 -1
  46. package/lib/components/organisms/index.js +1 -1
  47. package/lib/components/templates/ConsumedProductTrackingNumberSelect/ConsumedProductTrackingNumberSelect.js +1 -1
  48. package/lib/components/templates/MachineSearchBar/MachineSearchBar.js +4 -3
  49. package/lib/components/templates/MachineSearchBar/MachineSearchBar.js.map +1 -1
  50. package/lib/components/templates/WorkCenterSearchBar/WorkCenterSearchBar.js +1 -1
  51. package/lib/components/templates/index.js +1 -1
  52. package/lib/features/asyncFunctions-index.js +1 -1
  53. package/lib/features/index.js +1 -1
  54. package/lib/features/machinesSlice.js +1 -1
  55. package/lib/features/manufacturingOrderSlice.js +1 -1
  56. package/lib/features/operationOrderSlice.js +1 -1
  57. package/lib/features/prodProductSlice.js +1 -1
  58. package/lib/features/productIndicatorsSlice.js +1 -1
  59. package/lib/features/productionFileSlice.js +1 -1
  60. package/lib/features/wasteProductsSlice.js +1 -1
  61. package/lib/features/workCentersSlice.js +1 -1
  62. package/lib/hooks/use-manufacturing-headers.js +1 -1
  63. package/lib/index.js +1 -1
  64. package/lib/models/index.js +1 -1
  65. package/lib/models/objectFields.js +1 -1
  66. package/lib/models/searchFields.js +1 -1
  67. package/lib/models/sortFields.js +1 -1
  68. package/lib/models/typeObjects.js +1 -1
  69. package/lib/screens/manufactoringOrder/ManufacturingOrderDetailsScreen.js +1 -1
  70. package/lib/screens/manufactoringOrder/ManufacturingOrderListProductionOrderScreen.js +4 -2
  71. package/lib/screens/manufactoringOrder/ManufacturingOrderListProductionOrderScreen.js.map +1 -1
  72. package/lib/screens/manufactoringOrder/ManufacturingOrderListSaleOrderScreen.js +1 -1
  73. package/lib/screens/manufactoringOrder/ManufacturingOrderListScreen.js +1 -1
  74. package/lib/screens/manufactoringOrder/ManufacturingOrderOperationListScreen.js +1 -1
  75. package/lib/screens/manufactoringOrder/consumedProduct/ChildrenManufOrderListScreen.js +8 -6
  76. package/lib/screens/manufactoringOrder/consumedProduct/ChildrenManufOrderListScreen.js.map +1 -1
  77. package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductDetailsScreen.js +1 -1
  78. package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductListScreen.js +1 -1
  79. package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductSelectProductScreen.js +1 -1
  80. package/lib/screens/manufactoringOrder/consumedProduct/ConsumedProductSelectTrackingScreen.js +1 -1
  81. package/lib/screens/manufactoringOrder/consumedProduct/index.js +1 -1
  82. package/lib/screens/manufactoringOrder/index.js +1 -1
  83. package/lib/screens/manufactoringOrder/producedProduct/ProducedProductDetailsScreen.js +1 -1
  84. package/lib/screens/manufactoringOrder/producedProduct/ProducedProductListScreen.js +1 -1
  85. package/lib/screens/manufactoringOrder/producedProduct/ProducedProductSelectProductScreen.js +1 -1
  86. package/lib/screens/manufactoringOrder/producedProduct/ProducedProductSelectTrackingScreen.js +1 -1
  87. package/lib/screens/manufactoringOrder/producedProduct/index.js +1 -1
  88. package/lib/screens/manufactoringOrder/wasteProduct/WasteProductDetailsScreen.js +1 -1
  89. package/lib/screens/manufactoringOrder/wasteProduct/WasteProductListScreen.js +1 -1
  90. package/lib/screens/manufactoringOrder/wasteProduct/WasteProductSelectProductScreen.js +1 -1
  91. package/lib/screens/manufactoringOrder/wasteProduct/index.js +1 -1
  92. package/lib/screens/operationOrder/OperationOrderDetailsScreen.js +1 -1
  93. package/lib/screens/operationOrder/OperationOrderListScreen.js +4 -2
  94. package/lib/screens/operationOrder/OperationOrderListScreen.js.map +1 -1
  95. package/lib/screens/operationOrder/OperationOrderPlanningScreen.js +4 -3
  96. package/lib/screens/operationOrder/OperationOrderPlanningScreen.js.map +1 -1
  97. package/lib/screens/operationOrder/ProductionFileScreen.js +1 -1
  98. package/lib/screens/operationOrder/index.js +1 -1
  99. package/lib/screens/stock/index.js +1 -1
  100. package/lib/screens/stock/products/ProductManufacturingIndicatorDetails.js +4 -2
  101. package/lib/screens/stock/products/ProductManufacturingIndicatorDetails.js.map +1 -1
  102. package/lib/screens/stock/products/ProductStockDetailsScreen.js +1 -1
  103. package/lib/screens/stock/products/index.js +1 -1
  104. package/lib/types/index.js +1 -1
  105. package/lib/types/manufacturing-order.js +1 -1
  106. package/lib/types/operation-order.js +1 -1
  107. package/lib/types/product-indicator.js +1 -1
  108. package/lib/utils/dates.js +1 -1
  109. package/lib/utils/displayers.js +1 -1
  110. package/lib/utils/formaters.js +1 -1
  111. package/lib/utils/index.js +1 -1
  112. package/package.json +4 -4
package/lib/api/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,4 +1,5 @@
1
- export function searchMachineFilter({ searchValue, page }: {
1
+ export function searchMachineFilter({ searchValue, companyId, page, }: {
2
2
  searchValue?: any;
3
+ companyId: any;
3
4
  page?: number;
4
5
  }): Promise<any>;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -16,9 +16,11 @@
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
18
  import { createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
19
- export async function searchMachineFilter({ searchValue = null, page = 0 }) {
19
+ export async function searchMachineFilter({ searchValue = null, companyId, page = 0, }) {
20
20
  return createStandardSearch({
21
21
  model: 'com.axelor.apps.production.db.Machine',
22
+ companyId,
23
+ companyFieldName: 'stockLocation.company',
22
24
  criteria: [getSearchCriterias('manufacturing_machine', searchValue)],
23
25
  fieldKey: 'manufacturing_machine',
24
26
  page: page,
@@ -1 +1 @@
1
- {"version":3,"file":"machine-api.js","sourceRoot":"","sources":["../../src/api/machine-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,EAAC,WAAW,GAAG,IAAI,EAAE,IAAI,GAAG,CAAC,EAAC;IACtE,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,uCAAuC;QAC9C,QAAQ,EAAE,CAAC,kBAAkB,CAAC,uBAAuB,EAAE,WAAW,CAAC,CAAC;QACpE,QAAQ,EAAE,uBAAuB;QACjC,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"machine-api.js","sourceRoot":"","sources":["../../src/api/machine-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,EACxC,WAAW,GAAG,IAAI,EAClB,SAAS,EACT,IAAI,GAAG,CAAC,GACT;IACC,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,uCAAuC;QAC9C,SAAS;QACT,gBAAgB,EAAE,uBAAuB;QACzC,QAAQ,EAAE,CAAC,kBAAkB,CAAC,uBAAuB,EAAE,WAAW,CAAC,CAAC;QACpE,QAAQ,EAAE,uBAAuB;QACjC,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC"}
@@ -10,12 +10,14 @@ export function searchManufacturingOrderFilter({ searchValue, companyId, manageW
10
10
  export function fetchManufacturingOrder({ manufOrderId }: {
11
11
  manufOrderId: any;
12
12
  }): Promise<any>;
13
- export function fetchManufacturingOrderOfProductionOrder({ productionOrderList, page, }: {
13
+ export function fetchManufacturingOrderOfProductionOrder({ productionOrderList, companyId, page, }: {
14
14
  productionOrderList: any;
15
+ companyId: any;
15
16
  page?: number;
16
17
  }): Promise<any>;
17
- export function fetchChildrenManufacturingOrders({ parentManufOrderId, page, }: {
18
+ export function fetchChildrenManufacturingOrders({ parentManufOrderId, companyId, page, }: {
18
19
  parentManufOrderId: any;
20
+ companyId: any;
19
21
  page?: number;
20
22
  }): Promise<any>;
21
23
  export function updateManufacturingOrderStatus({ manufOrderId, manufOrderVersion, targetStatus, }: {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -16,7 +16,7 @@
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
18
  import { createStandardFetch, createStandardSearch, getActionApi, getSearchCriterias, getTypes, } from '@axelor/aos-mobile-core';
19
- const createManufOrderCriteria = (searchValue, companyId, manageWorkshop, workshopId, statusList, productId) => {
19
+ const createManufOrderCriteria = (searchValue, manageWorkshop, workshopId, statusList, productId) => {
20
20
  const ManufOrder = getTypes().ManufOrder;
21
21
  let criterias = [
22
22
  {
@@ -51,13 +51,6 @@ const createManufOrderCriteria = (searchValue, companyId, manageWorkshop, worksh
51
51
  },
52
52
  getSearchCriterias('manufacturing_manufacturingOrder', searchValue),
53
53
  ];
54
- if (companyId != null) {
55
- criterias.push({
56
- fieldName: 'company.id',
57
- operator: '=',
58
- value: companyId,
59
- });
60
- }
61
54
  if (workshopId != null && manageWorkshop) {
62
55
  criterias.push({
63
56
  operator: 'or',
@@ -97,7 +90,8 @@ const createManufOrderCriteria = (searchValue, companyId, manageWorkshop, worksh
97
90
  export async function searchManufacturingOrderFilter({ searchValue = null, companyId = null, manageWorkshop, workshopId = null, statusList, productId, page = 0, }) {
98
91
  return createStandardSearch({
99
92
  model: 'com.axelor.apps.production.db.ManufOrder',
100
- criteria: createManufOrderCriteria(searchValue, companyId, manageWorkshop, workshopId, statusList, productId),
93
+ companyId,
94
+ criteria: createManufOrderCriteria(searchValue, manageWorkshop, workshopId, statusList, productId),
101
95
  fieldKey: 'manufacturing_manufacturingOrder',
102
96
  sortKey: 'manufacturing_manufacturingOrder',
103
97
  page,
@@ -113,7 +107,7 @@ export async function fetchManufacturingOrder({ manufOrderId }) {
113
107
  provider: 'model',
114
108
  });
115
109
  }
116
- export async function fetchManufacturingOrderOfProductionOrder({ productionOrderList, page = 0, }) {
110
+ export async function fetchManufacturingOrderOfProductionOrder({ productionOrderList, companyId, page = 0, }) {
117
111
  if (productionOrderList == null) {
118
112
  return null;
119
113
  }
@@ -136,14 +130,15 @@ export async function fetchManufacturingOrderOfProductionOrder({ productionOrder
136
130
  const manufOrderList = result?.flatMap(productionOrder => productionOrder?.manufOrderSet);
137
131
  return manufOrderList?.map(manufOrder => manufOrder.id);
138
132
  })
139
- .then(manufOrderIds => fetchManufacturingOrderByIds({ manufOrderIds, page }));
133
+ .then(manufOrderIds => fetchManufacturingOrderByIds({ manufOrderIds, companyId, page }));
140
134
  }
141
- async function fetchManufacturingOrderByIds({ manufOrderIds, page = 0 }) {
135
+ async function fetchManufacturingOrderByIds({ manufOrderIds, companyId, page = 0, }) {
142
136
  if (manufOrderIds == null) {
143
137
  return null;
144
138
  }
145
139
  return createStandardSearch({
146
140
  model: 'com.axelor.apps.production.db.ManufOrder',
141
+ companyId,
147
142
  criteria: [
148
143
  {
149
144
  fieldName: 'id',
@@ -157,9 +152,10 @@ async function fetchManufacturingOrderByIds({ manufOrderIds, page = 0 }) {
157
152
  provider: 'model',
158
153
  });
159
154
  }
160
- export async function fetchChildrenManufacturingOrders({ parentManufOrderId, page = 0, }) {
155
+ export async function fetchChildrenManufacturingOrders({ parentManufOrderId, companyId, page = 0, }) {
161
156
  return createStandardSearch({
162
157
  model: 'com.axelor.apps.production.db.ManufOrder',
158
+ companyId,
163
159
  criteria: [
164
160
  {
165
161
  fieldName: 'parentMO.id',
@@ -1 +1 @@
1
- {"version":3,"file":"manufacturing-order-api.js","sourceRoot":"","sources":["../../src/api/manufacturing-order-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,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Aa,IAAI,IAAI,EAAE;QACzB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,0CAA0C;QACjD,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,aAAa;aACrB;SACF;QACD,QAAQ,EAAE,uCAAuC;QACjD,OAAO,EAAE,kCAAkC;QAC3C,IAAI;QACJ,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAAC,EACrD,kBAAkB,EAClB,IAAI,GAAG,CAAC,GACT;IACC,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,0CAA0C;QACjD,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,aAAa;gBACxB,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,kBAAkB;aAC1B;SACF;QACD,QAAQ,EAAE,kCAAkC;QAC5C,OAAO,EAAE,kCAAkC;QAC3C,IAAI;QACJ,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,EACnD,YAAY,EACZ,iBAAiB,EACjB,YAAY,GACb;IACC,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,sBAAsB,YAAY,EAAE;QACzC,MAAM,EAAE,KAAK;QACb,IAAI,EAAE;YACJ,OAAO,EAAE,iBAAiB;YAC1B,MAAM,EAAE,YAAY;SACrB;QACD,WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAE;YACR,EAAE,EAAE,YAAY;YAChB,SAAS,EAAE,0CAA0C;YACrD,MAAM,EAAE;gBACN,MAAM,EAAE,cAAc;aACvB;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"manufacturing-order-api.js","sourceRoot":"","sources":["../../src/api/manufacturing-order-api.js"],"names":[],"mappings":"A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C;KACb;IAED,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,0CAA0C;QACjD,SAAS;QACT,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,aAAa;aACrB;SACF;QACD,QAAQ,EAAE,uCAAuC;QACjD,OAAO,EAAE,kCAAkC;QAC3C,IAAI;QACJ,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAAC,EACrD,kBAAkB,EAClB,SAAS,EACT,IAAI,GAAG,CAAC,GACT;IACC,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,0CAA0C;QACjD,SAAS;QACT,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,aAAa;gBACxB,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,kBAAkB;aAC1B;SACF;QACD,QAAQ,EAAE,kCAAkC;QAC5C,OAAO,EAAE,kCAAkC;QAC3C,IAAI;QACJ,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,EACnD,YAAY,EACZ,iBAAiB,EACjB,YAAY,GACb;IACC,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,sBAAsB,YAAY,EAAE;QACzC,MAAM,EAAE,KAAK;QACb,IAAI,EAAE;YACJ,OAAO,EAAE,iBAAiB;YAC1B,MAAM,EAAE,YAAY;SACrB;QACD,WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAE;YACR,EAAE,EAAE,YAAY;YAChB,SAAS,EAAE,0CAA0C;YACrD,MAAM,EAAE;gBACN,MAAM,EAAE,cAAc;aACvB;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1,12 +1,16 @@
1
- export function searchOperationOrderFilter({ searchValue, manufOrderId, statusList, workCenterId, machineId, page, }: {
1
+ export function searchOperationOrderFilter({ searchValue, manufOrderId, statusList, workCenterId, machineId, companyId, page, }: {
2
2
  searchValue?: any;
3
3
  manufOrderId?: any;
4
4
  statusList: any;
5
5
  workCenterId: any;
6
6
  machineId: any;
7
+ companyId: any;
7
8
  page?: number;
8
9
  }): Promise<any>;
9
- export function getPlannedOperationOrder(date: any): Promise<any>;
10
+ export function getPlannedOperationOrder({ date, companyId }: {
11
+ date: any;
12
+ companyId: any;
13
+ }): Promise<any>;
10
14
  export function fetchOperationOrder({ operationOrderId }: {
11
15
  operationOrderId: any;
12
16
  }): Promise<any>;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -120,9 +120,11 @@ const createOperationOrderPlanningCriteria = date => {
120
120
  },
121
121
  ];
122
122
  };
123
- export async function searchOperationOrderFilter({ searchValue = null, manufOrderId = null, statusList, workCenterId, machineId, page = 0, }) {
123
+ export async function searchOperationOrderFilter({ searchValue = null, manufOrderId = null, statusList, workCenterId, machineId, companyId, page = 0, }) {
124
124
  return createStandardSearch({
125
125
  model: 'com.axelor.apps.production.db.OperationOrder',
126
+ companyId,
127
+ companyFieldName: 'manufOrder.company',
126
128
  criteria: createOperationOrderCriteria(searchValue, manufOrderId, statusList, workCenterId, machineId),
127
129
  fieldKey: 'manufacturing_operationOrder',
128
130
  sortKey: 'manufacturing_operationOrder',
@@ -130,9 +132,11 @@ export async function searchOperationOrderFilter({ searchValue = null, manufOrde
130
132
  provider: 'model',
131
133
  });
132
134
  }
133
- export async function getPlannedOperationOrder(date) {
135
+ export async function getPlannedOperationOrder({ date, companyId }) {
134
136
  return createStandardSearch({
135
137
  model: 'com.axelor.apps.production.db.OperationOrder',
138
+ companyId,
139
+ companyFieldName: 'manufOrder.company',
136
140
  criteria: createOperationOrderPlanningCriteria(date),
137
141
  fieldKey: 'manufacturing_operationOrder',
138
142
  sortKey: 'manufacturing_operationOrderPlanning',
@@ -1 +1 @@
1
- {"version":3,"file":"operation-order-api.js","sourceRoot":"","sources":["../../src/api/operation-order-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,GACT,MAAM,yBAAyB,CAAC;AAEjC,MAAM,4BAA4B,GAAG,CACnC,WAAW,EACX,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,EACT,EAAE;IACF,MAAM,cAAc,GAAG,QAAQ,EAAE,CAAC,cAAc,CAAC;IAEjD,IAAI,SAAS,GAAG;QACd;YACE,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE;gBACR;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,cAAc,EAAE,YAAY,CAAC,OAAO;iBAC5C;gBACD;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,cAAc,EAAE,YAAY,CAAC,UAAU;iBAC/C;gBACD;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,cAAc,EAAE,YAAY,CAAC,OAAO;iBAC5C;gBACD;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,cAAc,EAAE,YAAY,CAAC,QAAQ;iBAC7C;aACF;SACF;QACD,kBAAkB,CAAC,8BAA8B,EAAE,WAAW,CAAC;KAChE,CAAC;IAEF,IAAI,YAAY,IAAI,IAAI,EAAE;QACxB,SAAS,CAAC,IAAI,CAAC;YACb,SAAS,EAAE,eAAe;YAC1B,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,YAAY;S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BAClB,kBAAkB;gBAClB,WAAW;aACZ;YACD,eAAe,EAAE,CAAC,uBAAuB,CAAC;SAC3C;QACD,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,EAC/C,gBAAgB,EAChB,OAAO,EACP,MAAM,GACP;IACC,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,0BAA0B,gBAAgB,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,IAAI,EAAE;YACJ,OAAO;YACP,MAAM;SACP;QACD,WAAW,EAAE,+BAA+B;QAC5C,QAAQ,EAAE;YACR,EAAE,EAAE,gBAAgB;YACpB,SAAS,EAAE,8CAA8C;YACzD,MAAM,EAAE;gBACN,MAAM,EAAE,cAAc;aACvB;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"operation-order-api.js","sourceRoot":"","sources":["../../src/api/operation-order-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,GACT,MAAM,yBAAyB,CAAC;AAEjC,MAAM,4BAA4B,GAAG,CACnC,WAAW,EACX,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,EACT,EAAE;IACF,MAAM,cAAc,GAAG,QAAQ,EAAE,CAAC,cAAc,CAAC;IAEjD,IAAI,SAAS,GAAG;QACd;YACE,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE;gBACR;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,cAAc,EAAE,YAAY,CAAC,OAAO;iBAC5C;gBACD;oBACE,SAAS,EAAE,cAAc;oBACzB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,cAAc,EAAE,YAAY,CAAC,UAAU;iBAC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>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,5 +1,6 @@
1
- export function fetchManufacturingQtyIndicator({ indicatorType, productId, page, }: {
1
+ export function fetchManufacturingQtyIndicator({ indicatorType, productId, companyId, page, }: {
2
2
  indicatorType: any;
3
3
  productId: any;
4
+ companyId: any;
4
5
  page?: number;
5
6
  }): Promise<any>;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -95,9 +95,11 @@ const createManufacturingQtyCriteria = (indicatorType, productId) => {
95
95
  return defaultCriteria.concat(MOCriteria);
96
96
  }
97
97
  };
98
- export async function fetchManufacturingQtyIndicator({ indicatorType, productId, page = 0, }) {
98
+ export async function fetchManufacturingQtyIndicator({ indicatorType, productId, companyId, page = 0, }) {
99
99
  return createStandardSearch({
100
100
  model: 'com.axelor.apps.stock.db.StockMoveLine',
101
+ companyId,
102
+ companyFieldName: 'stockMove.company',
101
103
  criteria: createManufacturingQtyCriteria(indicatorType, productId),
102
104
  fieldKey: 'manufacturing_manufacturingQtyIndicator',
103
105
  page,
@@ -1 +1 @@
1
- {"version":3,"file":"product-indicators-api.js","sourceRoot":"","sources":["../../src/api/product-indicators-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAE,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAE1C,MAAM,8BAA8B,GAAG,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE;IAClE,MAAM,SAAS,GAAG,QAAQ,EAAE,CAAC,SAAS,CAAC;IACvC,MAAM,aA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AAE,YAAY,CAAC,UAAU;4BACnC,UAAU,EAAE,YAAY,CAAC,OAAO;yBACjC;qBACF;oBACD;wBACE,SAAS,EAAE,qCAAqC;wBAChD,QAAQ,EAAE,IAAI;wBACd,KAAK,EAAE;4BACL,cAAc,EAAE,YAAY,CAAC,OAAO;4BACpC,cAAc,EAAE,YAAY,CAAC,UAAU;4BACvC,cAAc,EAAE,YAAY,CAAC,OAAO;yBACrC;qBACF;iBACF;aACF;SACF,CAAC;QAEF,IAAI,aAAa,KAAK,gBAAgB,CAAC,IAAI,CAAC,YAAY,EAAE;YACxD,UAAU,CAAC,IAAI,CAAC;gBACd,SAAS,EAAE,iBAAiB;gBAC5B,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,aAAa,EAAE,eAAe,CAAC,OAAO;aAC9C,CAAC,CAAC;SACJ;QAED,OAAO,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;KAC3C;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,EACnD,aAAa,EACb,SAAS,EACT,IAAI,GAAG,CAAC,GACT;IACC,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,wCAAwC;QAC/C,QAAQ,EAAE,8BAA8B,CAAC,aAAa,EAAE,SAAS,CAAC;QAClE,QAAQ,EAAE,yCAAyC;QACnD,IAAI;QACJ,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"product-indicators-api.js","sourceRoot":"","sources":["../../src/api/product-indicators-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAE,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAE1C,MAAM,8BAA8B,GAAG,CAAC,aAAa,EAAE,SAAS,EAAE,EAAE;IAClE,MAAM,SAAS,GAAG,QAAQ,EAAE,CAAC,SA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AC,OAAO;4BAChC,UAAU,EAAE,YAAY,CAAC,UAAU;4BACnC,UAAU,EAAE,YAAY,CAAC,OAAO;yBACjC;qBACF;oBACD;wBACE,SAAS,EAAE,qCAAqC;wBAChD,QAAQ,EAAE,IAAI;wBACd,KAAK,EAAE;4BACL,cAAc,EAAE,YAAY,CAAC,OAAO;4BACpC,cAAc,EAAE,YAAY,CAAC,UAAU;4BACvC,cAAc,EAAE,YAAY,CAAC,OAAO;yBACrC;qBACF;iBACF;aACF;SACF,CAAC;QAEF,IAAI,aAAa,KAAK,gBAAgB,CAAC,IAAI,CAAC,YAAY,EAAE;YACxD,UAAU,CAAC,IAAI,CAAC;gBACd,SAAS,EAAE,iBAAiB;gBAC5B,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,aAAa,EAAE,eAAe,CAAC,OAAO;aAC9C,CAAC,CAAC;SACJ;QAED,OAAO,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;KAC3C;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,EACnD,aAAa,EACb,SAAS,EACT,SAAS,EACT,IAAI,GAAG,CAAC,GACT;IACC,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,wCAAwC;QAC/C,SAAS;QACT,gBAAgB,EAAE,mBAAmB;QACrC,QAAQ,EAAE,8BAA8B,CAAC,aAAa,EAAE,SAAS,CAAC;QAClE,QAAQ,EAAE,yCAAyC;QACnD,IAAI;QACJ,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -25,13 +25,15 @@ const ManufacturingOrderProductionOrderSetView = ({ onPressViewProduction }) =>
25
25
  const I18n = useTranslator();
26
26
  const dispatch = useDispatch();
27
27
  const { manufOrder, linkedManufOrders } = useSelector(state => state.manufacturingOrder);
28
+ const { user } = useSelector(state => state.user);
28
29
  useEffect(() => {
29
30
  if (manufOrder != null) {
30
31
  dispatch(fetchLinkedManufOrders({
31
32
  productionOrderList: manufOrder.productionOrderSet,
33
+ companyId: user.activeCompany?.id,
32
34
  }));
33
35
  }
34
- }, [dispatch, manufOrder]);
36
+ }, [dispatch, manufOrder, user.activeCompany?.id]);
35
37
  if (!Array.isArray(manufOrder.productionOrderSet) ||
36
38
  manufOrder.productionOrderSet.length === 0 ||
37
39
  !Array.isArray(linkedManufOrders) ||
@@ -1 +1 @@
1
- {"version":3,"file":"ManufacturingOrderProductionOrderSetView.js","sourceRoot":"","sources":["../../../../src/components/organisms/ManufacturingOrderProductionOrderSetView/ManufacturingOrderProductionOrderSetView.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACvC,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,IAAI,EACJ,KAAK,GACN,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,sBAAsB,EAAC,MAAM,2CAA2C,CAAC;AAEjF,MAAM,wCAAwC,GAAG,CAAC,EAAC,qBAAqB,EAAC,EAAE,EAAE;IAC3E,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,UAAU,EAAE,iBAAiB,EAAC,GAAG,WAAW,CACjD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AAC,EAAE,CAAC,CACb,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAC5B,aAAa,CAAC,CAAC,IAAI,CAAC,EACpB,CACH,CAAC,CACJ;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,UAAU,EAAE;QACV,gBAAgB,EAAE,CAAC;KACpB;IACD,iBAAiB,EAAE;QACjB,aAAa,EAAE,KAAK;QACpB,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,MAAM;KACd;IACD,UAAU,EAAE;QACV,iBAAiB,EAAE,EAAE;QACrB,KAAK,EAAE,IAAI;KACZ;CACF,CAAC,CAAC;AAEH,eAAe,wCAAwC,CAAC"}
1
+ {"version":3,"file":"ManufacturingOrderProductionOrderSetView.js","sourceRoot":"","sources":["../../../../src/components/organisms/ManufacturingOrderProductionOrderSetView/ManufacturingOrderProductionOrderSetView.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACvC,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,IAAI,EACJ,KAAK,GACN,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,sBAAsB,EAAC,MAAM,2CAA2C,CAAC;AAEjF,MAAM,wCAAwC,GAAG,CAAC,EAAC,qBAAqB,EAAC,EAAE,EAAE;IAC3E,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAA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B,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACzC,CAAC,KAAK,CACJ,KAAK,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CACzB,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAC1B,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CACb,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAC5B,aAAa,CAAC,CAAC,IAAI,CAAC,EACpB,CACH,CAAC,CACJ;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,UAAU,EAAE;QACV,gBAAgB,EAAE,CAAC;KACpB;IACD,iBAAiB,EAAE;QACjB,aAAa,EAAE,KAAK;QACpB,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,MAAM;KACd;IACD,UAAU,EAAE;QACV,iBAAiB,EAAE,EAAE;QACrB,KAAK,EAAE,IAAI;KACZ;CACF,CAAC,CAAC;AAEH,eAAe,wCAAwC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,