0
Hi,
I would to know if I can modify the invoice item description to textarea? I need to put in a length description there. Please advis.
Thank you.
I would to know if I can modify the invoice item description to textarea? I need to put in a length description there. Please advis.
Thank you.
Responses (7)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0hi germi, thanks so much for your reply. it worked ok after modifying form.php. but i can't find what is change in items.js as i notice the function is new_song()?
another question - when the product desc and notes are shown on the invoice template, the line breaks are all gone, resulting in 1 line. how can i change that? -
Accepted Answer
0yes, that's the function.
after this:
newCell = newRow.insertCell(5);
some new content is added, you need to replace the input for a textarea.
2) that's because no HTML is allowed in here.
what you would need to do in this case is open /administrator/components/com_invoices/models/invoice.php and find the store() function
after this:
if(!$data) $data = JRequest::get( 'post' );
you need to add this:
$data['notes'] = JRequest::getVar('notes', '', 'post', 'string', JREQUEST_ALLOWRAW);
to allow HTML in that field. -
Accepted Answer
-
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 »