Contacts and Joomla Users

0
Hi,

I came across you product in place of nbill which caused me a few issues, I wanted a simple invoicing product such as this, which from forst look - looks like what I am after, however I have a little issue regarding 'contacts'.

I understand the method from creating contacts per joomla user or new user, but am concerned over yet another contact table being created when it does appear to be required.

I have my own component which after processing a transaction, creates an invoices automatically, why do I have to then bind the invoice to a user in a seperate table, surely it makes sense to link to that of the exisiting joomla/community builder account, is there a simple why to remove the feature of having a seperate table. I don't mind recoding this to solve the problem but that just adds another thing to look after.

I havent looked at the coding as yet - any pointers??

Regards

Phil
Responses (5)
  • Accepted Answer

    Thursday, August 23 2012, 09:14 AM - #Permalink
    0
    hello Phil,

    I'm not sure to understand what you mean exactly. do you mean you don't need the J! Invoices contact table? in our product, every invoice belongs to a J!invoices contact, which contains basic contact info and, most importantly, it's linked to a joomla (or community builder) user.

    what is what you don't need?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 23 2012, 10:11 AM - #Permalink
    0
    Sorry for not being clearer:

    I understand the relationship between the invoice an contact tables, what I want to do is simple apply the invoices to a specific user which will always exist, so there is no need to work with new users, so thereforw it makes sense to link the invoices to that in the users or CB table(s) as opposed to having a seperate table.

    At the end of the day its simple inner joins...

    I've looked through the code and seems simple enough to sort myself, but I dant want to start hacking around with it.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 23 2012, 12:36 PM - #Permalink
    0
    ok, I understand what you mean.. you want to link invoice to joomla contact instead of invoices contact
    the way it is:

    invoice -> invoice contact -> joomla user

    the way you want:

    invoice -> joomla (or CB) user

    well as you say this is not directly possible... you would need some custom coding for that. the thing is in the invoice template the contact info is used (name, company, address...) while if you were using only joomla users you won't have any info (just the name, that's all.. and the email)
    The reply is currently minimized Show
  • Accepted Answer

    Friday, August 24 2012, 07:21 AM - #Permalink
    0
    Hi thats a shame - i think i've cracked it, now can extract from CB fields to populate invoices, bit of a nightmare but almost sorted.

    Just one quick question though, in the 'my invoices' I am unable to see where the PDF link is provided - so my customer(s) can download there invoices.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 25 2012, 08:38 AM - #Permalink
    0
    good job :) it's in the model file mainly, /models/invoice.php

    there is no PDF button on that view (or any other). we are currently working on 2 new options: upload a suplemetary file (like PDF) and also autogenerating a PDF from the HTML invoice. these will be out very soon! I'll let you know.
    The reply is currently minimized Show
Your Reply