Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Missing field vat_reverse_charge in societe_per_entity with constant MAIN_COMPANY_PERENTITY_SHARED #30854

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions htdocs/install/mysql/migration/20.0.0-21.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ create table llx_paymentexpensereport_expensereport


ALTER TABLE llx_contrat ADD COLUMN denormalized_lower_planned_end_date datetime;

-- Missing field vat_reverse_charge with constant MAIN_COMPANY_PERENTITY_SHARED
ALTER TABLE llx_societe_perentity ADD COLUMN vat_reverse_charge tinyint DEFAULT 0;
18 changes: 10 additions & 8 deletions htdocs/install/mysql/tables/llx_societe_perentity-multicompany.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-- ========================================================================
-- Copyright (C) 2021 Open-Dsi <[email protected]>
-- Copyright (C) 2021 Open-Dsi <[email protected]>
-- Copyright (C) 2024 Alexandre Spangaro <[email protected]>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
Expand All @@ -18,11 +19,12 @@

create table llx_societe_perentity
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_soc integer,
entity integer DEFAULT 1 NOT NULL, -- multi company id
accountancy_code_customer varchar(24), -- customer accountancy auxiliary account
accountancy_code_supplier varchar(24), -- supplier accountancy auxiliary account
accountancy_code_sell varchar(32), -- Selling accountancy code
accountancy_code_buy varchar(32) -- Buying accountancy code
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_soc integer,
entity integer DEFAULT 1 NOT NULL, -- multi company id
accountancy_code_customer varchar(24), -- customer accountancy auxiliary account
accountancy_code_supplier varchar(24), -- supplier accountancy auxiliary account
accountancy_code_sell varchar(32), -- Selling accountancy code
accountancy_code_buy varchar(32), -- Buying accountancy code
vat_reverse_charge tinyint DEFAULT 0 -- VAT reverse charge
)ENGINE=innodb;