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
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
Responses (4)
-
Accepted Answer
0Hello 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_trenholmmore than a month agoWould you mind walking me through a little bit of the coding? I would appreciate any help in this matter. Thanks so much.
-
-
Accepted Answer
0well, 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. -
Accepted Answer
0Thanks. What is the table name in the DB I should be looking for?-
Germinal Campsmore than a month ago#__invoices_items
-
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »