Added ability to assign a category of product to a customer
This commit is contained in:
parent
b8410445ff
commit
1343b35576
@ -1,8 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
/* Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
||||||
* Copyright (C) 2005 Éric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2005 Éric Seigne <eric.seigne@ryxeo.com>
|
||||||
* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2006-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
||||||
|
* 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
|
||||||
|
|||||||
@ -150,7 +150,7 @@ if ($type == 0 && $conf->global->CATEGORY_ASSIGNED_TO_A_CUSTOMER)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<tr><td width="20%" class="notopnoleft">';
|
print '<tr><td width="20%" class="notopnoleft">';
|
||||||
print $langs->trans("InternalCategory").'</td><td>';
|
print $langs->trans("CategoryContents").'</td><td>';
|
||||||
print ($c->visible ? $langs->trans("Visible") : $langs->trans("Invisible"));
|
print ($c->visible ? $langs->trans("Visible") : $langs->trans("Invisible"));
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
@ -158,7 +158,7 @@ if ($type == 0 && $conf->global->CATEGORY_ASSIGNED_TO_A_CUSTOMER)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<tr><td width="20%" class="notopnoleft">';
|
print '<tr><td width="20%" class="notopnoleft">';
|
||||||
print $langs->trans("Status").'</td><td>';
|
print $langs->trans("CategoryContents").'</td><td>';
|
||||||
print ($c->visible ? $langs->trans("Visible") : $langs->trans("Invisible"));
|
print ($c->visible ? $langs->trans("Visible") : $langs->trans("Invisible"));
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,7 +25,7 @@ create table llx_categorie
|
|||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
label VARCHAR(255), -- category name
|
label VARCHAR(255), -- category name
|
||||||
description text, -- description of the category
|
description text, -- description of the category
|
||||||
fk_soc integer DEFAULT NULL, -- attribution of the category has a company (for product only)
|
fk_soc integer DEFAULT NULL, -- attribution of the category has a company (for product only)
|
||||||
visible tinyint DEFAULT 1 NOT NULL, -- determine if the products are visible or not
|
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 tinyint DEFAULT 1 NOT NULL -- category type (product, supplier, customer)
|
||||||
)type=innodb;
|
)type=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user