Added ability to assign a category of product to a customer

This commit is contained in:
Regis Houssin 2008-10-07 07:28:45 +00:00
parent f9d92bf42a
commit 26e25f18a1
2 changed files with 15 additions and 6 deletions

View File

@ -34,4 +34,4 @@ alter table llx_rights_def modify column type varchar(1);
ALTER TABLE `llx_commandedet` ADD column `date_start` DATETIME DEFAULT NULL, ADD `date_end` DATETIME DEFAULT NULL ; ALTER TABLE `llx_commandedet` ADD column `date_start` DATETIME DEFAULT NULL, ADD `date_end` DATETIME DEFAULT NULL ;
alter table llx_categorie add column fk_soc integer DEFAULT NULL after description;

View File

@ -1,7 +1,7 @@
-- ============================================================================ -- ============================================================================
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr> -- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org> -- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
-- Copyright (C) 2005-2006 Regis Houssin <regis@dolibarr.fr> -- Copyright (C) 2005-2008 Regis Houssin <regis@dolibarr.fr>
-- --
-- This program is free software; you can redistribute it and/or modify -- 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 -- it under the terms of the GNU General Public License as published by
@ -23,8 +23,17 @@
create table llx_categorie create table llx_categorie
( (
rowid integer AUTO_INCREMENT PRIMARY KEY, rowid integer AUTO_INCREMENT PRIMARY KEY,
label VARCHAR(255), -- nom de la catégorie label VARCHAR(255), -- category name
description text, -- description de la catégorie description text, -- description of the category
visible tinyint DEFAULT 1 NOT NULL, -- determine si les produits sont visible ou pas fk_soc integer DEFAULT NULL, -- attribution of the category has a company (for product only)
type tinyint DEFAULT 1 NOT NULL -- Type de catégorie (product, supplier, societe) visible tinyint DEFAULT 1 NOT NULL, -- determine if the products are visible or not
type tinyint DEFAULT 1 NOT NULL -- category type (product, supplier, customer)
)type=innodb; )type=innodb;
--
-- List of codes for the field type
--
-- 0 : product
-- 1 : supplier
-- 2 : customer
--