throws ParseException {
this(id, Globals.parseLedgerDate(dateString), description);
}
- public LedgerTransaction(Integer id, Date date, String description) {
- this.profile = Data.profile.get().getUuid();
+ public LedgerTransaction(Integer id, Date date, String description, MobileLedgerProfile profile) {
+ this.profile = profile.getUuid();
this.id = id;
this.date = date;
this.description = description;
this.dataHash = null;
dataLoaded = false;
}
+ public LedgerTransaction(Integer id, Date date, String description) {
+ this(id, date, description, Data.profile.get());
+ }
public LedgerTransaction(Date date, String description) {
this(null, date, description);
}
Date date;
if (dateString.isEmpty()) date = new Date();
else date = Globals.parseLedgerDate(dateString);
- LedgerTransaction tr = new LedgerTransaction(date, tvDescription.getText().toString());
+ LedgerTransaction tr = new LedgerTransaction(null, date, tvDescription.getText().toString(), mProfile);
TableLayout table = findViewById(R.id.new_transaction_accounts_table);
LedgerTransactionAccount emptyAmountAccount = null;