From 243dc7a09d2dcfff4e2988066252d3edfd203dd0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Thu, 16 May 2013 01:23:26 +0200 Subject: [PATCH] Fix issues in payment code. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- modules/payment.php | 2 +- upgrade/1.1.8/01_clean_bankaccounts.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.1.4