multicloud_rule_manager 1.1.85 → 1.1.86

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.
@@ -105,10 +105,10 @@ export default {
105
105
  (p) => p.product_id === rootGuid
106
106
  );
107
107
 
108
- const productStructureRootId = productStructureRoot.guid;
108
+ const productStructureRootId = productStructureRoot.guid;
109
109
 
110
- console.log('rootGuid: '+rootGuid);
111
- console.log('productStructureRootId: '+productStructureRootId);
110
+ console.log('rootGuid: ' + rootGuid);
111
+ console.log('productStructureRootId: ' + productStructureRootId);
112
112
  console.log(`🌳 Totale elementi structure: ${structure.length}`);
113
113
 
114
114
  // =========================
@@ -207,17 +207,31 @@ export default {
207
207
 
208
208
  if (children.length === 0) {
209
209
  rows1.push({
210
- product: product.name,
211
- category: cat.name,
212
- child: "",
210
+ "Product Name": product.name,
211
+ "Product Eligible": productStructureRoot.eligible,
212
+ "Category Name": cat.name,
213
+ "Category Visible": cat.visible,
214
+ "Category Visible Cart": cat.visible_cart,
215
+ "Child Product Name": "",
213
216
  });
214
217
  }
215
218
 
216
219
  for (const child of children) {
217
220
  rows1.push({
218
- product: product.name,
219
- category: cat.name,
220
- child: child.name,
221
+ "Product Name": product.name,
222
+ "Product Eligible": productStructureRoot.eligible,
223
+ "Category Name": cat.name,
224
+ "Category Visible": cat.visible,
225
+ "Category Visible Cart": cat.visible_cart,
226
+ "Category Min Qty": cat.min_qty,
227
+ "Category Dft Qty": cat.default_qty,
228
+ "Category Max Qty": cat.max_qty,
229
+ "Child Product Name": child.name,
230
+ "Category Visible": child.visible,
231
+ "Category Visible Cart": child.visible_cart,
232
+ "Category Min Qty": child.min_qty,
233
+ "Category Dft Qty": child.default_qty,
234
+ "Category Max Qty": child.max_qty
221
235
  });
222
236
 
223
237
  if (!child.product_id) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.1.85",
3
+ "version": "1.1.86",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",