Fix: Error in adding article

This commit is contained in:
Laurent Destailleur 2010-09-15 14:38:06 +00:00
parent 91f5d2150d
commit 31b7546cb8
3 changed files with 19 additions and 12 deletions

View File

@ -5,14 +5,14 @@
-- Structure de la table `llx_tmp_caisse`
--
CREATE TABLE `llx_tmp_caisse` (
`id` int(11) NOT NULL auto_increment,
`fk_article` tinyint(4) NOT NULL,
`qte` int(11) NOT NULL,
`fk_tva` int(11) NOT NULL,
`remise_percent` int(11) NOT NULL,
`remise` float NOT NULL,
`total_ht` float NOT NULL,
`total_ttc` float NOT NULL,
PRIMARY KEY (`id`)
CREATE TABLE llx_tmp_caisse (
id integer NOT NULL auto_increment,
fk_article integer NOT NULL,
qte integer NOT NULL,
fk_tva integer NOT NULL,
remise_percent integer NOT NULL,
remise float NOT NULL,
total_ht float NOT NULL,
total_ttc float NOT NULL,
PRIMARY KEY (id)
) ENGINE=innodb;

View File

@ -312,7 +312,7 @@ INSERT INTO llx_c_forme_juridique (fk_pays, code, libelle, active) VALUES (23, '
INSERT INTO llx_c_forme_juridique (fk_pays, code, libelle, active) VALUES (23, '2313', 'Sociedad en Comandita por Acciones (arts. 315 a 324, LSC)', 1);
delete from llx_const where name='USER_PASSWORD_GENERATED' and value='default';
DELETE from llx_const where name='USER_PASSWORD_GENERATED' and value='default';
ALTER TABLE llx_boxes_def DROP INDEX uk_boxes_def;
@ -321,3 +321,10 @@ ALTER TABLE llx_boxes_def ADD UNIQUE INDEX uk_boxes_def (file, entity, note);
-- Fix bad old data
UPDATE llx_bank_url SET type='payment' WHERE type='?' AND label='(payment)' AND url LIKE '%compta/paiement/fiche.php%';
update llx_const set value ='eldy' where name = 'MAIN_THEME' and (value= 'rodolphe' or value='dev' or value='bluelagoon');
update llx_user_param set value ='eldy' where param = 'MAIN_THEME' and (value= 'rodolphe' or value='dev' or value='bluelagoon');
ALTER TABLE llx_tmp_caisse MODIFY fk_article integer NOT NULL;

View File

@ -52,4 +52,4 @@ ALTER TABLE llx_actioncomm ADD COLUMN fk_supplier_order integer;
ALTER TABLE llx_actioncomm ADD COLUMN fk_supplier_invoice integer;
ALTER TABLE llx_tmp_caisse MODIFY fk_article int(11) NOT NULL;
ALTER TABLE llx_tmp_caisse MODIFY fk_article integer NOT NULL;