frappe / print_designer

Visual print designer for Frappe / ERPNext
GNU Affero General Public License v3.0
179 stars 101 forks source link

Difference in Preview and Actual Print #273

Open mrkeshwani opened 1 month ago

mrkeshwani commented 1 month ago

Hello,

In the item code column item name appears as "Item Code: Item Name" in the form and the preview in the print designer. However in actual print only item code appears. See the image below:

Screenshot (186) Screenshot (187)

Preview and actual print (pdf) should be the same. In the preview print designer shows the field as displayed in the form, however in the print, it shows only the "Item Code" field.

I am not an IT professional or coder.

Thanks Mahesh Keshwani

PhantomKunai commented 1 month ago

This is an issue I noticed as well. Preview renders any link formatters in the JS of the doctype but the jinja does not consider that. Its just a matter of misrepresentation in print designer preview.

aceIsHere commented 3 weeks ago

Setup ERPNext: v15.26.1 Print Designer: v1.2.0

I think this issue is not limited to scope of designer preview, it still shows the same from the print view of a doctype form. Further, on printing it to pdf it still omits the name of the item, just includes its code, which however is not the case while in the designer view.

Further my issue (https://github.com/frappe/print_designer/issues/277) exceeds this and has a misalignment with the margins of the page (I have already set up the print setting both in designer and print settings panel to A4)

image

maharshivpatel commented 2 weeks ago

@mrkeshwani formatting is handled by framework. will see what can be done though.