Add field email_sent_counter

This commit is contained in:
Laurent Destailleur
2025-11-05 19:43:27 +01:00
parent 0e3fdfe204
commit 361a88a1c5
2 changed files with 3 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ ALTER TABLE llx_accounting_analytic_distribution ADD CONSTRAINT fk_accounting_an
ALTER TABLE llx_facture ADD COLUMN dispute_status integer DEFAULT 0 after payment_reference;
ALTER TABLE llx_facture ADD COLUMN ip varchar(250);
ALTER TABLE llx_facture ADD COLUMN pos_print_counter integer DEFAULT 0;
ALTER TABLE llx_facture ADD COLUMN email_sent_counter integer DEFAULT 0;
ALTER TABLE llx_commande ADD COLUMN ip varchar(250);
ALTER TABLE llx_commande ADD COLUMN user_agent varchar(255);

View File

@@ -68,7 +68,8 @@ create table llx_facture
module_source varchar(32), -- name of module when invoice generated by a dedicated module (POS, ecommerce...)
pos_source varchar(32), -- numero of POS terminal when order is generated by a POS module, IDsession@IDwebsite when invoice is generated for a website ecommerce.
pos_print_counter integer DEFAULT 0, -- counter used to track how many times the ticket was printed.
pos_print_counter integer DEFAULT 0, -- counter used to track how many times the invoice/receipt was printed.
email_sent_counter integer DEFAULT 0, -- counter used to track how many times the invoice/receipt was sent by email.
fk_fac_rec_source integer, -- facture rec source
fk_facture_source integer, -- facture origin if credit notes or replacement invoice