#!/usr/bin/env python3 # # Cash_Drawer.py # Copyright 2009, Cody A. Taylor # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. """Keep track of money in a Cash Register """ __all__ = [] __author__ = "Cody A. Taylor ( codemister99@yahoo.com )" __version__ = "0.1 Alpha" import sys from optparse import OptionParser from CodeLIB import get_int, get_ans from strict_type import type_check @type_check def main() -> int: return 0 class Department(object): pass class Totals(object): def __init__(self, ): class Transaction(object): """Base logging of Sale and Void """ @type_check def __init__(self, verboseness : int): self.verboseness = verboseness class Sale(Transaction): pass #Use for Totals.__add__(self, other) class Void(Transaction): pass #Use for Totals.__sub__(self, other) @type_check def load(file : str) -> bool: return True @type_check def save(file : str) -> bool: return True if __name__ == "__main__": sys.exit(main())