You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: