Question: Adjust In View Sales The Printing Size

Adjust In View Sales The Printing Size

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.

I

Ivan

Asked
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.
  • MS

    Mian Saleem

    Answered
    Hello,

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

    Thank you
  • I

    Ivan

    Answered
    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>
  • I

    Ivan

    Answered
    I use the browser dialog to print.
  • MS

    Mian Saleem

    Answered
    Yes, only style code is added. Thank you
  • I

    Ivan

    Answered
    The demo site does not work either.
  • MS

    Mian Saleem

    Answered
    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
  • I

    Ivan

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

    Mian Saleem

    Answered
    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
  • I

    Ivan

    Answered
    How much is, do it this change?
  • MS

    Mian Saleem

    Answered
    Hello,

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

    ```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
  • Login to Reply