refs #7400 feat: book ledger with counters
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
01d1a2391d
commit
38c505fb7a
|
@ -1,9 +1,16 @@
|
|||
CREATE OR REPLACE TABLE vn.ledgerCompany (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`fiscalYear` int(10) unsigned NOT NULL COMMENT 'Año del ejercicio contable',
|
||||
`bookEntry` int(10) unsigned NOT NULL DEFAULT 1 COMMENT 'Contador asiento contable',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `ledgerCompany_unique` (`fiscalYear`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci
|
||||
COMMENT='Contador para asientos contables';
|
||||
CREATE OR REPLACE TABLE vn.ledgerCompany (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`fiscalYear` int(10) unsigned NOT NULL COMMENT 'Año del ejercicio contable',
|
||||
`bookEntry` int(10) unsigned NOT NULL DEFAULT 1 COMMENT 'Contador asiento contable',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `ledgerCompany_unique` (`fiscalYear`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci
|
||||
COMMENT='Contador para asientos contables';
|
||||
|
||||
INSERT IGNORE INTO vn.ledgerCompany (fiscalYear, bookEntry)
|
||||
SELECT YEAR(util.VN_CURDATE()), lastBookEntry
|
||||
FROM vn.ledgerConfig;
|
||||
|
||||
ALTER TABLE vn.ledgerConfig CHANGE IF EXISTS lastBookEntry lastBookEntry__ int(11) NOT NULL
|
||||
COMMENT '@deprecated 2024-05-28 refs #7400 Modificar contador asientos contables';
|
||||
|
Loading…
Reference in New Issue