GX-Bug #63524 » orderTotalCustomerFix.patch
src/admin/orders.php (date 1565019355978) | ||
---|---|---|
309 | 309 |
$query = xtc_db_query('SELECT `value` |
310 | 310 |
FROM `orders_total` |
311 | 311 |
LEFT JOIN `orders` USING (`orders_id`) |
312 |
WHERE `sort_order` = "99"
|
|
312 |
WHERE `class` = "ot_total"
|
|
313 | 313 |
AND `' . $fieldName . '` = "' . xtc_db_input($customerId) . '"'); |
314 | 314 |
$sumOrderTotal = 0; |
315 | 315 |
while($result = xtc_db_fetch_array($query)) |