NEW #26312 Manage intermediate BIC - SQL Part (#26325)

This commit is contained in:
Alexandre SPANGARO
2023-10-23 19:13:02 +02:00
committed by GitHub
parent e9fda9653d
commit ce28ab6b35
4 changed files with 70 additions and 62 deletions

View File

@@ -146,3 +146,7 @@ ALTER TABLE llx_resource ADD COLUMN max_users integer DEFAULT NULL AFTER photo_f
ALTER TABLE llx_resource ADD COLUMN phone varchar(255) DEFAULT NULL AFTER user_places; ALTER TABLE llx_resource ADD COLUMN phone varchar(255) DEFAULT NULL AFTER user_places;
ALTER TABLE llx_resource ADD COLUMN email varchar(255) DEFAULT NULL AFTER phone; ALTER TABLE llx_resource ADD COLUMN email varchar(255) DEFAULT NULL AFTER phone;
ALTER TABLE llx_resource ADD COLUMN url varchar(255) DEFAULT NULL AFTER email; ALTER TABLE llx_resource ADD COLUMN url varchar(255) DEFAULT NULL AFTER email;
ALTER TABLE llx_user_rib ADD COLUMN bic_intermediate varchar(11) AFTER bic;
ALTER TABLE llx_bank_account ADD COLUMN bic_intermediate varchar(11) AFTER bic;
ALTER TABLE llx_societe_rib ADD COLUMN bic_intermediate varchar(11) AFTER bic;

View File

@@ -2,7 +2,7 @@
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net> -- Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
-- Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com> -- Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
-- Copyright (C) 2014 Alexandre Spangaro <aspangaro@open-dsi.fr> -- Copyright (C) 2014-2023 Alexandre Spangaro <aspangaro@easya.solutions>
-- --
-- This program is free software; you can redistribute it and/or modify -- 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 -- it under the terms of the GNU General Public License as published by
@@ -37,7 +37,8 @@ create table llx_bank_account
code_guichet varchar(6), code_guichet varchar(6),
number varchar(255), number varchar(255),
cle_rib varchar(5), cle_rib varchar(5),
bic varchar(11), bic varchar(11), -- 11 according to ISO 9362
bic_intermediate varchar(11), -- 11 according to ISO 9362. Same as bic but for intermediate bank
iban_prefix varchar(34), -- full iban. 34 according to ISO 13616 iban_prefix varchar(34), -- full iban. 34 according to ISO 13616
country_iban varchar(2), -- deprecated country_iban varchar(2), -- deprecated
cle_iban varchar(2), cle_iban varchar(2),

View File

@@ -3,6 +3,7 @@
-- Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com> -- Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
-- Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es> -- Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
-- Copyright (C) 2013 Peter Fontaine <contact@peterfontaine.fr> -- Copyright (C) 2013 Peter Fontaine <contact@peterfontaine.fr>
-- Copyright (C) 2023 Alexandre Spangaro <aspangaro@easya.solutions>
-- --
-- This program is free software; you can redistribute it and/or modify -- 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 -- it under the terms of the GNU General Public License as published by
@@ -37,6 +38,7 @@ create table llx_societe_rib
cle_rib varchar(5), -- key of bank account cle_rib varchar(5), -- key of bank account
bic varchar(20), -- 11 according to ISO 9362 (we keep 20 for backward compatibility) bic varchar(20), -- 11 according to ISO 9362 (we keep 20 for backward compatibility)
bic_intermediate varchar(11), -- 11 according to ISO 9362. Same as bic but for intermediate bank
iban_prefix varchar(34), -- full iban. 34 according to ISO 13616 iban_prefix varchar(34), -- full iban. 34 according to ISO 13616
domiciliation varchar(255), domiciliation varchar(255),
@@ -59,12 +61,12 @@ create table llx_societe_rib
last_four varchar(4), -- last 4 last_four varchar(4), -- last 4
card_type varchar(255), -- card type 'VISA', 'MC' , ... card_type varchar(255), -- card type 'VISA', 'MC' , ...
cvn varchar(255), cvn varchar(255),
exp_date_month INTEGER, exp_date_month integer,
exp_date_year INTEGER, exp_date_year integer,
country_code varchar(10), country_code varchar(10),
-- For Paypal -- For Paypal
approved INTEGER DEFAULT 0, approved integer DEFAULT 0,
email varchar(255), email varchar(255),
ending_date date, ending_date date,
max_total_amount_of_all_payments double(24,8), max_total_amount_of_all_payments double(24,8),
@@ -73,7 +75,7 @@ create table llx_societe_rib
total_amount_of_all_payments double(24,8), total_amount_of_all_payments double(24,8),
--For Stripe, Stancer, ... --For Stripe, Stancer, ...
stripe_card_ref varchar(128), -- 'card_...' stripe_card_ref varchar(128), -- card_...'
stripe_account varchar(128), -- 'pk_live_...' stripe_account varchar(128), -- 'pk_live_...'
ext_payment_site varchar(128), -- name of external paymentmode (for example 'StripeLive') ext_payment_site varchar(128), -- name of external paymentmode (for example 'StripeLive')

View File

@@ -1,5 +1,5 @@
-- ============================================================================= -- =============================================================================
-- Copyright (C) 2015 Alexandre Spangaro <aspangaro@open-dsi.fr> -- Copyright (C) 2015-2023 Alexandre Spangaro <aspangaro@easya.solutions>
-- --
-- This program is free software; you can redistribute it and/or modify -- 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 -- it under the terms of the GNU General Public License as published by
@@ -30,6 +30,7 @@ create table llx_user_rib
number varchar(255), -- account number number varchar(255), -- account number
cle_rib varchar(5), -- key of bank account cle_rib varchar(5), -- key of bank account
bic varchar(11), -- 11 according to ISO 9362 bic varchar(11), -- 11 according to ISO 9362
bic_intermediate varchar(11), -- 11 according to ISO 9362. Same as bic but for intermediate bank
iban_prefix varchar(34), -- full iban. 34 according to ISO 13616 iban_prefix varchar(34), -- full iban. 34 according to ISO 13616
domiciliation varchar(255), domiciliation varchar(255),
proprio varchar(60), proprio varchar(60),