Fix issues in payment code.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 15 May 2013 23:23:26 +0000 (01:23 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 15 May 2013 23:23:26 +0000 (01:23 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
modules/payment.php
upgrade/1.1.8/01_clean_bankaccounts.sql

index fad8c32..877627a 100644 (file)
@@ -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 */
index 5e1884a..eb218f8 100644 (file)
@@ -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;