webERP Forum

Full Version: Comments in DeliveryDetails.php not displaying properly
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

When I insert multiple lines comments in DeliveryDetails.php and choosing Quotation.

The resulting quotation prints whole lines as one line with the character of \r\n

So for example

Terms & Conditions:
*aaaaa
*bbbbb
*cccccc

it will be shown like this in the pdf
Terms & Conditions: \r\n *aaaaa \r\n *bbbbb \r\n *cccccc

How can I fix this?

Thanks
Hi, Thomas:

Thanks for your report. Please refere to the attached file.

Best regards!

Exson

(03-05-2012 05:45 PM)thomas_lie Wrote: [ -> ]Hi guys,

When I insert multiple lines comments in DeliveryDetails.php and choosing Quotation.

The resulting quotation prints whole lines as one line with the character of \r\n

So for example

Terms & Conditions:
*aaaaa
*bbbbb
*cccccc

it will be shown like this in the pdf
Terms & Conditions: \r\n *aaaaa \r\n *bbbbb \r\n *cccccc

How can I fix this?

Thanks
Hi Exson,

Thanks for your assistance

The \r\n is not appearing now, however, the multiple lines still becomes one whole line
so it's like

Terms & Conditions: *aaaaa *bbbbb *cccccc

instead of
inserting newlines...

is it supposed to be one line only?
Hi, James,

I just remove those \r\n in PDF file. If it's over the length of one line, there will be another line.
I don't know if we should follow the carriage return.

Best regards!

Exson
Will need to add a test for how long the comments are then create another line
Hi Phil,

thanks for your valuable input.

Actually, I need to add a lot of text (below is just dummy example) to the bottom of every quotation.... the output result has to be exact with new lines, carriage return in its place.....

How can I actually do that from webERP?

Quote:Optional:
* Entirely web-based
* Runs on any web-server that can accommodate PHP - can use an ISP instead of having/maintaining own server
* Minimal use of javascript for maximum compatibility with all web-browsers and web enabled devices. Some small amounts used to improve error-trapping and user interactivity.


Terms & Conditions
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or



Kind Regards, Sales Executive Approved By



Company Name (Full Name)
Can't do it sorry
Reference URL's