|
@ -590,6 +590,7 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign { |
|
|
resultDetails.add(dto2); |
|
|
resultDetails.add(dto2); |
|
|
decimal = decimal.add(voucherDetail.getAmount()); |
|
|
decimal = decimal.add(voucherDetail.getAmount()); |
|
|
} else if (payCostTitleValue.equals("名义价")) { |
|
|
} else if (payCostTitleValue.equals("名义价")) { |
|
|
|
|
|
if (voucherDetail.getSubtrahend().compareTo(BigDecimal.ZERO) != 0) { |
|
|
Voucher.VoucherResultDetailDto dto2 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
Voucher.VoucherResultDetailDto dto2 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
dto2.setSummary("结清名义价款"); |
|
|
dto2.setSummary("结清名义价款"); |
|
|
dto2.setSubjectNo(bankCode); |
|
|
dto2.setSubjectNo(bankCode); |
|
@ -597,6 +598,8 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign { |
|
|
dto2.setDimensionCustom(voucherDetail.getCustomerCode()); |
|
|
dto2.setDimensionCustom(voucherDetail.getCustomerCode()); |
|
|
dto2.setCredit(String.valueOf(voucherDetail.getSubtrahend())); |
|
|
dto2.setCredit(String.valueOf(voucherDetail.getSubtrahend())); |
|
|
resultDetails.add(dto2); |
|
|
resultDetails.add(dto2); |
|
|
|
|
|
decimal = decimal.add(voucherDetail.getSubtrahend()); |
|
|
|
|
|
} |
|
|
if (voucherDetail.getBalance().compareTo(BigDecimal.ZERO) != 0) { |
|
|
if (voucherDetail.getBalance().compareTo(BigDecimal.ZERO) != 0) { |
|
|
Voucher.VoucherResultDetailDto dto3 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
Voucher.VoucherResultDetailDto dto3 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
dto3.setSummary("结清名义价款差额转收入"); |
|
|
dto3.setSummary("结清名义价款差额转收入"); |
|
@ -606,8 +609,8 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign { |
|
|
resultDetails.add(dto3); |
|
|
resultDetails.add(dto3); |
|
|
decimal = decimal.add(voucherDetail.getBalance()); |
|
|
decimal = decimal.add(voucherDetail.getBalance()); |
|
|
} |
|
|
} |
|
|
decimal = decimal.add(voucherDetail.getSubtrahend()); |
|
|
|
|
|
} else if (payCostTitleValue.equals("合同违约金")) { |
|
|
} else if (payCostTitleValue.equals("合同违约金")) { |
|
|
|
|
|
if (voucherDetail.getSubtrahend().compareTo(BigDecimal.ZERO) != 0) { |
|
|
Voucher.VoucherResultDetailDto dto2 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
Voucher.VoucherResultDetailDto dto2 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
dto2.setSummary("还其他费用-合同违约金"); |
|
|
dto2.setSummary("还其他费用-合同违约金"); |
|
|
dto2.setSubjectNo(bankCode); |
|
|
dto2.setSubjectNo(bankCode); |
|
@ -615,6 +618,8 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign { |
|
|
dto2.setDimensionCustom(voucherDetail.getCustomerCode()); |
|
|
dto2.setDimensionCustom(voucherDetail.getCustomerCode()); |
|
|
dto2.setCredit(String.valueOf(voucherDetail.getSubtrahend())); |
|
|
dto2.setCredit(String.valueOf(voucherDetail.getSubtrahend())); |
|
|
resultDetails.add(dto2); |
|
|
resultDetails.add(dto2); |
|
|
|
|
|
decimal = decimal.add(voucherDetail.getSubtrahend()); |
|
|
|
|
|
} |
|
|
if (voucherDetail.getBalance().compareTo(BigDecimal.ZERO) != 0) { |
|
|
if (voucherDetail.getBalance().compareTo(BigDecimal.ZERO) != 0) { |
|
|
Voucher.VoucherResultDetailDto dto3 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
Voucher.VoucherResultDetailDto dto3 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
dto3.setSummary("其他费用差额转收入"); |
|
|
dto3.setSummary("其他费用差额转收入"); |
|
@ -624,8 +629,8 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign { |
|
|
resultDetails.add(dto3); |
|
|
resultDetails.add(dto3); |
|
|
decimal = decimal.add(voucherDetail.getBalance()); |
|
|
decimal = decimal.add(voucherDetail.getBalance()); |
|
|
} |
|
|
} |
|
|
decimal = decimal.add(voucherDetail.getSubtrahend()); |
|
|
|
|
|
} else if (payCostTitleValue.equals("其他费用")) { |
|
|
} else if (payCostTitleValue.equals("其他费用")) { |
|
|
|
|
|
if (voucherDetail.getSubtrahend().compareTo(BigDecimal.ZERO) != 0) { |
|
|
Voucher.VoucherResultDetailDto dto2 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
Voucher.VoucherResultDetailDto dto2 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
dto2.setSummary("还其他费用-资方其他费用"); |
|
|
dto2.setSummary("还其他费用-资方其他费用"); |
|
|
dto2.setSubjectNo(bankCode); |
|
|
dto2.setSubjectNo(bankCode); |
|
@ -633,6 +638,8 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign { |
|
|
dto2.setDimensionCustom(voucherDetail.getCustomerCode()); |
|
|
dto2.setDimensionCustom(voucherDetail.getCustomerCode()); |
|
|
dto2.setCredit(String.valueOf(voucherDetail.getSubtrahend())); |
|
|
dto2.setCredit(String.valueOf(voucherDetail.getSubtrahend())); |
|
|
resultDetails.add(dto2); |
|
|
resultDetails.add(dto2); |
|
|
|
|
|
decimal = decimal.add(voucherDetail.getSubtrahend()); |
|
|
|
|
|
} |
|
|
if (voucherDetail.getBalance().compareTo(BigDecimal.ZERO) != 0) { |
|
|
if (voucherDetail.getBalance().compareTo(BigDecimal.ZERO) != 0) { |
|
|
Voucher.VoucherResultDetailDto dto3 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
Voucher.VoucherResultDetailDto dto3 = new Voucher.VoucherResultDetailDto(); //贷方
|
|
|
dto3.setSummary("收其他费用"); |
|
|
dto3.setSummary("收其他费用"); |
|
@ -643,7 +650,6 @@ public class FinKingDeeFeignRest implements FinKingDeeFeign { |
|
|
resultDetails.add(dto3); |
|
|
resultDetails.add(dto3); |
|
|
decimal = decimal.add(voucherDetail.getBalance()); |
|
|
decimal = decimal.add(voucherDetail.getBalance()); |
|
|
} |
|
|
} |
|
|
decimal = decimal.add(voucherDetail.getSubtrahend()); |
|
|
|
|
|
} else if (payCostTitleValue.equals("资方退还垫款")) { |
|
|
} else if (payCostTitleValue.equals("资方退还垫款")) { |
|
|
check = 1; |
|
|
check = 1; |
|
|
Voucher.VoucherResultDetailDto dto1 = new Voucher.VoucherResultDetailDto(); //借方
|
|
|
Voucher.VoucherResultDetailDto dto1 = new Voucher.VoucherResultDetailDto(); //借方
|
|
|