'id', 'ref' => 'ref', 'fk_soc' => 'thirdparty', 'total_ht' => 'total_ht', 'total_ttc' => 'total_ttc', 'fk_statut' => 'status', 'date' => 'date' ]; // Mapping des champs de lignes protected $listOfPublishedFieldsForLines = [ 'id' => 'id', 'desc' => 'description', 'qty' => 'quantity', 'subprice' => 'unit_price', 'total_ht' => 'total_ht', 'total_ttc' => 'total_ttc', 'tva_tx' => 'vat_rate' ]; // Description des champs de lignes (pour le formulaire côté React) protected $parentFieldsForLines = [ 'id' => ['type' => 'integer', 'label' => 'ID', 'visible' => -1], 'desc' => ['type' => 'html', 'label' => 'Description', 'visible' => 1], 'qty' => ['type' => 'integer', 'label' => 'Quantité', 'visible' => 1], 'subprice' => ['type' => 'price', 'label' => 'Prix unitaire', 'visible' => 1] ]; // Titre de la section lignes protected $parentLabelForLines = "Lignes de facture"; public function __construct() { global $langs; $langs->load("bills"); $this->boot(); } }