Add column subtype

This commit is contained in:
Laurent Destailleur 2023-04-26 11:28:05 +02:00
parent 789336ab34
commit a5a55b37c5
2 changed files with 5 additions and 1 deletions

View File

@ -397,3 +397,5 @@ ALTER TABLE llx_mailing ADD COLUMN name_from varchar(128) AFTER email_from;
ALTER TABLE llx_bom_bomline ADD COLUMN fk_default_workstation integer DEFAULT NULL;
ALTER TABLE llx_mrp_production ADD COLUMN fk_default_workstation integer DEFAULT NULL;
ALTER TABLE llx_facture ADD COLUMN subtype smallint DEFAULT NULL;

View File

@ -33,13 +33,15 @@ create table llx_facture
ref_client varchar(255), -- reference for customer
type smallint DEFAULT 0 NOT NULL, -- type of invoice
subtype smallint DEFAULT NULL, -- subtype of invoice (some countries need a subtype to classify invoices)
fk_soc integer NOT NULL,
datec datetime, -- date de creation de la facture
datef date, -- date invoice
date_pointoftax date DEFAULT NULL, -- date point of tax (for GB)
date_valid date, -- date validation
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- last modification date
date_closing datetime, -- date de cloture
date_closing datetime, -- date de cloture
paye smallint DEFAULT 0 NOT NULL,
remise_percent real DEFAULT 0, -- remise relative