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',