04/02/2021 Buttons Cash Register: flexible positioning and sizing with drag and drop |
Scroll Prev Top Next More |
Admin with level 80 are able to move buttons and resize (via blue box, double click for reset) buttons with the mouse. Additional there are different general settings with regard to button positioning. The main bill area can be adjusted in size and moved to the left to get space for buttons right to it.
In addition to the standard button settings, there are some new configuration options:
Similar to PMS2 there are 20 main button (01-20) that can be joined by 3 additional buttons:
Top right: 21-40
Bottom left: 41-50, 71-80
Bottom right: 81-99 and 60
Buttons Default Position:
If only the main button is configured, the buttons are shown as ‘big’. If at least one of the three additional buttons is configured, buttons are shown as ‘small’ (group of 4 buttons). Only the top button level/page counts. If there are subpages or frequent changes, the default layout isn’t ideal because it could change the visual experience unpredictable.
Buttons Position by Configuration (Default value s_cash/cmdstyle):
Then the html group of 4 vs. a single large button is no longer depended on the configuration of each of the 20 main buttons of level/page 1. Instead it’s defined by configuration. There are two values (big or small) separated by comma without blanks. This ensures consistency and avoids problems if new groups of 4 are defined or removed of level 1.
Example:
big,big
big,small
small,small
small,big
Recommendation: set similar to usage in PMS2. Then re-position buttons and keep the button order more or less.
Buttons Absolute Positioning:
As a fully different way buttons can be positioned absolutely. This involves quite a bit of work because all buttons need to be positioned at first. The configuration value would be ‘free,1’. Then all 80 buttons are positioned absolutely to the upper, left corner (position 0/0). Be cautious with buttons below or right to the invoice area because of zoom effects.
Alternatively there is ‘free,2’. Then only the first set (12 main or 48 of the total buttons) are positioned to the upper, left corner. The remaining 8 main buttons (respectively 32 buttons) are positioned below the invoice area left side of the form. Then they have got a better anchor to stay below or right to the invoice.
Width Invoice Area:
Default value: s_cash/gridwidth e.g. 2,2,8 (default 2,0,10 except if migrated differently from PMS2).
--> 12 = full width. Less than 12 creates space right to the invoice area e.g. 2,1,6