From d45ac7d2977425c6cc9fe1b919b621fb40ea6879 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Fri, 29 Jul 2011 10:50:16 +0000 Subject: [PATCH] task #10501: Can use point of sale with different bank accounts --- htdocs/cashdesk/validation_verif.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/htdocs/cashdesk/validation_verif.php b/htdocs/cashdesk/validation_verif.php index d554f672d1d..0d679c15b84 100644 --- a/htdocs/cashdesk/validation_verif.php +++ b/htdocs/cashdesk/validation_verif.php @@ -1,6 +1,7 @@ * Copyright (C) 2008-2009 Laurent Destailleur + * Copyright (C) 2011 Juanjo Menent * * 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 @@ -27,7 +28,10 @@ require_once(DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php'); $obj_facturation = unserialize($_SESSION['serObjFacturation']); unset ($_SESSION['serObjFacturation']); -switch ( $_GET['action'] ) +$action =GETPOST('action'); +$bankaccountid=GETPOST('cashdeskbank'); + +switch ($action) { default: @@ -246,8 +250,8 @@ switch ( $_GET['action'] ) $paiement_id = $payment->create($user); if ($paiement_id > 0) { - $bankaccountid=0; - if ( $obj_facturation->mode_reglement() == 'ESP' ) + + /*if ( $obj_facturation->mode_reglement() == 'ESP' ) { $bankaccountid=$conf_fkaccount_cash; } @@ -258,7 +262,7 @@ switch ( $_GET['action'] ) if ( $obj_facturation->mode_reglement() == 'CB' ) { $bankaccountid=$conf_fkaccount_cb; - } + }*/ if (! $error) {