forked from Wavyzz/dolibarr
Merge remote-tracking branch 'upstream/develop' into socialnetworks
This commit is contained in:
9
htdocs/install/mysql/tables/llx_c_shipment_package_type
Normal file
9
htdocs/install/mysql/tables/llx_c_shipment_package_type
Normal file
@@ -0,0 +1,9 @@
|
||||
--Dictionary of package type
|
||||
create table llx_c_shipment_package_type
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
label varchar(50) NOT NULL, -- Short name
|
||||
description varchar(255), -- Description
|
||||
active integer DEFAULT 1 NOT NULL, -- Active or not
|
||||
entity integer DEFAULT 1 NOT NULL -- Multi company id
|
||||
)ENGINE=innodb;
|
||||
18
htdocs/install/mysql/tables/llx_expedition_package.sql
Normal file
18
htdocs/install/mysql/tables/llx_expedition_package.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
--List of parcels details related to an expedition
|
||||
create table llx_expedition_package
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
fk_expedition integer NOT NULL,
|
||||
description varchar(255), --Description of goods in the package (required by the custom)
|
||||
value double(24,8) DEFAULT 0,--Value (Price of the content, for insurance & custom)
|
||||
fk_package_type integer, -- Type or package, linked to llx_c_shipment_parcel_type (eg: 1=enveloppe, 2=package, 3=palette, 4=other)
|
||||
height float, -- height
|
||||
width float, -- width
|
||||
size float, -- depth
|
||||
size_units integer, -- unit of all sizes (height, width, depth)
|
||||
weight float, -- weight
|
||||
weight_units integer, -- unit of weight
|
||||
dangerous_goods smallint DEFAULT 0, -- 0 = no dangerous goods or 1 = Explosives, 2 = Flammable Gases, 3 = Flammable Liquids, 4 = Flammable solids, 5 = Oxidizing, 6 = Toxic & Infectious, 7 = Radioactive, 8 = Corrosives, 9 = Miscellaneous (see https://en.wikipedia.org/wiki/Dangerous_goods). I'm not sure if just register 0 (no) or 1 (yes) is enough.
|
||||
tail_lift smallint DEFAULT 0, -- 0 = no tail lift required to load/unload package(s), 1 = a tail lift is required to load/unload package(s). Sometime tail lift load can be different than tail lift delivery so maybe adding a new table line.
|
||||
rang integer DEFAULT 0
|
||||
)ENGINE=innodb;
|
||||
@@ -19,4 +19,5 @@
|
||||
|
||||
|
||||
ALTER TABLE llx_expeditiondet ADD INDEX idx_expeditiondet_fk_expedition (fk_expedition);
|
||||
ALTER TABLE llx_expeditiondet ADD INDEX idx_expeditiondet_fk_origin_line (fk_origin_line);
|
||||
ALTER TABLE llx_expeditiondet ADD CONSTRAINT fk_expeditiondet_fk_expedition FOREIGN KEY (fk_expedition) REFERENCES llx_expedition (rowid);
|
||||
|
||||
Reference in New Issue
Block a user