本文解答了关于《产成品暂估入库会计分录》相关内容,同时关于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智能原创关于《产成品暂估入库会计分录
》优质内容解答希望能帮助到您。