|
@@ -897,6 +897,11 @@ public class VerificationServiceImpl extends CommonBaseServiceImpl<VerificationM
|
|
|
List<Verificationdetail> items2 = verificationdetailMapper.selectByFK(id);
|
|
List<Verificationdetail> items2 = verificationdetailMapper.selectByFK(id);
|
|
|
for(Verificationdet det : items1){
|
|
for(Verificationdet det : items1){
|
|
|
Double nowbalanceDet = det.getVd_nowbalance()==null?new Double(0):det.getVd_nowbalance();
|
|
Double nowbalanceDet = det.getVd_nowbalance()==null?new Double(0):det.getVd_nowbalance();
|
|
|
|
|
+ Subledger sub = subledgerMapper.selectByPrimaryKey(Math.toIntExact(det.getVd_slid()));
|
|
|
|
|
+ if (sub != null && sub.getSl_preamount() != 0 &&
|
|
|
|
|
+ ("receivable_to_receivable".equals(verificationDTO.getVc_kind()) || "payable_to_payable".equals(verificationDTO.getVc_kind()))) {
|
|
|
|
|
+ nowbalanceDet=-1*nowbalanceDet;
|
|
|
|
|
+ }
|
|
|
updateResAuditSubledeger(det.getVd_slid(),nowbalanceDet);
|
|
updateResAuditSubledeger(det.getVd_slid(),nowbalanceDet);
|
|
|
}
|
|
}
|
|
|
for(Verificationdetail detail : items2){
|
|
for(Verificationdetail detail : items2){
|