fix 后手续费取字段

master
luoyang 5 years ago
parent 12256773b6
commit f5eb9ec4a4

@ -125,7 +125,7 @@ public class SurchargeAccountServiceImpl implements SurchargeAccountService {
transaction.put("bill_id", detailId);
transaction.put("total_surcharge", BigDecimal.ZERO);
transaction.put("tax_amount", BigDecimal.ZERO);
transaction.put("amount", (detail.getBigDecimal("debit_amount").add(detail.getBigDecimal("credit_amount"))).negate());
transaction.put("amount", detail.getBigDecimal("total_surcharge").negate());
transaction.put("post_balance", surchargeAccount.getBigDecimal("balance").add(transaction.getBigDecimal("amount")));
transaction.put("operation", manager.getString("manager_id"));
transaction.put("create_time", new Date());

Loading…
Cancel
Save