I need to have the ability to "credit" a customer/account in killbill and apply funds or part thereof to an invoice.
Scenario 1: Customer sends us a cheque payment for x quantity of outstanding invoices, and they either underpay or overpay. The pending credit or balancing owing needs to be considered in the killbill system so that a followup payment can be made to reconcile, or any credit can be applied to a future invoice.
Scenario 2: Customer negotiates with us a settlement (In the event whereby he/she is closing his/her business) and we fake-credit / write off a partial balance owing and receive a payment for the rest to settle the account.
How do I deal with both scenarios in Kill-Bill?
Thanks =)
Scenario 1: Customer sends us a cheque payment for x quantity of outstanding invoices, and they either underpay or overpay. The pending credit or balancing owing needs to be considered in the killbill system so that a followup payment can be made to reconcile, or any credit can be applied to a future invoice.
Scenario 2: Customer negotiates with us a settlement (In the event whereby he/she is closing his/her business) and we fake-credit / write off a partial balance owing and receive a payment for the rest to settle the account.
account = client.getAccount("msoueidane");System.out.println("Account balance is now: "+account.getAccountBalance());
The above code runs without any problem, but what I did not get is that "account.getAccountBalance()" always has the value "null".
I tried the createPayment from the Java client, and I have concluded that a payment is always done against a particular invoice. Is there any way that I can create payments but at the account level?
The thing is, the functionality we're after is as follows:1- 3 invoices are issued for a customer with a positive balance. (invoice 1: $100, invoice 2: $150, invoice 3: $220)2- We receive a cheque with an amount that's less than the account's balance.3- We would like to call a method with the amount, and expect it to work as follows:The sum in the cheque is $300, so the method would randomly iterate over the invoices, subtracting the invoice's balance (Invoice 1 would now have a balance of 0, Invoice 2 would now have a balance of 0, and invoice 3 would have a balance of $170)
Pierre, I tried what you have suggested and it did not work. I created two invoices with a balance = 70 USD each. I then tried to create a payment for the first one with an amount equal to 120 USD (Expecting one invoice to be closed, and the other to still have 20 USD in its balance), but the following exception was thrown:
com.ning.billing.client.KillBillClientException: Payment amount requested for invoice c4754067-bd73-4f2a-87d7-31c0573e6031 is greater than invoice balance [120.000000/70.000000]
Can we request this feature to be added in a future release of Kill-Bill? If you don't see it happening please let us know so we could build a layer on top of Kill-Bill to do this work for us. We just need to know if this is work to be done on your end before developing our own logic.
This is the business that I was hoping that Kill-Bill would be able to do on my behalf.
--To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/CAKXgekqM16YNtEcaUC__eBy5-LOFcTiLZp8g6e81RZzidm2b-Q%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.