Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comments in DeliveryDetails.php not displaying properly
03-05-2012, 05:45 PM
Post: #1
Comments in DeliveryDetails.php not displaying properly
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

Thomas Timothy Lie
Bali Open Source Solution, Indonesia
[url=http://www.baliboss.com]http://www.baliboss.com[/url]
Find all posts by this user
Quote this message in a reply
03-06-2012, 05:08 PM
Post: #2
RE: Comments in DeliveryDetails.php not displaying properly
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


Attached File(s)
.php  PDFQuotation.php (Size: 10.02 KB / Downloads: 6)
Find all posts by this user
Quote this message in a reply
03-06-2012, 07:56 PM
Post: #3
RE: Comments in DeliveryDetails.php not displaying properly
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?

Thomas Timothy Lie
Bali Open Source Solution, Indonesia
[url=http://www.baliboss.com]http://www.baliboss.com[/url]
Find all posts by this user
Quote this message in a reply
03-07-2012, 12:06 AM
Post: #4
RE: Comments in DeliveryDetails.php not displaying properly
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
Find all posts by this user
Quote this message in a reply
03-07-2012, 11:41 AM
Post: #5
RE: Comments in DeliveryDetails.php not displaying properly
Will need to add a test for how long the comments are then create another line

Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Visit this user's website Find all posts by this user
Quote this message in a reply
03-08-2012, 01:10 AM
Post: #6
RE: Comments in DeliveryDetails.php not displaying properly
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)

Thomas Timothy Lie
Bali Open Source Solution, Indonesia
[url=http://www.baliboss.com]http://www.baliboss.com[/url]
Find all posts by this user
Quote this message in a reply
03-08-2012, 08:54 AM
Post: #7
RE: Comments in DeliveryDetails.php not displaying properly
Can't do it sorry

Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: