本文解答了关于《预收冲减应收会计分录》相关内容,同时关于1、预收冲减应收会计分录,2、预收冲减应收会计分录怎么写,3、预收冲减应收会计分录怎么做,4、预收冲减应收会计分录是什么,5、冲减预收账款分录,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
预收冲减应收会计分录
* @return
*/
public CpaVoucher buildPayedOffReceivableVoucher(){
//销售预收明细账记录
CpaCustomerReceiptCustomerLedger customerReceiptCustomerLedger = customerReceiptService
.findDetailLedgerById(customerReceiptReceivableVo.getReceiptCustomerLedgerId());
//构造会计凭证
CpaVoucher voucher = CollectionUtils.buildVoucher(customerReceiptReceivableVo, VoucherTypeEnum.PAY_OFF_RECEIVABLE);
//构造会计分录
List entryList = CollectionUtils.buildReceivableVoucherEntry(customerReceiptReceivableVo,
customerReceiptCustomerLedger.getTurnOutCurrBalance(), voucher, SubjectBillTypeEnum.SAL_ADVANCE_RECEIPT);
//判断是否是生成电子凭证
if (customerReceiptReceivableVo.getGenerateVoucher()){
//生成电子凭证
voucher.setVoucherWordId(voucherWordService.findIdByVoucherId(voucher.getId()));
//构造凭证详情记录
VoucherDetailVo voucherDetailVo = collectionVoucherLayout.buildPayedReceivableOrderVoucherDetail(voucher,
customerReceiptReceivableVo, SubjectBillTypeEnum.SAL_ADVANCE_RECEIPT, entryList);
//构造电子票据
CollectionUtils.buildVoucherWordInfos(voucher, voucherDetailVo, voucherWordService
, voucherWordDetailService, voucherEntryService);
}else {
//保存会计分录
voucherEntryService.saveBatch(entryList);
}
//返回凭证对象
return voucher;
}
}
总结:以上是编辑:【荆天浩】整理及AI智能原创关于《预收冲减应收会计分录
》优质内容解答希望能帮助到您。