Hola,
Este error aparece cuando en la configuración del módulo de productos/servicios, el parámetro "Reglas para precios a clientes" tiene el valor "Precio diferente para cada cliente".
Cuando se inserta un producto en los pedidos de venta aparece el mensaje de error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
Creo que el error está en la consulta SQL ya que falta indicar por qué campo ordenar en el ORDER BY
Log:
2015-09-21 21:06:58 ERR DoliDBMysql::query SQL Error query: SELECT t.rowid, t.entity, t.datec, t.tms, t.fk_product, t.fk_soc, t.price, t.price_ttc, t.price_min, t.price_min_ttc, t.price_base_type, t.tva_tx, t.recuperableonly, t.localtax1_tx, t.localtax2_tx, t.fk_user, t.import_key, soc.nom as socname, prod.ref as prodref FROM llx_product_customer_price as t ,llx_product as prod ,llx_societe as soc WHERE soc.rowid=t.fk_soc AND prod.rowid=t.fk_product AND prod.entity IN (1) AND t.fk_product = 12 AND t.fk_soc = 133 ORDER BY
2015-09-21 21:06:58 ERR DoliDBMysql::query SQL Error message: DB_ERROR_SYNTAX You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
2015-09-21 21:06:58 WARNING calcul_price_total Warning: function is called with parameter seller that is missing
3.8 Error en pedido de venta al registrar producto
3.8 Error en pedido de venta al registrar producto
- Adjuntos
-
- Capture2.PNG (12.53 KiB) Visto 12033 veces
-
- Capture.PNG (109.63 KiB) Visto 12033 veces
