From: Raphaël Barrois Date: Wed, 15 May 2013 23:23:26 +0000 (+0200) Subject: Fix issues in payment code. X-Git-Tag: xorg/1.1.9~29^2 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=243dc7a09d2dcfff4e2988066252d3edfd203dd0;p=platal.git Fix issues in payment code. Signed-off-by: Raphaël Barrois --- diff --git a/modules/payment.php b/modules/payment.php index fad8c32..877627a 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -338,7 +338,7 @@ class PaymentModule extends PLModule /* raison */ $reason = ($status == 'Pending') ? Env::s('pending_reason') : Env::s('reason_code'); /* reference complete de la commande */ - $fullref = str_replace('%2d','-',Env::s('cm'); + $fullref = str_replace('%2d','-',Env::s('cm')); /* montant de la transaction */ $montant = Env::s('amt'); /* devise */ diff --git a/upgrade/1.1.8/01_clean_bankaccounts.sql b/upgrade/1.1.8/01_clean_bankaccounts.sql index 5e1884a..eb218f8 100644 --- a/upgrade/1.1.8/01_clean_bankaccounts.sql +++ b/upgrade/1.1.8/01_clean_bankaccounts.sql @@ -1,5 +1,5 @@ UPDATE payments SET rib_id = NULL; -UPDATE payment_transfers SET account_id = NULL +UPDATE payment_transfers SET account_id = NULL; DELETE FROM payment_bankaccounts; ALTER TABLE payment_bankaccounts CHANGE account iban varchar(33) NOT NULL DEFAULT 'FRkk BBBB BGGG GGCC CCCC CCCC CKK'; ALTER TABLE payment_bankaccounts ADD COLUMN bic varchar(11) NOT NULL DEFAULT 'XXXXXXXXXXX' AFTER iban;