-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V13 Create new customer discount #16165
Comments
Hello, Could you explain on which page/url you have the error ? |
Hi Ksar This issue following discussion there >> https://www.dolibarr.fr/forum/t/version-13-remise-client-erreur/35538 You get the issue when you want to create fixed discount (création d'une remise fixe client / fournisseur) issue is present since version 13. Thanks in advance. |
Hi @Likeandfeel , I can not reproduce your situation but I think thid may occure when no vat (tva) is defined. Could you try to add this code:
at line 225 of htdocs/core/class/discount.class.php And tell me if it helps. |
HI @daraelmin Just tried it and >> Works ! Do you think its possible to push this fix on version 13.0.1 ? Best regards |
Hi @Likeandfeel, Thanks for your response. I have pushed the fix will see when it will be implemented but as it is blocking it should be pushed for next version. Please let the issue opened till the fixed is merged into the core. Cheers |
Thanks for reproting and fixing this. This error was driving me insane. |
@jhaand with pleasure. |
Hi
Since v13 and v13.0.1, when you want add fixed discount to a custome, you get this error message :
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ’ ‹ ›, 14.94, 0, 14.94, null, null)’ at line 1 - sql=INSERT INTO llx_societe_remise_except (entity, datec, fk_soc, discount_type, fk_user, description, amount_ht, amount_tva, amount_ttc, tva_tx, vat_src_code, multicurrency_amount_ht, multicurrency_amount_tva, multicurrency_amount_ttc, fk_facture_source, fk_invoice_supplier_source) VALUES (1, ‹ 2021-02-02 15:24:36 ›, 27180, 0, 1, ‹ Remise revendeur ›, 14.94, 0, 14.94, , ‹ ›, 14.94, 0, 14.94, null, null)
I dont have Multicurrency setup, nd this error came from a company setup as GB but using EUR as currency, on configuration. I get same issue with FR. I tried on Mysql insert manually value and get this sql code
INSERT INTO llx_societe_remise_except (rowid, entity, fk_soc, discount_type, datec, amount_ht, amount_tva, amount_ttc, tva_tx, fk_user, fk_facture_line, fk_facture, fk_facture_source, description, multicurrency_amount_ht, multicurrency_amount_tva, multicurrency_amount_ttc, fk_invoice_supplier_line, fk_invoice_supplier, fk_invoice_supplier_source, vat_src_code) VALUES ('49', '1', '27180', '0', '2021-02-02 14:43:09', '14.94', '0.00000000', '14.94', '0.000', '1', NULL, NULL, NULL, 'Remise revendeur', '0.00000000', '0.00000000', '0.00000000', NULL, NULL, NULL, '');
Any idea regarding this issue ?
Thanks in advance
Best regards
The text was updated successfully, but these errors were encountered: