llx_pos_cash_fence.sql 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- Copyright (C) 2018 Andreu Bisquerra <jove@bisquerra.com>
  2. --
  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_pos_cash_fence(
  16. rowid INTEGER AUTO_INCREMENT PRIMARY KEY,
  17. entity INTEGER DEFAULT 1 NOT NULL,
  18. ref VARCHAR(64),
  19. label VARCHAR(255),
  20. opening double(24,8) default 0,
  21. cash double(24,8) default 0,
  22. card double(24,8) default 0,
  23. cheque double(24,8) default 0,
  24. status INTEGER,
  25. date_creation DATETIME NOT NULL,
  26. date_valid DATETIME,
  27. day_close INTEGER,
  28. month_close INTEGER,
  29. year_close INTEGER,
  30. posmodule VARCHAR(30),
  31. posnumber VARCHAR(30),
  32. fk_user_creat integer,
  33. fk_user_valid integer,
  34. tms TIMESTAMP,
  35. import_key VARCHAR(14)
  36. ) ENGINE=innodb;