|
|
@ -52,8 +52,6 @@ import com.yxt.anrui.base.common.enums.DictCommonEnum; |
|
|
|
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBank; |
|
|
|
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapply; |
|
|
|
import com.yxt.anrui.fin.api.finpaymentapplydetails.FinPaymentapplyDetails; |
|
|
|
import com.yxt.anrui.fin.api.finpaymentapplydetailsbelow.FinPaymentapplyDetailsBelow; |
|
|
|
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEve; |
|
|
|
import com.yxt.anrui.fin.api.finpaymentapplyeve.FinPaymentapplyEve; |
|
|
|
import com.yxt.anrui.fin.api.finpaymentapplyvehicle.FinPaymentapplyVehicleVo; |
|
|
|
import com.yxt.anrui.fin.api.finpaymentrecord.*; |
|
|
@ -73,7 +71,6 @@ import com.yxt.anrui.fin.biz.kingdee.voucher.VoucherService; |
|
|
|
import com.yxt.anrui.portal.api.dictcommon.DictCommonFeign; |
|
|
|
import com.yxt.anrui.portal.api.flow.FlowableFeign; |
|
|
|
import com.yxt.anrui.portal.api.flow.PCHistTaskListAndCommentList; |
|
|
|
import com.yxt.anrui.portal.api.sysmapping.SysMappingFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganization; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
|
|
@ -1718,7 +1715,7 @@ public class FinPaymentrecordService extends MybatisBaseService<FinPaymentrecord |
|
|
|
} |
|
|
|
if (payPriceTotal.compareTo(exePayPriceTotal) == -1) { |
|
|
|
//借方
|
|
|
|
voucherResultDetailDtoJF.setSummary("还" + finPaymentrecord.getCostTitleValue() + finPaymentapplyEve.getOpenDate()); |
|
|
|
voucherResultDetailDtoJF.setSummary("还" + finPaymentrecord.getCostTitleValue() + DateUtil.formatDate(new Date())); |
|
|
|
voucherResultDetailDtoJF.setSubjectNo("1009.03"); |
|
|
|
SysOrganizationVo deptVo = sysOrganizationFeign.fetchBySid(finPaymentrecord.getPurchaseSystemSid()).getData(); |
|
|
|
voucherResultDetailDtoJF.setDimensionDept(deptVo.getOrgCode()); |
|
|
@ -1727,13 +1724,13 @@ public class FinPaymentrecordService extends MybatisBaseService<FinPaymentrecord |
|
|
|
voucherResultDetailDtoJF.setDebit(finPaymentrecord.getCost().toString()); |
|
|
|
voucherResultDetailDtos.add(voucherResultDetailDtoJF); |
|
|
|
//贷方
|
|
|
|
voucherResultDetailDtoDf.setSummary("还" + finPaymentrecord.getCostTitleValue() + finPaymentapplyEve.getOpenDate()); |
|
|
|
voucherResultDetailDtoDf.setSummary("还" + finPaymentrecord.getCostTitleValue() + DateUtil.formatDate(new Date())); |
|
|
|
voucherResultDetailDtoDf.setBankAccount(finPaymentrecord.getPayBankAccount()); |
|
|
|
voucherResultDetailDtoDf.setCredit(finPaymentrecord.getCost().toString()); |
|
|
|
voucherResultDetailDtos.add(voucherResultDetailDtoDf); |
|
|
|
} else { |
|
|
|
//借方
|
|
|
|
voucherResultDetailDtoJF.setSummary("还" + finPaymentrecord.getCostTitleValue() + finPaymentapplyEve.getOpenDate()); |
|
|
|
voucherResultDetailDtoJF.setSummary("还" + finPaymentrecord.getCostTitleValue() + DateUtil.formatDate(new Date())); |
|
|
|
voucherResultDetailDtoJF.setSubjectNo("2111"); |
|
|
|
SysOrganizationVo deptVo = sysOrganizationFeign.fetchBySid(finPaymentrecord.getPurchaseSystemSid()).getData(); |
|
|
|
voucherResultDetailDtoJF.setDimensionDept(deptVo.getOrgCode()); |
|
|
@ -1742,14 +1739,14 @@ public class FinPaymentrecordService extends MybatisBaseService<FinPaymentrecord |
|
|
|
voucherResultDetailDtoJF.setDebit(exePayPriceTotal.add(bzj).toString()); |
|
|
|
voucherResultDetailDtos.add(voucherResultDetailDtoJF); |
|
|
|
//贷方1
|
|
|
|
voucherResultDetailDtoDf.setSummary("还" + finPaymentrecord.getCostTitleValue() + finPaymentapplyEve.getOpenDate()); |
|
|
|
voucherResultDetailDtoDf.setSummary("还" + finPaymentrecord.getCostTitleValue() + DateUtil.formatDate(new Date())); |
|
|
|
voucherResultDetailDtoDf.setSubjectNo("1009.03"); |
|
|
|
voucherResultDetailDtoDf.setDimensionDept(deptVo.getOrgCode()); |
|
|
|
voucherResultDetailDtoDf.setBank(key); |
|
|
|
voucherResultDetailDtoDf.setCredit(exePayPriceTotal.add(bzj).subtract(finPaymentrecord.getCost()).toString()); |
|
|
|
voucherResultDetailDtos.add(voucherResultDetailDtoDf); |
|
|
|
//贷方2
|
|
|
|
voucherResultDetailDtoDf2.setSummary("还" + finPaymentrecord.getCostTitleValue() + finPaymentapplyEve.getOpenDate()); |
|
|
|
voucherResultDetailDtoDf2.setSummary("还" + finPaymentrecord.getCostTitleValue() + DateUtil.formatDate(new Date())); |
|
|
|
voucherResultDetailDtoDf2.setBankAccount(finPaymentrecord.getPayBankAccount()); |
|
|
|
voucherResultDetailDtoDf2.setCredit(finPaymentrecord.getCost().toString()); |
|
|
|
voucherResultDetailDtos.add(voucherResultDetailDtoDf2); |
|
|
|