Invoice Printing Question

  • Posts: 38
  • Thank you received: 0
13 years 6 months ago #16086

I've noticed when I print invoices, the system appears to be automatically inserting more white space between item number 15 and 16 (I assume to manage the page break).

I changed my invoices and removed a lot of extra stuff at the top moving this extra space up.

Now when I print work orders, one of the products is cut off or in half and didn't print correctly. Is there a way to fix this?

--Joel

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #16096

HikaShop does not handle the printing but just tells the browser to print the page of the invoice. What you could do though is to use the HTML tag below in order to tell to the browser to start a new page :
<div style="page-break-after:always"></div>

Please Log in or Create an account to join the conversation.

  • Posts: 38
  • Thank you received: 0
13 years 6 months ago #16100

Will this work in the loop of listing the order to be printed? The problem I'm having is if there is an order of 14 products, it prints fine. If there are 15, it prints ok as well. But if someone orders 16 products, it cuts the 16th product in half and it displays some of the product information on one page and some of it on the next.

Remember I added the bar codes to the invoices? It cuts those in half as well...

--Joel

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #16102

Why not add a small check in your foreach of products ? You could count the number of products and when reaching the 16th, you would close the table, add that HTML tag and open a new table before starting the display of the product.

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum