Adjust In View Sales The Printing Size

0

Hi, I would like to adjust the size of the page when I reprint the receipts in List Sales to 80mm. Which files control this? The actual size is A4 and cutoff the 80mm paper.

Question Resolved For: Simple POS - Point of Sale Made Easy 0 Votes 22 Answers 918 Views
Asked by Ivan 1 year ago

0

Answered by Mian Saleem 1 year ago

Hello,

No, those are the file changed for the print the issue.

Thank you

0

Answered by Ivan 1 year ago

The new code added to these files is this?

<style>
@media print {
html, body, .pos, .modal, .modal-dialog {
min-width: 200px !important;
width: auto !important;
}
}
</style>

0

Answered by Ivan 1 year ago

I use the browser dialog to print.

0

Answered by Mian Saleem 1 year ago

Yes, only style code is added. Thank you

0

Answered by Ivan 1 year ago

The demo site does not work either.

0

Answered by Mian Saleem 1 year ago

Hello,

That is due to table width, table can't shrink more than that so the preview will be like this.

You can set the max-width for table as you like.

Thank you

0

Answered by Ivan 1 year ago

Where do I this? "You can set the max-width for table as you like."

0

Answered by Mian Saleem 1 year ago

Hello,

You can add a class to the table on receipt view file themes/default/views/pos/view.php and then style that class for as you need.

Thank you

0

Answered by Ivan 1 year ago

How much is, do it this change?

0

Answered by Mian Saleem 1 year ago

Hello,

Search for the <table in themes/default/views/pos/view.php and add new class small-table Now in your css

<style>
  @media print {
    html, body, .pos, .modal, .modal-dialog {
      min-width: 200px !important;
      width: auto !important;
    }
    .small-table {
      max-width: 180px; /* change or add rules as you need */
    }
  }
</style>

Thank you

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.