Missing entity in the bookkeeping table

This commit is contained in:
Laurent Destailleur 2016-09-29 10:10:32 +02:00
parent 9e5ae87ee2
commit 8fc857fdcb
2 changed files with 4 additions and 0 deletions

View File

@ -115,3 +115,6 @@ create table llx_product_warehouse_properties
desiredstock integer DEFAULT '0',
import_key varchar(14) -- Import key
)ENGINE=innodb;
ALTER TABLE llx_accounting_bookkeeping ADD COLUMN entity integer DEFAULT 1 NOT NULL;

View File

@ -20,6 +20,7 @@
CREATE TABLE llx_accounting_bookkeeping
(
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
entity integer DEFAULT 1 NOT NULL, -- multi company id
doc_date date NOT NULL,
doc_type varchar(30) NOT NULL, -- facture_client/reglement_client/facture_fournisseur/reglement_fournisseur
doc_ref varchar(300) NOT NULL, -- facture_client/reglement_client/... reference number