From 034d5105a55223c1bd95abc38f81028ddd877bfc Mon Sep 17 00:00:00 2001 From: jmarcellanlabelgrup <60390325+jmarcellanlabelgrup@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:48:40 +0200 Subject: [PATCH] Update MySQL.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cambios para la ordenaciĆ³n --- src/Adapter/MySQL.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Adapter/MySQL.php b/src/Adapter/MySQL.php index 870d2f32c..b2b2d1a41 100644 --- a/src/Adapter/MySQL.php +++ b/src/Adapter/MySQL.php @@ -299,12 +299,12 @@ protected function getFieldMapping() 'dependencyField' => 'nleft', ], 'sales' => [ - 'tableName' => 'product_sale', + 'tableName' => 'product', 'tableAlias' => 'psales', - 'fieldName' => 'quantity', + 'fieldName' => 'cantidad_vendida', 'fieldAlias' => 'sales', 'joinCondition' => '(psales.id_product = p.id_product)', - 'joinType' => self::LEFT_JOIN, + 'joinType' => self::INNER_JOIN, ], 'reduction' => [ 'tableName' => 'specific_price',