webERP Forum
Comments in DeliveryDetails.php not displaying properly - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (/forumdisplay.php?fid=1)
+--- Forum: Feature Requests (/forumdisplay.php?fid=5)
+--- Thread: Comments in DeliveryDetails.php not displaying properly (/showthread.php?tid=150)



Comments in DeliveryDetails.php not displaying properly - thomas_lie - 03-05-2012 05:45 PM

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


RE: Comments in DeliveryDetails.php not displaying properly - Exsonqu_Qu - 03-06-2012 05:08 PM

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



RE: Comments in DeliveryDetails.php not displaying properly - thomas_lie - 03-06-2012 07:56 PM

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?


RE: Comments in DeliveryDetails.php not displaying properly - Exsonqu_Qu - 03-07-2012 12:06 AM

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


RE: Comments in DeliveryDetails.php not displaying properly - phil - 03-07-2012 11:41 AM

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


RE: Comments in DeliveryDetails.php not displaying properly - thomas_lie - 03-08-2012 01:10 AM

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)



RE: Comments in DeliveryDetails.php not displaying properly - phil - 03-08-2012 08:54 AM

Can't do it sorry