Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 7:30 am
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: "Add new Payment" in v1.2.1 Doesn't input anythin
PostPosted: Mon Jun 26, 2006 12:46 am 
Offline

Joined: Tue Jun 20, 2006 3:23 pm
Posts: 153
"Add new Payment" in v1.2.1 Doesn't work/input . It doesnt add anything.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 28, 2006 3:26 am 
Offline
User avatar

Joined: Sun Apr 02, 2006 5:29 am
Posts: 97
I having the same problem when I add payment. I get "THERE IS NO PAYMENT CREATED!" this is on version 1.2.1

Also when a create a charge , I see the charge that I just create but the card is balance does not decrease..

Any help on this is greatly appreciated.

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 28, 2006 9:16 am 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
you might be able to fix this will this patch:


Index: lib/Class.Table.php
===================================================================
--- lib/Class.Table.php (revision 582)
+++ lib/Class.Table.php (working copy)
@@ -5,7 +5,10 @@
var $fields = "*"; // "id", "name", etc..
var $table = "";
var $errstr = "";
- var $debug_st = 0;
+ var $debug_st = 0;
+ var $debug_stop_add = 0;
+ var $debug_stop_update = 0;
+ var $debug_stop_delete = 0;
var $sp = "`"; //bound_caract

/* CONSTRUCTOR */
@@ -156,6 +159,7 @@

$QUERY = "INSERT INTO $sp".$this -> table."$sp (".$this -> fields.") values (".trim ($value).")";
if ($this -> debug_st) echo "<br>".$QUERY;
+ if ($this -> debug_stop_add){ echo "<br>".$QUERY; exit(); }

$res = $DBHandle -> query($QUERY);

@@ -207,6 +211,7 @@

$QUERY = "UPDATE $sp".$this -> table."$sp SET ".trim ($param_update)." WHERE ".trim ($clause);
if ($this -> debug_st) echo "<br>".$QUERY;
+ if ($this -> debug_stop_update){ echo "<br>".$QUERY; exit(); }

$res = $DBHandle -> query($QUERY);

@@ -234,6 +239,7 @@

$QUERY = "DELETE FROM $sp".$this -> table."$sp WHERE (".trim ($clause).")";
if ($this -> debug_st) echo "<br>".$QUERY;
+ if ($this -> debug_stop_delete){ echo "<br>".$QUERY; exit(); }

$res = $DBHandle -> query($QUERY);

Index: Public/form_data/FG_var_payment.inc
===================================================================
--- Public/form_data/FG_var_payment.inc (revision 582)
+++ Public/form_data/FG_var_payment.inc (working copy)
@@ -3,8 +3,13 @@

getpost_ifset(array('id', 'card_id', 'date', 'payment'));

-$HD_Form = new FormHandler("cc_logpayment LEFT JOIN cc_card ON cc_card.id=card_id","payment");

+if (!isset($form_action) || $form_action=="list"){
+ $HD_Form = new FormHandler("cc_logpayment LEFT JOIN cc_card ON cc_card.id=card_id","payment");
+}else{
+ $HD_Form = new FormHandler("cc_logpayment","payment");
+}
+
$HD_Form -> FG_TABLE_ID = 'cc_logpayment.id';

$HD_Form -> FG_DEBUG = 0;


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 28, 2006 11:57 am 
Offline

Joined: Tue Jun 20, 2006 3:23 pm
Posts: 153
Now Add Payment work in v1.2.1.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group