final receipt update

This commit is contained in:
EugeneTes
2026-01-22 11:09:38 +01:00
parent 9fbc61dede
commit fcb192b797
31 changed files with 2679 additions and 655 deletions

View File

@@ -624,6 +624,54 @@ Create tabular layouts with fixed-width columns.
@endrow
```
### Row Styles
Apply styles to an entire row by adding style names after `@row`:
```
@row bold
|width|content|width|content
@endrow
```
Multiple styles can be combined with commas:
```
@row bold, big
|width|content|width|content
@endrow
```
#### Available Row Styles
| Style | Description |
|-------|-------------|
| `bold` | Bold text for entire row |
| `big` | Double-width and double-height |
| `tall` | Double-height only |
| `red` | Red color (if printer supports) |
| `spacing:N` | Set line spacing to N |
#### Row Style Examples
```
@row bold
|30|{Name}|10,right|{Price:F2}
@endrow
```
```
@row bold, big
|15|TOTAL|9,right|{Total:F2}
@endrow
```
```
@row red, bold
|40|*** WARNING ***
@endrow
```
### Column Syntax
```
@@ -870,6 +918,7 @@ Templates are assigned to receipt types and printer profiles in `assignments.jso
| `@end` | End block |
| `@foreach var in collection` | Start loop |
| `@row` | Start row |
| `@row style1, style2` | Start row with styles |
| `@endrow` | End row |
| `\|width\|content` | Column definition |
| `\|width,align\|content` | Column with alignment |