facture et conversion pdf
Posté : sam. sept. 19, 2020 8:51 am
Bonjour,
Dans le module facturation, il y a la possibilité d'envoyer les factures par mail. On peut les envoyer en pdf si case cochée.
Mon soucis c'est qu'apparemment il n'y a pas de conversion. J'ai activé les balises dans config.inc.php, installé unoconv. Rien y fait.
unoconv fonctionne ne ligne de commande. Dans le répertoire temporaire, il n'y a que le fichier ods. Le pdf n'est pas généré.
Voici les messages :
invoicing/index.php param : plugin_code=INVOICING
Warning: filesize(): stat failed for /tmp/invoiceI56EMy/facture-gaec-logo-tva-ven6.pdf in /var/www/html/noalyss/include/lib/sendmail_core.class.php on line 144
Warning: fopen(/tmp/invoiceI56EMy/facture-gaec-logo-tva-ven6.pdf): failed to open stream: Aucun fichier ou dossier de ce type in /var/www/html/noalyss/include/lib/sendmail_core.class.php on line 145
Warning: fread() expects parameter 1 to be resource, bool given in /var/www/html/noalyss/include/lib/sendmail_core.class.php on line 146
Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/html/noalyss/include/lib/sendmail_core.class.php on line 147
Notice: Undefined variable: action in /var/www/html/noalyss/include/ext/invoicing/include/invoice_send_mail.inc.php on line 4
Notice: Trying to get property 'ag_id' of non-object in /var/www/html/noalyss/include/ext/invoicing/include/invoice_send_mail.inc.php on line 4
Warning: pg_query_params(): Query failed: ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « ag_id » D?TAIL : La ligne en échec contient (59, null, 36821, 1, facture-gaec-logo-tva-ven6.ods, application/vnd.oasis.opendocument.spreadsheet, null) in /var/www/html/noalyss/include/lib/database_core.class.php on line 175
insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype) values ($1,$2,$3,$4,$5)Array ( [0] => [1] => 36821 [2] => 1 [3] => facture-gaec-logo-tva-ven6.ods [4] => application/vnd.oasis.opendocument.spreadsheet ) SQL ERROR insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype) values ($1,$2,$3,$4,$5) ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « ag_id » D?TAIL : La ligne en échec contient (59, null, 36821, 1, facture-gaec-logo-tva-ven6.ods, application/vnd.oasis.opendocument.spreadsheet, null)#0 /var/www/html/noalyss/include/ext/invoicing/include/invoice_send_mail.inc.php(5): DatabaseCore->exec_sql('insert into doc...', Array) #1 /var/www/html/noalyss/include/ext/invoicing/include/invoice_send_mail_route.inc.php(2): require('/var/www/html/n...') #2 /var/www/html/noalyss/include/ext/invoicing/include/invoicing.inc.php(2): require('/var/www/html/n...') #3 /var/www/html/noalyss/include/ext/invoicing/index.php(2): require_once('/var/www/html/n...') #4 /var/www/html/noalyss/include/extension_get.inc.php(42): require_once('/var/www/html/n...') #5 /var/www/html/noalyss/include/lib/ac_common.php(1142): require('/var/www/html/n...') #6 /var/www/html/noalyss/html/do.php(276): show_menu('958') #7 {main}ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « ag_id » D?TAIL : La ligne en échec contient (59, null, 36821, 1, facture-gaec-logo-tva-ven6.ods, application/vnd.oasis.opendocument.spreadsheet, null)
Envoi echoué send failed C-411001 Jean Dupond frederic-m.roux@laposte.net
echec chargement fichier facture-gaec-logo-tva-ven6.ods SQL ERROR insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype) values ($1,$2,$3,$4,$5) ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « ag_id » D?TAIL : La ligne en échec contient (59, null, 36821, 1, facture-gaec-logo-tva-ven6.ods, application/vnd.oasis.opendocument.spreadsheet, null)
merci
Dans le module facturation, il y a la possibilité d'envoyer les factures par mail. On peut les envoyer en pdf si case cochée.
Mon soucis c'est qu'apparemment il n'y a pas de conversion. J'ai activé les balises dans config.inc.php, installé unoconv. Rien y fait.
unoconv fonctionne ne ligne de commande. Dans le répertoire temporaire, il n'y a que le fichier ods. Le pdf n'est pas généré.
Voici les messages :
invoicing/index.php param : plugin_code=INVOICING
Warning: filesize(): stat failed for /tmp/invoiceI56EMy/facture-gaec-logo-tva-ven6.pdf in /var/www/html/noalyss/include/lib/sendmail_core.class.php on line 144
Warning: fopen(/tmp/invoiceI56EMy/facture-gaec-logo-tva-ven6.pdf): failed to open stream: Aucun fichier ou dossier de ce type in /var/www/html/noalyss/include/lib/sendmail_core.class.php on line 145
Warning: fread() expects parameter 1 to be resource, bool given in /var/www/html/noalyss/include/lib/sendmail_core.class.php on line 146
Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/html/noalyss/include/lib/sendmail_core.class.php on line 147
Notice: Undefined variable: action in /var/www/html/noalyss/include/ext/invoicing/include/invoice_send_mail.inc.php on line 4
Notice: Trying to get property 'ag_id' of non-object in /var/www/html/noalyss/include/ext/invoicing/include/invoice_send_mail.inc.php on line 4
Warning: pg_query_params(): Query failed: ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « ag_id » D?TAIL : La ligne en échec contient (59, null, 36821, 1, facture-gaec-logo-tva-ven6.ods, application/vnd.oasis.opendocument.spreadsheet, null) in /var/www/html/noalyss/include/lib/database_core.class.php on line 175
insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype) values ($1,$2,$3,$4,$5)Array ( [0] => [1] => 36821 [2] => 1 [3] => facture-gaec-logo-tva-ven6.ods [4] => application/vnd.oasis.opendocument.spreadsheet ) SQL ERROR insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype) values ($1,$2,$3,$4,$5) ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « ag_id » D?TAIL : La ligne en échec contient (59, null, 36821, 1, facture-gaec-logo-tva-ven6.ods, application/vnd.oasis.opendocument.spreadsheet, null)#0 /var/www/html/noalyss/include/ext/invoicing/include/invoice_send_mail.inc.php(5): DatabaseCore->exec_sql('insert into doc...', Array) #1 /var/www/html/noalyss/include/ext/invoicing/include/invoice_send_mail_route.inc.php(2): require('/var/www/html/n...') #2 /var/www/html/noalyss/include/ext/invoicing/include/invoicing.inc.php(2): require('/var/www/html/n...') #3 /var/www/html/noalyss/include/ext/invoicing/index.php(2): require_once('/var/www/html/n...') #4 /var/www/html/noalyss/include/extension_get.inc.php(42): require_once('/var/www/html/n...') #5 /var/www/html/noalyss/include/lib/ac_common.php(1142): require('/var/www/html/n...') #6 /var/www/html/noalyss/html/do.php(276): show_menu('958') #7 {main}ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « ag_id » D?TAIL : La ligne en échec contient (59, null, 36821, 1, facture-gaec-logo-tva-ven6.ods, application/vnd.oasis.opendocument.spreadsheet, null)
Envoi echoué send failed C-411001 Jean Dupond frederic-m.roux@laposte.net
echec chargement fichier facture-gaec-logo-tva-ven6.ods SQL ERROR insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype) values ($1,$2,$3,$4,$5) ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « ag_id » D?TAIL : La ligne en échec contient (59, null, 36821, 1, facture-gaec-logo-tva-ven6.ods, application/vnd.oasis.opendocument.spreadsheet, null)
merci