forked from Wavyzz/dolibarr
Merge branch 'develop' of github.com:Dolibarr/dolibarr into New_retained_warranty_develop
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2013-2014 Olivier Geffroy <jeff@jeffinfo.com>
|
||||
-- Copyright (C) 2013-2017 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||
-- Copyright (C) 2013-2019 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
@@ -50,6 +50,7 @@ CREATE TABLE llx_accounting_bookkeeping
|
||||
journal_label varchar(255), -- FEC:JournalLib
|
||||
piece_num integer NOT NULL, -- FEC:EcritureNum | accounting source document
|
||||
date_validated datetime, -- FEC:ValidDate | if empty: movement not validated / if not empty: movement validated (No deleting / No modification)
|
||||
date_export datetime DEFAULT NULL, --
|
||||
import_key varchar(14),
|
||||
extraparams varchar(255) -- for other parameters with json format
|
||||
extraparams varchar(255) -- for other parameters with json format
|
||||
) ENGINE=innodb;
|
||||
|
||||
@@ -22,7 +22,7 @@ ALTER TABLE llx_bom_bom ADD INDEX idx_bom_bom_status (status);
|
||||
ALTER TABLE llx_bom_bom ADD INDEX idx_bom_bom_fk_product (fk_product);
|
||||
-- END MODULEBUILDER INDEXES
|
||||
|
||||
--ALTER TABLE llx_bom_bom ADD UNIQUE INDEX uk_bom_bom_fieldxy(fieldx, fieldy);
|
||||
ALTER TABLE llx_bom_bom ADD UNIQUE INDEX uk_bom_bom_ref(ref, entity);
|
||||
|
||||
--ALTER TABLE llx_bom_bom ADD CONSTRAINT llx_bom_bom_fk_field FOREIGN KEY (fk_field) REFERENCES llx_bom_myotherobject(rowid);
|
||||
|
||||
|
||||
@@ -26,13 +26,13 @@ CREATE TABLE llx_bom_bom(
|
||||
fk_product integer,
|
||||
qty double(24,8),
|
||||
efficiency double(8,4) DEFAULT 1,
|
||||
date_creation datetime NOT NULL,
|
||||
date_creation datetime NOT NULL,
|
||||
date_valid datetime,
|
||||
tms timestamp,
|
||||
date_valid datetime,
|
||||
fk_user_creat integer NOT NULL,
|
||||
fk_user_creat integer NOT NULL,
|
||||
fk_user_modif integer,
|
||||
fk_user_valid integer,
|
||||
import_key varchar(14),
|
||||
status integer NOT NULL
|
||||
-- END MODULEBUILDER FIELDS
|
||||
) ENGINE=innodb;
|
||||
) ENGINE=innodb;
|
||||
|
||||
@@ -22,5 +22,5 @@ ALTER TABLE llx_bom_bomline ADD INDEX idx_bom_bomline_fk_bom (fk_bom);
|
||||
|
||||
--ALTER TABLE llx_bom_bomline ADD UNIQUE INDEX uk_bom_bomline_fieldxy(fieldx, fieldy);
|
||||
|
||||
--ALTER TABLE llx_bom_bomline ADD CONSTRAINT llx_bom_bomline_fk_field FOREIGN KEY (fk_field) REFERENCES llx_bom_myotherobject(rowid);
|
||||
ALTER TABLE llx_bom_bomline ADD CONSTRAINT llx_bom_bomline_fk_bom FOREIGN KEY (fk_bom) REFERENCES llx_bom_bom(rowid);
|
||||
|
||||
|
||||
@@ -16,5 +16,5 @@
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
ALTER TABLE llx_c_shipment_mode ADD UNIQUE INDEX uk_c_shipment_mode (code);
|
||||
ALTER TABLE llx_c_shipment_mode ADD UNIQUE INDEX uk_c_shipment_mode (code, entity);
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
create table llx_c_shipment_mode
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
||||
tms timestamp,
|
||||
code varchar(30) NOT NULL,
|
||||
libelle varchar(50) NOT NULL,
|
||||
|
||||
20
htdocs/install/mysql/tables/llx_entrepot_extrafields.key.sql
Normal file
20
htdocs/install/mysql/tables/llx_entrepot_extrafields.key.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 3 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_entrepot_extrafields ADD INDEX idx_entrepot_extrafields (fk_object);
|
||||
26
htdocs/install/mysql/tables/llx_entrepot_extrafields.sql
Normal file
26
htdocs/install/mysql/tables/llx_entrepot_extrafields.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
-- ========================================================================
|
||||
-- Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 3 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_entrepot_extrafields
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
tms timestamp,
|
||||
fk_object integer NOT NULL,
|
||||
import_key varchar(14) -- import key
|
||||
) ENGINE=innodb;
|
||||
|
||||
@@ -28,7 +28,7 @@ create table llx_paiement
|
||||
datep datetime, -- payment date
|
||||
amount double(24,8) DEFAULT 0, -- amount paid in Dolibarr currency
|
||||
multicurrency_amount double(24,8) DEFAULT 0, -- amount paid in invoice currency
|
||||
fk_paiement integer NOT NULL,
|
||||
fk_paiement integer NOT NULL, -- type of payment in llx_c_paiement
|
||||
num_paiement varchar(50),
|
||||
note text,
|
||||
ext_payment_id varchar(128), -- external id of payment (for example Stripe charge id)
|
||||
|
||||
@@ -65,34 +65,34 @@ create table llx_societe
|
||||
fk_typent integer DEFAULT 0, --
|
||||
fk_forme_juridique integer DEFAULT 0, -- juridical status
|
||||
fk_currency varchar(3), -- default currency
|
||||
siren varchar(128), -- IDProf1: siren or RCS for france, ...
|
||||
siret varchar(128), -- IDProf2: siret for france, ...
|
||||
ape varchar(128), -- IDProf3: code ape for france, ...
|
||||
idprof4 varchar(128), -- IDProf4: nu for france
|
||||
idprof5 varchar(128), -- IDProf5: nu for france
|
||||
idprof6 varchar(128), -- IDProf6: nu for france
|
||||
tva_intra varchar(20), -- tva
|
||||
capital double(24,8) DEFAULT NULL, -- capital de la societe
|
||||
fk_stcomm integer DEFAULT 0 NOT NULL, -- commercial statut
|
||||
siren varchar(128), -- IDProf1: depends on country (example: siren or RCS for france, ...)
|
||||
siret varchar(128), -- IDProf2: depends on country (example: siret for france, ...)
|
||||
ape varchar(128), -- IDProf3: depends on country (example: code ape for france, ...)
|
||||
idprof4 varchar(128), -- IDProf4: depends on country (example: nu for france, ...)
|
||||
idprof5 varchar(128), -- IDProf5: depends on country (example: nu for france, ...)
|
||||
idprof6 varchar(128), -- IDProf6: depends on country (example: nu for france, ...
|
||||
tva_intra varchar(20), -- vat numero
|
||||
capital double(24,8) DEFAULT NULL, -- capital of company
|
||||
fk_stcomm integer DEFAULT 0 NOT NULL, -- commercial status
|
||||
note_private text, --
|
||||
note_public text, --
|
||||
model_pdf varchar(255),
|
||||
prefix_comm varchar(5), -- prefix commercial
|
||||
prefix_comm varchar(5), -- prefix commercial (deprecated)
|
||||
client tinyint DEFAULT 0, -- client 0/1/2
|
||||
fournisseur tinyint DEFAULT 0, -- fournisseur 0/1
|
||||
supplier_account varchar(32), -- compte client chez un fournisseur
|
||||
supplier_account varchar(32), -- Id of our customer account known by the supplier
|
||||
fk_prospectlevel varchar(12), -- prospect level (in llx_c_prospectlevel)
|
||||
fk_incoterms integer, -- for incoterms
|
||||
location_incoterms varchar(255), -- for incoterms
|
||||
customer_bad tinyint DEFAULT 0, -- mauvais payeur 0/1
|
||||
customer_rate real DEFAULT 0, -- taux fiabilite client (0 a 1)
|
||||
supplier_rate real DEFAULT 0, -- taux fiabilite fournisseur (0 a 1)
|
||||
remise_client real DEFAULT 0, -- remise systematique pour le client
|
||||
remise_supplier real DEFAULT 0, -- remise systematique auprès du fournisseur
|
||||
mode_reglement tinyint, -- mode de reglement
|
||||
cond_reglement tinyint, -- condition de reglement
|
||||
mode_reglement_supplier tinyint, -- mode de reglement fournisseur
|
||||
cond_reglement_supplier tinyint, -- condition de reglement fournisseur
|
||||
remise_client real DEFAULT 0, -- discount by default granted to this customer
|
||||
remise_supplier real DEFAULT 0, -- discount by default granted by this supplier
|
||||
mode_reglement tinyint, -- payment mode customer
|
||||
cond_reglement tinyint, -- payment term customer
|
||||
mode_reglement_supplier tinyint, -- payment mode supplier
|
||||
cond_reglement_supplier tinyint, -- payment term supplier
|
||||
fk_shipping_method integer, -- preferred shipping method id
|
||||
tva_assuj tinyint DEFAULT 1, -- assujeti ou non a la TVA
|
||||
localtax1_assuj tinyint DEFAULT 0, -- assujeti ou non a local tax 1
|
||||
|
||||
Reference in New Issue
Block a user