Merge pull request #25939 from aspangaro/19a7
FIX #25885 Accountancy - Need more space on pcg_type for predefined groups
This commit is contained in:
commit
d0c565ff67
2 changed files with 4 additions and 3 deletions
|
|
@ -44,6 +44,8 @@
|
|||
-- VPGSQL8.2 DROP INDEX uk_c_tva_id;
|
||||
ALTER TABLE llx_c_tva ADD COLUMN entity integer DEFAULT 1 NOT NULL AFTER rowid;
|
||||
ALTER TABLE llx_c_tva ADD UNIQUE INDEX uk_c_tva_id (entity, fk_pays, code, taux, recuperableonly);
|
||||
-- Tip to copy vat rate into entity 2.
|
||||
-- INSERT INTO llx_c_tva (entity, fk_pays, code, taux, localtax1, localtax1_type, localtax2, localtax2_type, use_default, recuperableonly, note, active, accountancy_code_sell, accountancy_code_buy) SELECT 2, fk_pays, code, taux, localtax1, localtax1_type, localtax2, localtax2_type, use_default, recuperableonly, note, active, accountancy_code_sell, accountancy_code_buy FROM llx_c_tva WHERE entity = 1;
|
||||
|
||||
ALTER TABLE llx_ticket ADD COLUMN fk_contract integer DEFAULT 0 after fk_project;
|
||||
|
||||
|
|
@ -51,8 +53,6 @@ UPDATE llx_product_lot SET manufacturing_date = datec WHERE manufacturing_date I
|
|||
|
||||
UPDATE llx_societe_rib SET frstrecur = 'RCUR' WHERE frstrecur = 'RECUR';
|
||||
|
||||
-- Tip to copy vat rate into entity 2.
|
||||
-- INSERT INTO llx_c_tva (entity, fk_pays, code, taux, localtax1, localtax1_type, localtax2, localtax2_type, use_default, recuperableonly, note, active, accountancy_code_sell, accountancy_code_buy) SELECT 2, fk_pays, code, taux, localtax1, localtax1_type, localtax2, localtax2_type, use_default, recuperableonly, note, active, accountancy_code_sell, accountancy_code_buy FROM llx_c_tva WHERE entity = 1;
|
||||
|
||||
INSERT INTO llx_c_action_trigger (code,label,description,elementtype,rang) values ('COMPANY_RIB_CREATE','Third party payment information created','Executed when a third party payment information is created','societe',1);
|
||||
INSERT INTO llx_c_action_trigger (code,label,description,elementtype,rang) values ('COMPANY_RIB_MODIFY','Third party payment information updated','Executed when a third party payment information is updated','societe',1);
|
||||
|
|
@ -112,3 +112,4 @@ ALTER TABLE llx_commande_fournisseur_dispatch ADD INDEX idx_commande_fournisseur
|
|||
UPDATE llx_societe_account SET site = 'dolibarr_website' WHERE fk_website > 0 AND site IS NULL;
|
||||
ALTER TABLE llx_societe_account MODIFY COLUMN site varchar(128) NOT NULL;
|
||||
|
||||
ALTER TABLE llx_accounting_account MODIFY COLUMN pcg_type varchar(32);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ create table llx_accounting_account
|
|||
datec datetime,
|
||||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
fk_pcg_version varchar(32) NOT NULL, -- Chart system
|
||||
pcg_type varchar(20) NOT NULL, -- First part of Key for predefined groups
|
||||
pcg_type varchar(32) NOT NULL, -- First part of Key for predefined groups
|
||||
account_number varchar(32) NOT NULL,
|
||||
account_parent integer DEFAULT 0, -- Hierarchic parent.
|
||||
label varchar(255) NOT NULL,
|
||||
|
|
|
|||
Loading…
Reference in a new issue