productionScheduler + ecmactions field name

This commit is contained in:
Michał Zieliński
2025-09-15 20:00:00 +02:00
parent 91e6a206cb
commit 980180adb1
7 changed files with 13 additions and 7 deletions

View File

@@ -67,7 +67,8 @@ SELECT s.id as orderId, s.document_no, s.status, s.parent_name, s.parent_id, s.s
ps_main.ecmproduct_id as main_product_id,
p_main.code as main_product_code,
a.id AS action_id,
a.indeks AS action_index
a.indeks AS action_index,
a.category AS action_category
FROM productionScheduler AS ps
LEFT JOIN ecmsaleitems AS si
ON ps.ecmsaleitem_id = si.id
@@ -145,6 +146,7 @@ WHERE ps.deleted = 0 ";
$row['mainProductFullCode'] = $r['main_product_code'];
$row['action_id'] = $r['action_id'];
$row['action_index'] = $r['action_index'];
$row['action_category'] = $app_list_strings['ecmactions_category_dom'][$r['action_category']];
$data[] = $row;
}
return $data;