feat: Add rank column into contract line

This commit is contained in:
Florian HENRY 2022-04-01 11:29:38 +02:00
parent 113af78a9c
commit a9faf5fb54
2 changed files with 3 additions and 0 deletions

View File

@ -300,3 +300,5 @@ UPDATE llx_c_availability SET type_duration = 'w', qty = 3 WHERE code = 'AV_3W';
UPDATE llx_c_availability SET type_duration = 'w', qty = 4 WHERE code = 'AV_4W';
ALTER TABLE llx_boxes_def ADD COLUMN fk_user integer DEFAULT 0 NOT NULL;
ALTER TABLE llx_contratdet ADD COLUMN rang integer DEFAULT 0 AFTER info_bits;

View File

@ -56,6 +56,7 @@ create table llx_contratdet
product_type integer DEFAULT 1, -- Type of line (1=service by default)
info_bits integer DEFAULT 0, -- TVA NPR ou non
rang integer DEFAULT 0,
buy_price_ht double(24,8) DEFAULT NULL, -- buying price
fk_product_fournisseur_price integer DEFAULT NULL, -- reference of supplier price when line was added was created (may be used to update buy_price_ht when future invoice will be created)