undefined index when creating custom quote template
Hi all,
I was trying to follow the wiki on creating a custom quote. I've gone through it a number of times and it always results in the following error:
Notice: Undefined index: QUOTE_TERMS in /var/www/sugar/modules/Quotes/layouts/Terms.php on line 356
Warning: Cannot modify header information - headers already sent by (output started at /var/www/sugar/modules/Quotes/layouts/Terms.php:356) in /var/www/sugar/include/pdf/class.pdf.php on line 1920
The second line is repeated a number of times.
Line 356 is where I entered this line:
$pdf->ezText($mod_strings['QUOTE_TERMS']);
One question I have that's not real clear is if you already have an entry in en_us.lang.php where do you add the new string?
Thw wiki states that you do this
$mod_strings['QUOTE_TERMS'] = "\n\n\n\nPayment of invoices is due net 20 days unless approved otherwise. Sums not paid within 30 days from invoice date will incur interest at 15% per annum from due date until paid. \n\nAuthorized Signature:____________________________________ Date: ___________________";
But if the file exists there is an array present. Do I do like it is below? Or do I create a new section for $mod_strings. I tried both and neither fixed it but maybe I need to do something else in conjunction.
$mod_strings = array (
'value' => 'Solution Relate',
'LBL_SOLUTION_RELATE' => 'Solution Relate',
'QUOTE_TERMS' => '\n\n\n\nPayment of invoices is due net 20 days unless approved otherwise. Sums not paid within 30 days from invoice date will incur interest at 15% per annum from due date until paid. \n\nAuthorized Signature:____________________________________ Date: ___________________',
);
Thanks very much for whatever help anyone can offer on this.
Jerry Way
Business Process Administrator
Sugar 6.1.4 Professional
(Testing 6.1.2)
LAMP on Centos 5
PHP 5
MySQL 5
Apache 2.2
Bookmarks