Atualizando companies_save.php
This commit is contained in:
parent
25fac2abfb
commit
e8a274ebdb
1 changed files with 7 additions and 7 deletions
14
vendor/model/ProductsCompanies.class.php
vendored
14
vendor/model/ProductsCompanies.class.php
vendored
|
|
@ -122,19 +122,19 @@ class ProductsCompanies
|
|||
/** Consulta SQL */
|
||||
$this->sql = 'SELECT cp.maturity,
|
||||
cp.readjustment,
|
||||
GROUP_CONCAT(cp.product_company_id ORDER BY cp.product_company_id SEPARATOR ', ') AS product_company_ids,
|
||||
GROUP_CONCAT(cp.product_id ORDER BY cp.product_company_id SEPARATOR ', ') AS product_ids,
|
||||
GROUP_CONCAT(cp.description ORDER BY cp.product_company_id SEPARATOR ', ') AS descriptions,
|
||||
GROUP_CONCAT(p.description ORDER BY cp.product_company_id SEPARATOR ', ') AS products,
|
||||
GROUP_CONCAT(p.reference ORDER BY cp.product_company_id SEPARATOR ', ') AS references,
|
||||
GROUP_CONCAT(cp.product_value ORDER BY cp.product_company_id SEPARATOR ', ') AS product_values
|
||||
GROUP_CONCAT(cp.product_company_id ORDER BY cp.product_company_id SEPARATOR \', \') AS product_company_ids,
|
||||
GROUP_CONCAT(cp.product_id ORDER BY cp.product_company_id SEPARATOR \', \') AS product_ids,
|
||||
GROUP_CONCAT(cp.description ORDER BY cp.product_company_id SEPARATOR \', \') AS descriptions,
|
||||
GROUP_CONCAT(p.description ORDER BY cp.product_company_id SEPARATOR \', \') AS products,
|
||||
GROUP_CONCAT(p.reference ORDER BY cp.product_company_id SEPARATOR \', \') AS references,
|
||||
GROUP_CONCAT(cp.product_value ORDER BY cp.product_company_id SEPARATOR \', \') AS product_values
|
||||
FROM
|
||||
products_companies cp
|
||||
LEFT JOIN
|
||||
products p ON cp.product_id = p.product_id
|
||||
WHERE
|
||||
cp.company_id = :company_id
|
||||
AND cp.status = 'A'
|
||||
AND cp.status = \'A\'
|
||||
GROUP BY
|
||||
cp.maturity, cp.readjustment;';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue