-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransaction.h
More file actions
30 lines (24 loc) · 822 Bytes
/
Transaction.h
File metadata and controls
30 lines (24 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// Transaction.h
// Allowance
//
// Created by Pablo Collins on 6/13/10.
//
#import <CoreData/CoreData.h>
@class Account;
@interface Transaction : NSManagedObject {
}
@property (nonatomic, strong) NSNumber *amount;
@property (nonatomic, strong) NSString *notes;
@property (nonatomic, strong) NSString *tag;
@property (nonatomic, strong) NSNumber *sourceAccountBalance;
@property (nonatomic, strong) NSNumber *targetAccountBalance;
@property (nonatomic, strong) NSDate *transactionDate;
@property (nonatomic, strong) Account *sourceAccount;
@property (nonatomic, strong) Account *targetAccount;
+ (NSArray *)historyForAccount:(Account *)acct;
+ (Transaction *)lastAllowancePaymentForAccount:(Account *)acct;
- (void)updateAccounts;
- (NSString *)formattedAmount;
- (NSString *)currentBalanceFormatted;
@end