When trying to print receipts using printRasterReceipt, I found that iOS ignores cutReceipt: false, cutting each time.
Looking into StarPRINT.m, I found this line in several functions making use of the RasterObj and the cutReceipt field:
BOOL cutReceipt = ([printObj valueForKey:@"cutReceipt"]) ? YES : NO;
To fix the issue, I modified them:
BOOL cutReceipt = ([[printObj objectForKey:@"cutReceipt"]boolValue]) ? YES : NO;
This changes the way the data sent to the native side is cast and compared.
I had the same issue. Your fix works for me. Thnx! I've created a pull request to implement your solution in the next release. Hopefully the owner of this repo is still moderating.
Greetings,
When trying to print receipts using printRasterReceipt, I found that iOS ignores cutReceipt: false, cutting each time.
Looking into StarPRINT.m, I found this line in several functions making use of the RasterObj and the cutReceipt field:
BOOL cutReceipt = ([printObj valueForKey:@"cutReceipt"]) ? YES : NO;
To fix the issue, I modified them:
BOOL cutReceipt = ([[printObj objectForKey:@"cutReceipt"]boolValue]) ? YES : NO;
This changes the way the data sent to the native side is cast and compared.
Does anyone else have this issue?