Problème modules de caisse

Bonjour à tous,

Je viens d’installer Dolibarr 2.90 c’est vraiment très bien.

J’ai malgré tout un problème avec le module caisse.

Une fois que je valide la facture, ça revient à l’écran précédant.

Dans la barre d’adresse je remarque un message d’erreur : http://www.xxx.be/htdocs/cashdesk/affIndex.php?facid=&mesg=ErrorFailedToCreateInvoice

quelqu’un aurais déjà t’il eu ce problème et une solution existe t’elle ?

J’ai regardé sur tout le forum en vain.

Voici ce que dit le fichier log :

[code]
2010-08-11 20:42:53 INFO 81.244.123.13 Administrateur validation_verif Facture::Create sql=INSERT INTO llx_facture ( facnumber, entity, type, fk_soc, datec, amount, remise_absolue, remise_percent, datef, note, note_public, ref_client, fk_facture_source, fk_user_author, fk_projet, fk_cond_reglement, fk_mode_reglement, date_lim_reglement, model_pdf) VALUES (’(PROV)’, 1, ‹ 0 ›, ‹ 1 ›, 20100811204253, ‹ 0 ›,NULL,NULL, ‹ 20100811204253 ›,'Cash
Received : 050 EUR
Rendu : EUR

--------------------------------------’,null,null,null,‹ 1 ›,null,0,4, ‹ 20100811204253 ›, ‹  ›)
2010-08-11 20:42:53 INFO 81.244.123.13 Administrateur validation_verif Facture::create sql=UPDATE llx_facture SET facnumber=’(PROV18)’ WHERE rowid=18
2010-08-11 20:42:53 DEBUG 81.244.123.13 Administrateur validation_verif FactureLigne::Insert rang=0
2010-08-11 20:42:53 INFO 81.244.123.13 Administrateur validation_verif FactureLigne::insert sql=INSERT INTO llx_facturedet (fk_facture, description, qty, tva_tx, localtax1_tx, localtax2_tx, fk_product, product_type, remise_percent, subprice, price, remise, fk_remise_except, date_start, date_end, fk_code_ventilation, fk_export_compta, rang, info_bits, total_ht, total_tva, total_localtax1, total_localtax2, total_ttc) VALUES (18, ‹ Maxxis 145-70-13 ›, 1, 21, , ,‹ 1 ›, 0, 0, 41.32, 41.32, 0,null,null,null, 0, 0, 0, ‹ 0 ›, 41.32, 8.68, 0, 0, 50)
2010-08-11 20:42:53 ERROR 81.244.123.13 Administrateur validation_verif FactureLigne::insert 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 ’ ,‹ 1 ›, 0, 0, 41.32, 41.32, 0,null,null,null, 0, 0, 0, ‹ 0 ›, 41.32, 8.68, 0, 0, 50’ at line 1
2010-08-11 20:42:53 ERROR 81.244.123.13 Administrateur validation_verif Facture::create error
2010-08-11 20:42:53 DEBUG 81.244.123.13 Administrateur validation_verif ROLLBACK Transaction
2010-08-11 20:42:53 INFO 81.244.123.13 nologin affIndex Start session name=DOLSESSID_6d5d94a728345dc2e76018550ca6364a Session id()=7e61fa6888143c4c8073e3c262ca0871, _SESSION[‹ dol_login ›]=Administrateur, 1440[/code]

Merci d’avance.

Peux tu ajouter a la ligne 3022 du fichier htdocs/compta/facture/class/facture.class.php

if (empty($this->localtax1_tx)) $this->localtax1_tx=0;
if (empty($this->localtax2_tx)) $this->localtax2_tx=0;

juste après

if (empty($this->tva_tx)) $this->tva_tx=0;

et dire si cela résoud ?