← All changes
|
includes/Templates/Adapters/Epos_Xml_Output_Adapter.php
+4
-1
1.10.2
→
1.10.21
View file →
| @@ -26,10 +26,13 @@ | ||
| 26 | 26 | $order_number = isset( $receipt_data['order']['number'] ) ? (string) $receipt_data['order']['number'] : ''; |
| 27 | 27 | $total = isset( $receipt_data['totals']['total_incl'] ) ? (float) $receipt_data['totals']['total_incl'] : 0; |
| 28 | 28 | $lines = array( |
| 29 | 29 | '<epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">', |
| 30 | + // ePOS <text> attributes are printer state that persists across jobs, so | |
| 31 | + // start from a known reset and switch emphasis off again explicitly. | |
| 32 | + '<text align="left" em="false" ul="false" reverse="false" dw="false" dh="false"/>', | |
| 30 | 33 | '<text align="center" em="true">' . $this->escape( $store_name ) . "\n" . '</text>', |
| 31 | - '<text align="center">RECEIPT' . "\n" . '</text>', | |
| 34 | + '<text align="center" em="false">RECEIPT' . "\n" . '</text>', | |
| 32 | 35 | '<text align="left">Order #' . $this->escape( $order_number ) . "\n" . '</text>', |
| 33 | 36 | ); |
| 34 | 37 | |
| 35 | 38 | foreach ( $this->line_items( $receipt_data ) as $item ) { |