nBill Community nBill Home Page
21/May/2012, 11:42:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Click Here for the nBill home page, or take a tour.  
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Adhoc Invoicing  (Read 1948 times)
kevinsolx
Jr. Member
**
Offline Offline

Posts: 12


View Profile
« on: 29/May/2010, 05:05:22 AM »

I have an Events Registration component which allows payment via PayPal, while I've figured out how to pull the amount to pay, would like to ask how I can create an adhoc invoice everytime such a payment is made (I need proper accounting records for payments). The person paying may or may not be a registered user - if not registered, their details will be input into the events registration component, which I can probably pull out and feed into nBill, only question is how exactly can I do that?

Currently the flow is: view event -> Register for event with name and contact details (not needed for registered users) -> Payment via PayPal -> event component notified of payment -> Successful registration

Ideally the flow will be: View event -> Register for event with name and contact details -> View invoice (under nBill) -> Payment via PayPal -> nBill notified of payment ->  event component notified of payment -> Successful registration

If there is some way to break the original flow and let the event component process the PayPal payment, that would work for me as well. For that case, I will need some code to create the invoice up front, and another to notify nBill of the payment. Thanks for your help in advance! Cheesy
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #1 on: 29/May/2010, 01:20:19 PM »

In nBill 1, there is no way of having another component hand over to nBill for payment then nBill handing back to the original component. In nBill 2, there is a feature that allows this although it has not yet been fully tested nor documented.

In any case, the invoice would need to be created by inserting records in the jos_inv_invoice and jos_inv_invoice_items tables (or jos_nbill_document and jos_nbill_document_items in nBill 2). You could also write code to mark the invoice as paid by adding a record to jos_inv_income (or jos_nbill_transaction and jos_nbill_document_transaction in nBill 2) and setting the paid_in_full flag to 1 on the invoice record.
Logged
greache
Jr. Member
**
Offline Offline

Posts: 9


View Profile
« Reply #2 on: 22/April/2011, 06:45:59 AM »

Did you have any luck with this integration? now that nbill2 is here, is there a working integration with a major event booking system?

David
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!