#!/usr/bin/env php ***** create_invoice.php (1.7) ***** Dolibarr a détecté une erreur technique.
Ces informations peuvent être utiles à des fins de diagnostic (vous pouvez définir l'option $dolibarr_main_prod sur '1' pour masquer les informations sensibles):
Date: 20261018182830
Dolibarr: 24.0.1 - https://www.dolibarr.org
Niveau de fonctionnalités: 0
Identifiant: admin
PHP: 8.4.22
Server: Apache
OS: Linux webm001.cluster113.gra.hosting.ovh.net 6.18.52-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Sep 22 10:58:27 CEST 2026 x86_64
User Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Url sollicitée: /dolibarr/dev/examples/code/create_invoice.php
Referer:
Gestionnaire de menu:

Modules / Applications: api, user, syslog, tax, prelevement, product, adherent, import, categorie, export, mailing, blockedlog, fckeditor, bookmark, workflow, mydoli, multicurrency, externalrss, formstyler, paymentbybanktransfer, event, stock, reception, modulebuilder, hrm, supplier_proposal, incoterm, propal, externalsite, accounting, banque, commande, don, ecm, expensereport, facture, fournisseur, service, societe
Type gestionnaire de base de données: mysqli
Requête dernier accès en base en erreur: INSERT INTO llx_facture ( ref, entity, ref_ext, type, subtype, fk_soc, datec, datef, date_pointoftax, note_private, note_public, ref_client, fk_account, module_source, pos_source, pos_print_counter, fk_fac_rec_source, fk_facture_source, fk_user_author, fk_projet, fk_cond_reglement, fk_mode_reglement, date_lim_reglement, model_pdf, fk_input_reason, situation_cycle_ref, situation_counter, situation_final, fk_incoterms, location_incoterms, fk_multicurrency, multicurrency_code, multicurrency_tx, retained_warranty, retained_warranty_date_limit, retained_warranty_fk_cond_reglement, ip) VALUES ('(PROV)', 1, null, 0, null, 4, '2026-10-18 18:28:30', '2026-10-18 18:28:30', null, 'A private comment', 'A public comment', null, NULL, null, null, 0, null, null, 61, null, 1, 0, '2026-10-19 18:28:30', null, null, null, null, 0, 0, '', 0, 'EUR', 1, 0, NULL, 0, null)
Code retour dernier accès en base en erreur: DB_ERROR_CONSTRAINT
Information sur le dernier accès en base en erreur: Column 'fk_input_reason' cannot be null

Message: Column 'fk_input_reason' cannot be null
--- end error code=1