Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 1:01 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: "Billing" --> "Add new payment" oddi
PostPosted: Sun Dec 03, 2006 7:52 pm 
Offline

Joined: Sun Dec 03, 2006 10:40 am
Posts: 10
LOG: statement: set datestyle='ISO'
LOG: statement: INSERT INTO cc_logpayment (card_id, date, payment) values ('1', '2006-12-03 14:48:51', '111')
LOG: statement: SELECT cc_logpayment.id FROM cc_logpayment WHERE oid='32784'
LOG: statement: select oid,typname from pg_type
LOG: statement: set datestyle='ISO'
LOG: statement: SELECT username, date, payment, cc_logpayment.id FROM cc_logpayment LEFT JOIN cc_card ON cc_card.id=card_id ORDER BY id ASC LIMIT 10 OFFSET 0
LOG: statement: select oid,typname from pg_type
LOG: statement: SELECT count(*) FROM cc_logpayment LEFT JOIN cc_card ON cc_card.id=card_id

I enabled logging for postgresql, the trace above is "billing -> add new payment ... I added 111 roubles to card number 1, only table cc_logpayment was affected by such procedure, actual balance of the card was unchanged however.

Is actual balance supposed to be changed right after billing -> add new payment, or some other action should be done in order to achive that ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 12:46 am 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
no actually adding a payment, it's more to keep an history of the payment ur customer made, so it doesn't affect the user balance.
I know this is bit confusing for some of you, so we will change that by adding a check box to set if you want or not change the balance.

Rgds, Areski


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 18, 2007 11:35 pm 
Offline

Joined: Thu Nov 02, 2006 5:04 pm
Posts: 12
Hi areski, just found this post from yours.

Could you elaborate a bit about the add payment and refill model??

the checkbox you' re thinking about would refill the credit at the add payment process??

we can help with that, but just need to make sure that we understand the whole process so please give us some enlightment...

Thans a Lot.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 19, 2007 4:02 am 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
Use refill to add to the "balance"

Use "add payment" to keep a record of the payment made

payment will not modify the balance

So first "refill" the card then "add payment"

The idea of a check box would imply:
Balance = balance + payment

if you did not check the box payment would continue to have no impact on balance and you will have to continue using "refill" to increase the balance

By providing the check box option you would be able to modify the balance via refill or payment actions


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 27, 2007 6:01 pm 
Offline

Joined: Thu Nov 02, 2006 5:04 pm
Posts: 12
thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 03, 2007 7:43 am 
Offline

Joined: Thu Nov 02, 2006 5:04 pm
Posts: 12
ok i'm working on this checkbox, and insted of making an horrible hack i want to use as much as i can the a2b classes..

i want to create the checkbox, if it's checked it would take the payment value and update the credit for the specified card.

but i wasn't able to put a checkbox at the form.. so any hints, piece of code or anything that would send me to the right path would be welcomed!!

thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group