fixed sommario and added queue mago
This commit is contained in:
@@ -290,7 +290,7 @@ class MagoSalesStats
|
||||
$parts = [];
|
||||
foreach ($words as $w) {
|
||||
$like = "'%" . str_replace(["\\", "'", '%', '_'], ["\\\\", "''", '\\%', '\\_'], $w) . "%'";
|
||||
foreach (['external_ord_no', 'our_reference', 'your_reference', 'notes'] as $col) {
|
||||
foreach (['internal_ord_no', 'external_ord_no', 'our_reference', 'your_reference', 'notes'] as $col) {
|
||||
$parts[] = "COALESCE($a.$col, '') LIKE $like"; // COALESCE: un campo NULL non deve escludere l'ordine
|
||||
}
|
||||
$parts[] = "EXISTS (SELECT 1 FROM mago_sale_ord_detail ex
|
||||
|
||||
Reference in New Issue
Block a user