llx_asset_accountancy_codes_fiscal-asset.sql 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. -- ========================================================================
  2. -- Copyright (C) 2022 OpenDSI <support@open-dsi.fr>
  3. --
  4. -- This program is free software: you can redistribute it and/or modify
  5. -- it under the terms of the GNU General Public License as published by
  6. -- the Free Software Foundation, either version 3 of the License, or
  7. -- (at your option) any later version.
  8. --
  9. -- This program is distributed in the hope that it will be useful,
  10. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. -- GNU General Public License for more details.
  13. --
  14. -- You should have received a copy of the GNU General Public License
  15. -- along with this program. If not, see https://www.gnu.org/licenses/.
  16. -- ========================================================================
  17. --
  18. -- Table to store the configuration of the accounting accounts of a fixed asset for fiscal status
  19. --
  20. -- Data example:
  21. -- INSERT INTO llx_asset_accountancy_codes_fiscal (fk_asset, fk_asset_model, accelerated_depreciation, endowment_accelerated_depreciation, provision_accelerated_depreciation, tms, fk_user_modif) VALUES
  22. -- (1, NULL, NULL, NULL, NULL, '2022-01-18 14:20:20', 1);
  23. CREATE TABLE llx_asset_accountancy_codes_fiscal(
  24. rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
  25. fk_asset integer,
  26. fk_asset_model integer,
  27. accelerated_depreciation varchar(32),
  28. endowment_accelerated_depreciation varchar(32),
  29. provision_accelerated_depreciation varchar(32),
  30. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  31. fk_user_modif integer
  32. ) ENGINE=innodb;