llx_fichinterdet_rec.sql 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. -- ===================================================================
  2. -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. -- Copyright (C) 2009-2014 Laurent Destailleur <eldy@users.sourceforge.net>
  4. -- Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
  5. -- Copyright (C) 2010-2012 Regis Houssin <regis.houssin@inodbox.com>
  6. -- Copyright (C) 2012 Cédric Salvador <csalvador@gpcsolutions.fr>
  7. -- Copyright (C) 2016-2018 Charlene Benke <charlie@patas-monkey.com>
  8. --
  9. -- This program is free software; you can redistribute it and/or modify
  10. -- it under the terms of the GNU General Public License as published by
  11. -- the Free Software Foundation; either version 3 of the License, or
  12. -- (at your option) any later version.
  13. --
  14. -- This program is distributed in the hope that it will be useful,
  15. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. -- GNU General Public License for more details.
  18. --
  19. -- You should have received a copy of the GNU General Public License
  20. -- along with this program. If not, see <https://www.gnu.org/licenses/>.
  21. --
  22. -- ===================================================================
  23. create table llx_fichinterdet_rec
  24. (
  25. rowid integer AUTO_INCREMENT PRIMARY KEY,
  26. fk_fichinter integer NOT NULL,
  27. date datetime, -- date de la ligne d'intervention
  28. description text, -- description de la ligne d'intervention
  29. duree integer, -- duree de la ligne d'intervention
  30. rang integer DEFAULT 0, -- ordre affichage sur la fiche
  31. total_ht DOUBLE(24, 8) NULL DEFAULT NULL,
  32. subprice DOUBLE(24, 8) NULL DEFAULT NULL,
  33. fk_parent_line integer NULL DEFAULT NULL,
  34. fk_product integer NULL DEFAULT NULL,
  35. label varchar(255) NULL DEFAULT NULL,
  36. tva_tx DOUBLE(6, 3) NULL DEFAULT NULL,
  37. localtax1_tx DOUBLE(6, 3) NULL DEFAULT 0,
  38. localtax1_type VARCHAR(1) NULL DEFAULT NULL,
  39. localtax2_tx DOUBLE(6, 3) NULL DEFAULT 0,
  40. localtax2_type VARCHAR(1) NULL DEFAULT NULL,
  41. qty double NULL DEFAULT NULL,
  42. remise_percent double NULL DEFAULT 0,
  43. fk_remise_except integer NULL DEFAULT NULL,
  44. price DOUBLE(24, 8) NULL DEFAULT NULL,
  45. total_tva DOUBLE(24, 8) NULL DEFAULT NULL,
  46. total_localtax1 DOUBLE(24, 8) NULL DEFAULT 0,
  47. total_localtax2 DOUBLE(24, 8) NULL DEFAULT 0,
  48. total_ttc DOUBLE(24, 8) NULL DEFAULT NULL,
  49. product_type INTEGER NULL DEFAULT 0,
  50. date_start datetime NULL DEFAULT NULL,
  51. date_end datetime NULL DEFAULT NULL,
  52. info_bits INTEGER NULL DEFAULT 0,
  53. buy_price_ht DOUBLE(24, 8) NULL DEFAULT 0,
  54. fk_product_fournisseur_price integer NULL DEFAULT NULL,
  55. fk_code_ventilation integer NOT NULL DEFAULT 0,
  56. special_code integer UNSIGNED NULL DEFAULT 0,
  57. fk_unit integer NULL DEFAULT NULL,
  58. import_key varchar(14) NULL DEFAULT NULL
  59. )ENGINE=innodb;