Fix: bug #14740 overview: Ajout details contrat sans produit impossible
This commit is contained in:
parent
3f8d097b39
commit
9d2f153243
@ -1886,3 +1886,7 @@ alter table llx_commande add ref_client varchar(30) after ref;
|
||||
alter table llx_facture add ref_client varchar(30) after facnumber;
|
||||
alter table llx_facture add date_valid date after datef;
|
||||
alter table llx_facture add model varchar(50) after note;
|
||||
|
||||
alter table llx_facturedet modify fk_product integer NULL;
|
||||
alter table llx_contratdet modify fk_product integer NULL;
|
||||
update llx_facturedet set fk_product = null where fk_product=0;
|
||||
@ -26,7 +26,7 @@ create table llx_contratdet
|
||||
tms timestamp,
|
||||
|
||||
fk_contrat integer NOT NULL,
|
||||
fk_product integer NOT NULL,
|
||||
fk_product integer NULL, -- doit pouvoir etre nul pour ligne detail sans produits
|
||||
|
||||
statut smallint DEFAULT 0,
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
-- Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
--
|
||||
-- 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
|
||||
@ -24,7 +24,7 @@ create table llx_facturedet
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
fk_facture integer NOT NULL,
|
||||
fk_product integer DEFAULT 0 NOT NULL,
|
||||
fk_product integer NULL, -- doit pouvoir etre nul pour ligne detail sans produits
|
||||
description text,
|
||||
tva_taux real DEFAULT 19.6, -- taux tva
|
||||
qty real, -- quantité
|
||||
|
||||
Loading…
Reference in New Issue
Block a user