Changeset 193cceb
- Timestamp:
- Feb 7, 2010, 3:27:17 AM (15 years ago)
- Branches:
- master, client
- Children:
- 9447ed4
- Parents:
- 7df1c50
- git-author:
- Alex Dehnert <adehnert@…> (02/07/10 03:27:17)
- git-committer:
- Alex Dehnert <adehnert@…> (02/07/10 03:27:17)
- Location:
- remit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
remit/finance_core/models.py
r1d4c89e r193cceb 179 179 180 180 181 LAYER_BUDGET = 10 182 LAYER_ALLOCATION = 20 183 LAYER_EXPENDITURE = 30 184 LAYER_CLOSEOUT = 40 181 185 layers=( 182 ( 10,'budget'),183 ( 20,'allocation'),184 ( 30, 'expenditure'),185 ( 40,'closeout'),186 (LAYER_BUDGET, 'budget'), 187 (LAYER_ALLOCATION, 'allocation'), 188 (LAYER_EXPENDITURE, 'expenditure'), 189 (LAYER_CLOSEOUT, 'closeout'), 186 190 ) 187 191 def get_layer_by_name(name): -
remit/vouchers/models.py
r3e79308 r193cceb 1 1 from django.db import models 2 2 import settings 3 import finance_core 3 4 from finance_core.models import BudgetArea, BudgetTerm 4 5 … … 61 62 voucher.gl = self.expense_area.get_account_number() 62 63 voucher.save() 64 finance_core.models.make_transfer( 65 self.name, 66 self.amount, 67 finance_core.models.LAYER_EXPENDITURE, 68 self.budget_term, 69 self.budget_area, 70 self.expense_area, 71 self.description, 72 ) 63 73 self.approval_status = 1 64 74 self.approval_time = datetime.datetime.now()
Note: See TracChangeset
for help on using the changeset viewer.