Alors c'est plutôt cela : ... 2008-07-30 10:36:37 DEBUG 88.191.77.97 ??? Facture::Addline facid=236,desc=Forfait 12 mois,pu_ht=5,9,qty=12,txtva=19,6,fk_product=1,remise_percent=0,date_start=1216720800,d ate_end=1248942997,ventil=0,info_bits=0,fk_remise_except=,price_base_type=HT,pu_ttc=0 2008-07-30 10:36:37 INFO 88.191.77.97 ??? Facture::brouillon 2008-07-30 10:36:37 DEBUG 88.191.77.97 ??? BEGIN Transaction 2008-07-30 10:36:37 INFO 88.191.77.97 ??? Product::fetch id=1 ref= 2008-07-30 10:36:37 INFO 88.191.77.97 ??? Product::fetch sql=SELECT rowid, ref, label, description, note, price, price_ttc, price_base_type, tva_tx, envente, nbvente, fk_p roduct_type, duration, seuil_stock_alerte,canvas, stock_commande, stock_loc, weight, weight_units, volume, volume_units, barcode, fk_barcode_type FROM llx_product WHERE rowid = '1' 2008-07-30 10:36:37 DEBUG 88.191.77.97 ??? FactureLigne::Insert rang=-1 2008-07-30 10:36:37 INFO 88.191.77.97 ??? FactureLigne::insert sql=INSERT INTO llx_facturedet (fk_facture, description, qty, tva_taux, fk_product, product_type, remise_per cent, subprice, price, remise, fk_remise_except, date_start, date_end, fk_code_ventilation, fk_export_compta, rang, info_bits, total_ht, total_tva, total_ttc) VALUES (236, 'For fait 12 mois', 12, 19.6,'1', 1, 0, 5.9, 5.9, 0,null,'1216720800','1248942997', 0, 0, 1, '0', 70.8, 13.88, 84.68) 2008-07-30 10:36:37 INFO 88.191.77.97 ??? Interfaces::run_triggers Triggers for file 'interface_modAgenda_ActionsAuto.class.php' need module to be enabled ...
Le 29 juillet 2008 23:59, Eldy <[EMAIL PROTECTED]> a écrit : > Kaoul a écrit : >> >> Merci de ta réponse. >> Au milieu de d'autre lignes qui semblent ok j'ai ceci : >> >> 2008-07-29 15:07:20 DEBUG 88.191.77.97 ??? Facture::Addline >> facid=233,desc=Forfait 12 mois,pu_ht=5,9,qty=12,txtva=19,6, >> >> fk_product=1,remise_percent=0,date_start=1216720800,date_end=1248872840,ventil=0,info_bits=0,fk_remise_except=,price_base_type=HT,pu_ttc=0 >> > > Ce qui m'intéresse c'est les lignes qui suivent juste celle la. > Tu devrais y trouve un autre insert notament... > >> Et toujours 0 0 dans la base de donnée. >> >> Erwin >> >> Le 29 juillet 2008 09:33, Eldy <[EMAIL PROTECTED]> a écrit : >> >>> >>> Erwin a écrit : >>> >>>> >>>> Bonjour, >>>> >>>> J'essaie de faire un : >>>> $date_deb = time(); >>>> $date_fin = time() + 86400*365; >>>> $result = $fact->addline($fact->id, $description, 5.90, >>>> $nb_mois_pris, 19.6, 1, 0, $date_deb, $date_fin); >>>> if ($result < 1) // error >>>> return -1; >>>> >>>> L'ajout de la ligne et la génération de la facture se passent à >>>> merveille sauf que les dates de début et de fin du service ne >>>> fonctionnent pas. Dans llx_facture_det j'ai : >>>> date_start date_end >>>> 0000-00-00 00:00:00 0000-00-00 00:00:00 >>>> >>>> >>> >>> Ce que tu fais me semble bon. Bizarre. >>> Peux-tu dire ce que tu as dans la log (activé par le module syslog) ? >>> >>>> >>>> D'avance merci de votre aide et déjà merci à Dolibarr pour ces >>>> factures automatiques ! >>>> >>>> Cordialement, >>>> >>>> Erwin >>>> >>>> >>>> _______________________________________________ >>>> Dolibarr-dev mailing list >>>> [email protected] >>>> http://lists.nongnu.org/mailman/listinfo/dolibarr-dev >>>> >>>> >>> >>> -- >>> Laurent Destailleur. >>> --------------------------------------------------------------- >>> EMail: [EMAIL PROTECTED] >>> Web: http://www.destailleur.fr >>> IM: IRC=Eldy, Jabber=Eldy >>> >>> AWStats (Author) : http://awstats.sourceforge.net >>> CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net >>> AWBot (Author) : http://awbot.sourceforge.net >>> Dolibarr (Contributor) : http://www.dolibarr.org >>> >>> >>> >>> _______________________________________________ >>> Dolibarr-dev mailing list >>> [email protected] >>> http://lists.nongnu.org/mailman/listinfo/dolibarr-dev >>> >>> >> >> >> _______________________________________________ >> Dolibarr-dev mailing list >> [email protected] >> http://lists.nongnu.org/mailman/listinfo/dolibarr-dev >> > > > -- > Laurent Destailleur. > --------------------------------------------------------------- > EMail: [EMAIL PROTECTED] > Web: http://www.destailleur.fr > IM: IRC=Eldy, Jabber=Eldy > > AWStats (Author) : http://awstats.sourceforge.net > CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net > AWBot (Author) : http://awbot.sourceforge.net > Dolibarr (Contributor) : http://www.dolibarr.org > > > > _______________________________________________ > Dolibarr-dev mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/dolibarr-dev > _______________________________________________ Dolibarr-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/dolibarr-dev
