Add missing column for the bank account for SEPA payments
This commit is contained in:
parent
3355867712
commit
14d6c5fbdb
@ -210,8 +210,13 @@ if ($id > 0 || $ref) {
|
|||||||
print '<div class="underbanner clearboth"></div>';
|
print '<div class="underbanner clearboth"></div>';
|
||||||
print '<table class="border centpercent tableforfield">';
|
print '<table class="border centpercent tableforfield">';
|
||||||
|
|
||||||
|
if ($object->fk_bank_account > 0) {
|
||||||
|
$acc = new Account($db);
|
||||||
|
$result = $acc->fetch($object->fk_bank_account);
|
||||||
|
} else { // For backward compatibility
|
||||||
$acc = new Account($db);
|
$acc = new Account($db);
|
||||||
$result = $acc->fetch(($object->type == 'bank-transfer' ? $conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT : $conf->global->PRELEVEMENT_ID_BANKACCOUNT));
|
$result = $acc->fetch(($object->type == 'bank-transfer' ? $conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT : $conf->global->PRELEVEMENT_ID_BANKACCOUNT));
|
||||||
|
}
|
||||||
|
|
||||||
print '<tr><td class="titlefieldcreate">';
|
print '<tr><td class="titlefieldcreate">';
|
||||||
$labelofbankfield = "BankToReceiveWithdraw";
|
$labelofbankfield = "BankToReceiveWithdraw";
|
||||||
|
|||||||
@ -73,6 +73,7 @@ ALTER TABLE llx_bank_account ADD COLUMN owner_zip varchar(25);
|
|||||||
ALTER TABLE llx_bank_account ADD COLUMN owner_town varchar(50);
|
ALTER TABLE llx_bank_account ADD COLUMN owner_town varchar(50);
|
||||||
ALTER TABLE llx_bank_account ADD COLUMN owner_country_id integer DEFAULT NULL;
|
ALTER TABLE llx_bank_account ADD COLUMN owner_country_id integer DEFAULT NULL;
|
||||||
|
|
||||||
|
ALTER TABLE llx_prelevement_bons ADD COLUMN fk_bank_account integer DEFAULT NULL;
|
||||||
|
|
||||||
ALTER TABLE llx_supplier_proposal ADD UNIQUE INDEX uk_supplier_proposal_ref (ref, entity);
|
ALTER TABLE llx_supplier_proposal ADD UNIQUE INDEX uk_supplier_proposal_ref (ref, entity);
|
||||||
|
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
--
|
--
|
||||||
-- Direct debit or credit orders
|
-- Direct debit or credit orders
|
||||||
--
|
--
|
||||||
|
-- statut 0 : draft
|
||||||
-- statut 1 : sent to the bank
|
-- statut 1 : sent to the bank
|
||||||
-- statut 2 : paid
|
-- statut 2 : paid
|
||||||
--
|
--
|
||||||
@ -38,6 +39,6 @@ create table llx_prelevement_bons
|
|||||||
method_trans smallint, -- methode de transmission
|
method_trans smallint, -- methode de transmission
|
||||||
fk_user_trans integer, -- user qui a effectue la transmission
|
fk_user_trans integer, -- user qui a effectue la transmission
|
||||||
date_credit datetime, -- date de credit sur le compte
|
date_credit datetime, -- date de credit sur le compte
|
||||||
fk_user_credit integer -- user qui a remonte l'info de credit
|
fk_user_credit integer, -- user qui a remonte l'info de credit
|
||||||
|
fk_bank_account integer DEFAULT NULL
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user