agritheory / check_run

Payables utility for ERPNext
https://agritheory.com/documentation/check_run/
Other
29 stars 26 forks source link

Print Preview #243

Open agritheory opened 4 months ago

agritheory commented 4 months ago

To do:

image

viralkansodiya commented 4 months ago

@agritheory

can you please explain what should I do in this task?

Screenshot / Selenium test for primary, secondary and summary print view

agritheory commented 4 months ago

@viralkansodiya For this task, I'll move it into its own ticket. It involves adding some dependencies.

agritheory commented 2 months ago

@viralkansodiya I am getting a Content Not Found Error that's coming from one or both of the print formats. Can you take a look at this?

viralkansodiya commented 2 months ago

@agritheory I hope you are testing this print preview PR in version 14

viralkansodiya commented 2 months ago

@viralkansodiya I am getting a Content Not Found Error that's coming from one or both of the print formats. Can you take a look at this?

@agritheory can you send me some more details? or if we can connect on call, so I can fix it quickly.

agritheory commented 2 months ago

@viralkansodiya I was able to solve the content not found issue. Please update the "Example Voucher" print format so that it is sensitive to overflow (secondary print format feature), this is the comma separated list of source documents.

viralkansodiya commented 2 months ago

Screenshot 2024-07-23 101018

@agritheory example voucher is already there in my pull request

HKuz commented 2 months ago

@agritheory this should be close. I wasn't sure what to add for the no-print background image. Latest commits include:

Potentially outstanding:

agritheory commented 1 month ago

Refactored the print format selection to a dynamic link Pagination is still weird, might be the 'page-break' class in check_run.py might be something else. How to we get labels for the form fields in the sidebar

HKuz commented 2 weeks ago

Latest push fixes a couple things, but here are a few observations in testing this:

The latest change with the page break at the end of the print format seems to conform the preview and actual PDF page breaks, but I'm only testing when the Check Run Setting secondary print format field is blank.

HKuz commented 2 weeks ago

Latest push refactors the Example Voucher so if the Secondary Print Format is set in Check Run Settings, then the references are displayed as a comma-separated list. I tweaked the left positions of the date and paid amount, too - they were wrapping or cutting off in the actual PDF render.

Screen shots of the outcome now:

With Secondary Print Format set - multiple people renders okay too.

prev_w_secondary_print_format

Without Secondary Print Format set - fine for one person, more than 12 invoices is pushing the space limit. The preview still has display issues when there are multiple people being paid in the CR, but oddly the PDF render is fine

prev_no_secondary_print_format