| | |
| | | private GenInvoiceInfoVo genInvoiceInfoVo(GenInvoiceInfoDTO genInvoiceInfoDTO, Contract contract, SysDept b) { |
| | | GenInvoiceInfoVo vo = new GenInvoiceInfoVo(); |
| | | BusinessCustomer a = businessCustomerMapper.selectById(contract.getPartyAId()); |
| | | vo.setPartyA(a.getCompanyName()); |
| | | vo.setPartyA(a.getRegisterName()); |
| | | vo.setPartyAOrgCode(a.getCreditCode()); |
| | | vo.setPartyAOpenBank(a.getBankName()); |
| | | vo.setPartyABankAccount(a.getBankAccount()); |
| | |
| | | } |
| | | //更新合同开票状态 |
| | | contract.setBillingStatus("2"); |
| | | contract.setBillingAmout(contract.getAmount().subtract(invoice.getInvoiceTotalPriceTax())); |
| | | contract.setBillingAmout(contract.getBillingAmout().subtract(invoice.getInvoiceTotalPriceTax())); |
| | | contractMapper.updateById(contract); |
| | | |
| | | blueInvoice.setRedReversal("1"); |
| | | baseMapper.updateById(blueInvoice); |
| | | |
| | | //更新合同出库单状态 |
| | | List<ContractOutBoundInvoiceVo> outBoundInvoiceVoList = BeanUtil.copyToList(JSONArray.parseArray(blueInvoice.getInvoicePreviewParam()),ContractOutBoundInvoiceVo.class); |
| | |
| | | }); |
| | | invoice.setApprovalStatus("2"); |
| | | baseMapper.updateById(invoice); |
| | | |
| | | ContractInvoice blueInvoice = baseMapper.selectById(invoice.getBlueInvoiceId()); |
| | | blueInvoice.setRedReversal("0"); |
| | | baseMapper.updateById(blueInvoice); |
| | | } |
| | | } |