Ejemplo n.º 1
0
	def __init__(self, moneyPath, allocationPath, savingsPath):
		setContext()
		self._moneyPath = moneyPath
		self._savingsPath = savingsPath
		# Allocation manager
		self.allocationManager = AllocationManager(allocationPath)
		self._readMoney()
		self._readSavings()
Ejemplo n.º 2
0
	def __init__(self, allocationPath):
		setContext()
		self._allocationPath = allocationPath
		self.allocationMap = dict()
		self.withdrawMenu = Menu()
		self.withdrawMenuList = []
		self._readAllocations()
		self._createWithdrawMenu()
Ejemplo n.º 3
0
	def __init__(self, cat, percent, priority, product=None, savings=None, totalCost=None, isSubAlloc=False):
		# Whether this is a allocation or not
		setContext()
		self._isSubAlloc = isSubAlloc
		self.category = cat
		self.percent = Decimal(percent) / Decimal("100.00")
		self.priority = int(priority)
		self.product = product
		self.savings = None if savings == None else Decimal(savings)
		self.totalCost = None if totalCost == None else Decimal(totalCost)
		# If there are no suballocations then everything goes into extra money 
		self.extraMoney = Decimal("0.00")
		# This is the total accumulated debt
		self.debt = Decimal("0.00")
		# This is the actual debt of a category in terms of overspending on the extra category
		self.debtReg = Decimal("0.00")
		self.subAllocs = []