Works on enhancement of local taxes. New: Prepare database, product tables
This commit is contained in:
parent
36532e39aa
commit
a39603d883
@ -74,6 +74,11 @@ alter table llx_facture_fourn_det add column localtax2_tx double(6,3) DEFAULT 0
|
||||
alter table llx_facture_fourn_det add column total_localtax1 double(24,8) DEFAULT 0 after tva;
|
||||
alter table llx_facture_fourn_det add column total_localtax2 double(24,8) DEFAULT 0 after total_localtax1;
|
||||
|
||||
alter table llx_product add column localtax1_tx double(6,3) DEFAULT 0 after tva_tx;
|
||||
alter table llx_product add column localtax2_tx double(6,3) DEFAULT 0 after localtax1_tx;
|
||||
alter table llx_product_price add column localtax1_tx double(6,3) DEFAULT 0 after tva_tx;
|
||||
alter table llx_product_price add column localtax2_tx double(6,3) DEFAULT 0 after localtax1_tx;
|
||||
|
||||
alter table llx_product add column hidden tinyint DEFAULT 0;
|
||||
|
||||
alter table llx_product add column length float DEFAULT NULL after weight_units;
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
-- Copyright (C) 2002-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2008-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
-- Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
|
||||
-- Copyright (C) 2010 juanjo Menent <jmenent@2byte.es>
|
||||
--
|
||||
-- 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
|
||||
@ -38,6 +39,8 @@ create table llx_product
|
||||
price_min_ttc double(24,8) DEFAULT 0,
|
||||
price_base_type varchar(3) DEFAULT 'HT',
|
||||
tva_tx double(6,3),
|
||||
localtax1_tx double(6,3) DEFAULT 0,
|
||||
localtax2_tx double(6,3) DEFAULT 0,
|
||||
fk_user_author integer,
|
||||
envente tinyint DEFAULT 1,
|
||||
fk_product_type integer DEFAULT 0, -- Type 0 for regular product, 1 for service
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
|
||||
--
|
||||
-- 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
|
||||
@ -31,6 +32,8 @@ create table llx_product_price
|
||||
price_min_ttc double(24,8) default NULL,
|
||||
price_base_type varchar(3) DEFAULT 'HT',
|
||||
tva_tx double(6,3) NOT NULL,
|
||||
localtax1_tx double(6,3) DEFAULT 0,
|
||||
localtax2_tx double(6,3) DEFAULT 0,
|
||||
fk_user_author integer,
|
||||
envente tinyint DEFAULT 1
|
||||
)type=innodb;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user