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);
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
</button>
|
||||
</router-link>
|
||||
<router-link
|
||||
v-if="transaction.id"
|
||||
v-if="transaction.id && transaction.type == 'MATCH'"
|
||||
:to="{ name: 'TransactionPaymentsForTransaction', params: { paymentsForTransactionId: transaction.id } }"
|
||||
custom
|
||||
v-slot="{ navigate }"
|
||||
|
||||
Reference in New Issue
Block a user