public static void removeLocalData(Context ctx) { Data.Receipt.clear(ctx); CloseCash.closeCashNoMatterWhat(ctx); CashArchive.clear(ctx); }
public static boolean hasCashOpened(Context ctx) { return (Data.Receipt.getReceipts(ctx).size() > 0) || Data.Cash.dirty; }