2
0
forked from Wavyzz/dolibarr

Add field to track source module of invoice

This commit is contained in:
Laurent Destailleur
2018-10-07 13:49:09 +02:00
parent 402a383c83
commit f9f93f58df
2 changed files with 7 additions and 4 deletions

View File

@@ -34,6 +34,8 @@ ALTER TABLE llx_accounting_account MODIFY COLUMN fk_pcg_version varchar(32) NOT
ALTER TABLE llx_accounting_system MODIFY COLUMN pcg_version varchar(32) NOT NULL;
ALTER TABLE llx_accounting_account ADD CONSTRAINT fk_accounting_account_fk_pcg_version FOREIGN KEY (fk_pcg_version) REFERENCES llx_accounting_system (pcg_version);
ALTER TABLE llx_facture ADD COLUMN module_source varchar(32);
create table llx_facture_rec_extrafields
(
rowid integer AUTO_INCREMENT PRIMARY KEY,

View File

@@ -63,16 +63,17 @@ create table llx_facture
fk_user_modif integer, -- user making last change
fk_user_valid integer, -- user validating
module_source varchar(32), -- name of module when invoice generated by a dedicated module (POS, ...)
fk_fac_rec_source integer, -- facture rec source
fk_facture_source integer, -- facture origin if credit notes or replacement invoice
fk_projet integer DEFAULT NULL, -- projet auquel est associee la facture
fk_projet integer DEFAULT NULL, -- project invoice is linked to
fk_account integer, -- bank account
fk_currency varchar(3), -- currency code
fk_cond_reglement integer DEFAULT 1 NOT NULL, -- condition de reglement (30 jours, fin de mois ...)
fk_mode_reglement integer, -- mode de reglement (Virement, Prelevement)
date_lim_reglement date, -- date limite de reglement
fk_cond_reglement integer DEFAULT 1 NOT NULL, -- payment term (30 days, end of month...)
fk_mode_reglement integer, -- payment mode (Virement, Prelevement)
date_lim_reglement date, -- due date
note_private text,
note_public text,