transactions for counter
This commit is contained in:
@@ -121,7 +121,12 @@ public class TransactionService {
|
||||
if (accountBalance == null) {
|
||||
accountBalance = BigDecimal.ZERO;
|
||||
}
|
||||
if (accountBalance.compareTo(BigDecimal.ZERO) < 0 && !Account.Skarbiec.toString().equals(item.getUserAccount().getName())) {
|
||||
if (
|
||||
accountBalance.compareTo(BigDecimal.ZERO) < 0 &&
|
||||
!Account.Skarbiec.toString().equals(item.getUserAccount().getName()) &&
|
||||
!Account.Boisko.toString().equals(item.getUserAccount().getName()) &&
|
||||
!Account.Counter.toString().equals(item.getUserAccount().getName())
|
||||
) {
|
||||
TransactionItem newItem = new TransactionItem();
|
||||
newItem.setAmount(accountBalance.negate());
|
||||
newItem.setTransaction(newTransaction);
|
||||
|
||||
Reference in New Issue
Block a user