File tree Expand file tree Collapse file tree 3 files changed +28
-27
lines changed Expand file tree Collapse file tree 3 files changed +28
-27
lines changed Original file line number Diff line number Diff line change @@ -358,8 +358,10 @@ export default class PaymentContainer extends React.Component {
358
358
TinyPOS . bufferedText (
359
359
`${
360
360
this . props . printerStore . companySettings . length > 0
361
- ? this . props . printerStore . companySettings [ 0 ] . name ? this . props . printerStore . companySettings [ 0 ] . name . toString ( ) :
362
- "Bai Web and Mobile Lab" : "Bai Web and Mobile Lab"
361
+ ? this . props . printerStore . companySettings [ 0 ] . name
362
+ ? this . props . printerStore . companySettings [ 0 ] . name . toString ( )
363
+ : "Bai Web and Mobile Lab"
364
+ : "Bai Web and Mobile Lab"
363
365
} `,
364
366
{ align : "center" , size : "doubleheight" } ,
365
367
true ,
@@ -441,24 +443,25 @@ export default class PaymentContainer extends React.Component {
441
443
) ,
442
444
) ,
443
445
) ;
444
- writePromises . push (
445
- BluetoothSerial . write (
446
- TinyPOS . bufferedText (
447
- "Mode of payment: " + this . props . stateStore . payment_state [ 0 ] . selected ,
448
- { align : "left" , size : "normal" } ,
449
- true ,
450
- ) ,
451
- ) ,
452
- ) ;
453
- writePromises . push (
454
- BluetoothSerial . write (
455
- TinyPOS . bufferedText (
456
- "================================" ,
457
- { size : "normal" } ,
458
- true ,
459
- ) ,
460
- ) ,
461
- ) ;
446
+ writePromises . push (
447
+ BluetoothSerial . write (
448
+ TinyPOS . bufferedText (
449
+ "Mode of payment: " +
450
+ this . props . stateStore . payment_state [ 0 ] . selected ,
451
+ { align : "left" , size : "normal" } ,
452
+ true ,
453
+ ) ,
454
+ ) ,
455
+ ) ;
456
+ writePromises . push (
457
+ BluetoothSerial . write (
458
+ TinyPOS . bufferedText (
459
+ "================================" ,
460
+ { size : "normal" } ,
461
+ true ,
462
+ ) ,
463
+ ) ,
464
+ ) ;
462
465
writePromises . push (
463
466
BluetoothSerial . write (
464
467
TinyPOS . bufferedText (
Original file line number Diff line number Diff line change @@ -110,13 +110,12 @@ export default class SalesContainer extends React.Component {
110
110
const { setReceiptLine } = this . props . receiptStore ;
111
111
const { defaultReceipt } = this . props . receiptStore ;
112
112
const { isStackItem } = this . props . stateStore ;
113
- let line = ""
114
- if ( item . category !== "No Category" ) {
115
- const categoryObj = this . props . categoryStore . find ( item . category ) ;
116
- line = createReceiptLine ( item , categoryObj . _55 . name ) ;
113
+ let line = "" ;
114
+ if ( item . category !== "No Category" ) {
115
+ const categoryObj = this . props . categoryStore . find ( item . category ) ;
116
+ line = createReceiptLine ( item , categoryObj . _55 . name ) ;
117
117
} else {
118
- line = createReceiptLine ( item , item . category ) ;
119
-
118
+ line = createReceiptLine ( item , item . category ) ;
120
119
}
121
120
setReceiptLine ( line ) ;
122
121
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ const StateStore = types
52
52
53
53
// Default Customer
54
54
useDefaultCustomer : types . optional ( types . boolean , false ) ,
55
-
56
55
} )
57
56
. views ( self => ( {
58
57
get queueOrigin ( ) {
You can’t perform that action at this time.
0 commit comments