Skip to content

Commit

Permalink
Merge pull request #225 from eurofurence/issue-224-camtv8-bugfix
Browse files Browse the repository at this point in the history
set all fields when creating new tx
  • Loading branch information
Jumpy-Squirrel authored Feb 4, 2025
2 parents 60503f5 + 9fbb1b8 commit 3aa8abe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public void processBooking() {
protocol[4] = escape(attendee.nickname);

transaction = new Transaction(); // new transaction as fallback
transaction.debitorId = value;
transaction.transactionType = Transaction.TransactionType.PAYMENT.getValue();
transaction.method = Transaction.Method.TRANSFER.getValue();
protocol[5] = "new tx";
Expand All @@ -231,10 +232,11 @@ public void processBooking() {
}
});

// if existing, update to valid
// if existing, update to valid, otherwise create as valid directly
transaction.status = Transaction.Status.VALID.getValue();
transaction.amount.grossCent = entry.amount;
transaction.amount.currency = "EUR";
transaction.amount.vatRatePercent = 19.0d;
transaction.comment = entry.debitorAccount + " " + String.join(" ", entry.information);
transaction.effectiveDate = entry.valuationDate;

Expand Down

0 comments on commit 3aa8abe

Please sign in to comment.