llx_stocktransfer_stocktransferline-stocktransfer.sql 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. -- Copyright (C) ---Put here your own copyright and developer email---
  2. -- Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
  3. -- This program is free software: you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation, either version 3 of the License, or
  6. -- (at your option) any later version.
  7. --
  8. -- This program is distributed in the hope that it will be useful,
  9. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. -- GNU General Public License for more details.
  12. --
  13. -- You should have received a copy of the GNU General Public License
  14. -- along with this program. If not, see https://www.gnu.org/licenses/.
  15. CREATE TABLE llx_stocktransfer_stocktransferline(
  16. -- BEGIN MODULEBUILDER FIELDS
  17. rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
  18. amount double DEFAULT NULL,
  19. qty real,
  20. fk_warehouse_source integer NOT NULL,
  21. fk_warehouse_destination integer NOT NULL,
  22. fk_stocktransfer integer NOT NULL,
  23. fk_product integer NOT NULL,
  24. batch varchar(128) DEFAULT NULL, -- Lot or serial number
  25. pmp double,
  26. rang integer DEFAULT 0,
  27. fk_parent_line integer NULL
  28. -- END MODULEBUILDER FIELDS
  29. ) ENGINE=innodb;