产成品暂估入库会计分录

时间:2024/3/7 2:35:00 编辑:福途教育 标签:会计师

2023年【会计师】申请条件/费用/专业咨询 >>

会计师申请条件是什么?会计师费用是多少?会计师专业都有哪些?

点击咨询

    本文解答了关于《产成品暂估入库会计分录》相关内容,同时关于1、产成品暂估入库会计分录,2、产成品暂估入库的账务处理,3、暂估产品入库的会计分录,4、暂估入库成本分录,5、暂估商品入库 成本如何结转,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。

    产成品暂估入库会计分录

    产成品暂估入库会计分录

    */

    @Transactional(rollbackFor=Exception.class)

    public InvokeResult createPreProductInstorageAccountBook(String inStorageId) {

    if(!recordsAccountBookRepo.existInStorageId(inStorageId)){

    inProductListDetailRepo.updPreProductInstorageAccountBook(inStorageId);

    //inProductListDetailRepo.updConsumePreProductInstorageAccountBook(inStorageId);

    List storageInvokeRecordDTOs = inProductListDetailRepo.getPreProductInstorageAccountBook(inStorageId);

    for(StorageInvokeRecordDTO sird:storageInvokeRecordDTOs){

    String id = UUID.randomUUID().toString().replace("-", "");

    RecordsAccountBook rab = new RecordsAccountBook();

    BigDecimal totalMoney = (new BigDecimal(sird.getMustPayTotalMoney())).add(new BigDecimal(sird.getAlreadyPayTotalMoney()));

    String accountTypeId = sird.getAccountTypeId();

    rab.createRab(id,sird.getStorageId(), accountTypeId, sird.getAccountTypeOuterId(), totalMoney);

    rab.setSubjectHappendDate(LocalDate.now());

    rab.setOriginalAmount(totalMoney);

    rab.setRemark(sird.getRemark());

    rab.setRecordType("记");

    rab.setMergedMarker("否");

    rab.setDrawee(sird.getDrawee());

    rab.setReceiptMarker("否");

    rab.setAccountBookType("库存成品借");

    recordsAccountBookRepo.save(rab);

    }

    return InvokeResult.success();

    }else{

    return InvokeResult.failure("该商品已登记");

    }

    }

    /**

    *

    * @Title: createPreProductOutstorageAccountBook

    * @Description: 成品暂估出库会计分录

    */

    @Transactional(rollbackFor=Exception.class)

    public InvokeResult createPreProductOutstorageAccountBook(String outStorageId) {

    if(!recordsAccountBookRepo.existOutStorageId(outStorageId)){

    outProductListDetailRepo.updPreProductOutstorageAccountBook(outStorageId);

    //outProductListDetailRepo.updConsumePreProductOutstorageAccountBook(outStorageId);

    List storageInvokeRecordDTOs = outProductListDetailRepo.getPreProductOutstorageAccountBook(outStorageId);

    for(StorageInvokeRecordDTO sird:storageInvokeRecordDTOs){

    String id = UUID.randomUUID().toString().replace("-", "");

    RecordsAccountBook rab = new RecordsAccountBook();

    BigDecimal totalMoney = sird.getMoney();

    String accountTypeId = sird.getAccountTypeId();

    String accountTypeOuterId = sird.getAccountTypeOuterId();

    if(totalMoney.compareTo(BigDecimal.ZERO) > 0){

    rab.createRab(id, "", accountTypeId, accountTypeOuterId, totalMoney);

    rab.setSubjectHappendDate(LocalDate.now());

    rab.setOriginalAmount(totalMoney);

    rab.setRemark(sird.getRemark());

    rab.setRecordType("记");

    rab.setMergedMarker("否");

    rab.setDrawee(sird.getDrawee());

    rab.setReceiptMarker("否");

    rab.setAccountBookType("库存成品贷");

    recordsAccountBookRepo.save(rab);

    }

    }

    return InvokeResult.success();

    }else{

    return InvokeResult.failure("该商品已登记");

    }

    }

    }

    总结:以上是编辑:【庞清琳】整理及AI智能原创关于《

    产成品暂估入库会计分录

    》优质内容解答希望能帮助到您。
了解 【会计师】更多资讯
以上手机版 产成品暂估入库会计分录 小编为您整理产成品暂估入库会计分录的全部内容
上一篇:华师附外美式高中住宿环境(华师附中外国语学校国际高中)
下一篇:如何填报征集志愿(如何填报征集志愿会增加被录取的几率)

热门推荐

最新文章