llx_societe_remise_except.sql 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. -- ============================================================================
  2. -- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. -- Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
  4. --
  5. -- This program is free software; you can redistribute it and/or modify
  6. -- it under the terms of the GNU General Public License as published by
  7. -- the Free Software Foundation; either version 3 of the License, or
  8. -- (at your option) any later version.
  9. --
  10. -- This program is distributed in the hope that it will be useful,
  11. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. -- GNU General Public License for more details.
  14. --
  15. -- You should have received a copy of the GNU General Public License
  16. -- along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. --
  18. --
  19. -- Remises exceptionnelles
  20. -- ============================================================================
  21. create table llx_societe_remise_except
  22. (
  23. rowid integer AUTO_INCREMENT PRIMARY KEY,
  24. fk_soc integer NOT NULL, -- client
  25. datec datetime,
  26. amount_ht double(24,8) NOT NULL,
  27. amount_tva double(24,8) DEFAULT 0 NOT NULL,
  28. amount_ttc double(24,8) DEFAULT 0 NOT NULL,
  29. tva_tx double(6,3) DEFAULT 0 NOT NULL,
  30. fk_user integer NOT NULL,
  31. fk_facture_line integer,
  32. fk_facture integer,
  33. fk_facture_source integer,
  34. description text NOT NULL
  35. multicurrency_amount_ht double(24,8) NOT NULL,
  36. multicurrency_amount_tva double(24,8) DEFAULT 0 NOT NULL,
  37. multicurrency_amount_ttc double(24,8) DEFAULT 0 NOT NULL
  38. )ENGINE=innodb;