1. Jason R. Coombs
  2. jaraco.financial

Commits

Jason R. Coombs  committed 0697930

Don't account for advances with simple associations

  • Participants
  • Parent commits 5b0df8b
  • Branches default

Comments (0)

Files changed (1)

File jaraco/financial/merchant.py

View file
 		return {
 			'096367': 'advance',
 			'096403': 'residual',
-			'096509': 'simple',
+			'096590': 'simple',
 		}[self.association_number]
 
 class Transaction(object):
 
 	def account_for_advances(self, merchant, agent_lgr, date, amount):
 		"account for advances"
+
+		if merchant.association_name == 'simple':
+			# we don't account for advances with simple merchant associations
+			return
+
 		# first add the $400 advance if it's not already present
 		advance_descriptor = "Residual Advance : " + unicode(merchant)
 		add_advance = is_empty(