+ if (acc.isAmountSet()) {
+ item.getAccount()
+ .setAmount(acc.getAmount());
+ if (acc.getAmount() < 0) {
+ if (firstNegative == null) {
+ firstNegative = item;
+ singleNegative = true;
+ }
+ else
+ singleNegative = false;
+ }
+ }
+ else
+ item.getAccount()
+ .resetAmount();