0
How can I have the description field of the item on the invoice appear on the My Invoices page?

I've attached a screenshot of what I'm looking for with the name of the customer blacked out.

This is one of the final adjustments that I've been able to make to your wonderful component.

So, I'm trying to be clear I've explained myself well enough.

I have a description of all the the items in each invoice listed, and this is attached to each invoice (well, this is your coding, my mine) :)

I'm now trying to pull the desc field in the invoices so they can appear on the My Invoices summary page in order to give snapshot of the description of the item purchased. This is extremely value as I'm using the site as a daycare invoicing system and using the description field to populate the weeks of child care. Once it is complete, I'll forward to you to have a look-see.

Thanks again,

Ken
Attachments:
Responses (4)
  • Accepted Answer

    Monday, April 21 2014, 09:52 AM - #Permalink
    0
    Hello Ken,

    you can't... basically, because an invoice can have many items! do you know what I mean? "desc" is not a property of the object "invoice", but actually of the object "item inside invoice"... so it's not present on that page. a little bit of custom coding would be necessary to retrieve that info and display it..
    • ken_trenholm
      more than a month ago
      Would you mind walking me through a little bit of the coding? I would appreciate any help in this matter. Thanks so much.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, April 22 2014, 09:10 AM - #Permalink
    0
    well, but you're a coder.. aren't you?
    what you need to do is to retrieve this information in the "invoices.php" model file (frontned), from the DB, for each invoice line (you will want the first item on the invoice), and assign it to the invoice array, then in the view (/views/invoices/tmpl/default.php) you need to display this info.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, April 22 2014, 10:38 AM - #Permalink
    0
    Thanks. What is the table name in the DB I should be looking for?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 25 2014, 03:19 PM - #Permalink
    0
    Thanks. Just sat down with your DB table and coded / formatted the baby in about 20 mins. Thanks again for your help and great component. Starting to look seamless.
    The reply is currently minimized Show
Your Reply