本文解答了关于《设备累计折旧会计分录》相关内容,同时关于1、设备累计折旧会计分录怎么做,2、设备累计折旧会计分录,3、设备累计折旧会计分录怎么写,4、设备累计折旧怎么算,5、设备的累计折旧算哪个类别,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
设备累计折旧会计分录
Voucher voucher = new Voucher();
voucher.setFdbid(fdbid);
voucher.setFyear(fyear);
voucher.setPeriod(period);
voucher.setVchdate(new Date());
voucher.setVouchertype("记");
voucher.setVoucherNo("*");
voucher.setCreateBy(1L);
voucher.setCreateDate(new Date());
voucher.setUpdateBy(1L);
voucher.setUpdateDate(new Date());
voucher.setDelFlag("0");
voucherService.save(voucher);
// 为购入设备累计折旧会计分录添加借贷方
VoucherBody jvb = new VoucherBody();
jvb.setVid(voucher.getId());
jvb.setDebitsubject("固定资产");
jvb.setCreditsubject("应付折旧汇总");
jvb.setDirection("J");
jvb.setOrigamount(zj);
jvb.setDtamount(zj);
jvb.setCdamount(zj);
jvb.setCreateBy(1L);
jvb.setCreateDate(new Date());
jvb.setUpdateBy(1L);
jvb.setUpdateDate(new Date());
jvb.setDelFlag("0");
voucherBodyService.save(jvb);
VoucherBody dvb = new VoucherBody();
dvb.setVid(voucher.getId());
dvb.setDebitsubject("应付折旧汇总");
dvb.setCreditsubject("累计折旧");
dvb.setDirection("D");
dvb.setOrigamount(zj);
dvb.setDtamount(zj);
dvb.setCdamount(zj);
dvb.setCreateBy(1L);
dvb.setCreateDate(new Date());
dvb.setUpdateBy(1L);
dvb.setUpdateDate(new Date());
dvb.setDelFlag("0");
voucherBodyService.save(dvb);
// 更新累计折旧
FixedAssets fixedAssets = new FixedAssets();
fixedAssets.setId(FixedAssetId);
fixedAssets.setAccudepreciation(accudepreciation);
fixedAssetsService.updateAccudepreciationById(fixedAssets);
}
}
}
}
}
}
@Transactional
public void AccountBookentry(Long fdbid, Integer period, Integer fyear) {
// 主营业务成本
AccountingVoucher accountingVoucher = new AccountingVoucher();
accountingVoucher.setFdbid(fdbid);
accountingVoucher.setPeriod(period);
accountingVoucher.setFyear(fyear);
accountingVoucher.setPeriodStart(1);
accountingVoucher.setPeriodOver(31);
// 凭证总数
int count = this.listselect(accountingVoucher).size();
for (int n = 1; n <= count; n++) {
accountingVoucher.setVoucherNo(n);
List ls = this.listselect(accountingVoucher);
Voucher voucher = new Voucher();
voucher.setFdbid(fdbid);
voucher.setFyear(fyear);
voucher.setPeriod(period);
voucher.setVouchertype(ls.get(0).getVouchertype());
voucher.setVchdate(new Date());
voucher.setVoucherNo(ls.get(0).getVoucherNo() + "");
voucher.setCreateBy(1L);
voucher.setCreateDate(new Date());
voucher.setUpdateBy(1L);
voucher.setUpdateDate(new Date());
voucher.setDelFlag("0");
voucherService.save(voucher);
// 生成凭证体(借贷方)
for (AccountingVoucher av : ls) {
VoucherBody voucherBody = new VoucherBody();
voucherBody.setVid(voucher.getId());
voucherBody.setDebitsubject(av.getCreditsubjectName());
voucherBody.setCreditsubject(av.getDebitsubjectName());
voucherBody.setOrigamount(av.getOrigamount());
if (voucherBody.getOrigamount() != null) {
voucherBody.setDtamount(voucherBody.getOrigamount());
voucherBody.setCdamount(voucherBody.getOrigamount());
}
if (av.getDirection() == "J") {
voucherBody.setDirection("J");
} else {
voucherBody.setDirection("D");
}
vou
总结:以上是编辑:【沙漠彩虹~】整理及AI智能原创关于《设备累计折旧会计分录
》优质内容解答希望能帮助到您。