本文解答了关于《版权核算进入无形资产还是存货》相关内容,同时关于1、版权核算进入无形资产还是存货科目,2、版权费属于无形资产吗,3、版权是有形资产吗,4、版权算资产吗,5、版权计入什么科目,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
版权核算进入无形资产还是存货
List specDetailsList = new ArrayList<>();
List accountSubjectVoList = new ArrayList<>();
if(accountSubject != null){
String subjectsId = StringUtils.strip(accountSubject.getSubjectsId(),",");
if("".equals(StringUtils.trim(subjectsId))){
log.error("SDK申请单科目Id为空!sdkId:{}",sdkId);
}
String[] split = StringUtils.split(subjectsId, ",");
String subjectId = split[0];
FDocumentSubject subject = documentSubjectMapper.selectById(subjectId);
SpecSubject specSubject = specSubjectMapper.selectById(subject.getSSubjectId());
specDetailsList = fDocSpecDetailsMapper.waterMeterSelect(specSubject.getId(),null,null,null);
accountSubjectVoList = vatService.conversionAccountSubjectVo(split,accountSubject);
}
//新建财务凭证
FdocumentHeader documentHeader = vatService.generateFDocumentHeader(vatHeader);
//判断 凭证 splitType
if("1".equals(waterIsSplit)){
documentHeader.setFsplitType("3");
}
//插入凭证头
documentHeaderMapper.insert(documentHeader);
//插入明细
List documentEntriesList = vatService.generateFDocumentEntriesForWaterMeter(vatHeader,waterMeterOrder,documentHeader,specDetailsList,accountSubjectVoList);
for (FDocumentEntries documentEntries : documentEntriesList) {
//插入凭证明细
documentEntriesMapper.insert(documentEntries);
}
//更新水表订单信息
WaterMeterOrder orderUpdate = new WaterMeterOrder();
orderUpdate.setId(waterMeterOrder.getId());
orderUpdate.setFlowDocNo(documentHeader.getFdocNo());
orderUpdate.setFlowState(WaterFlowStateEnum.WAIT_APPROVE.getKey());
waterMeterOrderMapper.updateById(orderUpdate);
//添加审批
vatService.insertApprove(documentHeader,flowDefinition);
map.put("docNo",documentHeader.getFdocNo());
} catch (Exception e) {
log.error("生成凭证异常!",e);
throw e;
}
return map;
}
}
总结:以上是编辑:【晴海幻影】整理及AI智能原创关于《版权核算进入无形资产还是存货
》优质内容解答希望能帮助到您。