库存商品结转成本分录(库存商品结转成本计算)

时间:2024/4/7 6:35:14 编辑:福途教育 标签:会计师

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

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

点击咨询

    本文解答了关于《库存商品结转成本分录》相关内容,同时关于1、库存商品结转成本分录怎么做,2、库存商品结转成本分录0,3、库存商品结转成本分录是什么,4、库存商品结转成本怎么做账,5、库存商品结转成本计算,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。

    库存商品结转成本分录(库存商品结转成本计算)

    库存商品结转成本分录

    ///

    /// 库存簿

    /// 商品结转成本

    /// 库存商品

    /// 账簿

    private void GoodsClosing(IList inventoryBook, GoodsClosing goodsClosing, GoodsInfo goodsStock, IList accountBook)

    {

    //根据主键获取库存账簿

    for (int i = 0; i < inventoryBook.Count; i++)

    {

    //存货科目

    if (inventoryBook[i].GoodsCode == goodsStock.GoodsCode && inventoryBook[i].AccountSubjectCode == Constdefine.W8_Goods_Code)

    {

    accountBook.Add(new AccountBook

    {

    VoucherCode = goodsClosing.VoucherCode,

    AccountSubjectCode = Constdefine.W8_Goods_Code,

    DebitAmount = 0,

    CreditAmount = goodsClosing.ClosingAmount,

    Abstract = goodsClosing.Remark,

    DocumentType = DocTypeEunm.商品结转成本

    });

    break;

    }

    }

    //成本科目

    accountBook.Add(new AccountBook

    {

    VoucherCode = goodsClosing.VoucherCode,

    AccountSubjectCode = Constdefine.W3_Goods_Expenses_Code,

    DebitAmount = goodsClosing.ClosingAmount,

    CreditAmount = 0,

    Abstract = goodsClosing.Remark,

    DocumentType = DocTypeEunm.商品结转成本

    });

    }

    ///

    /// 保存或修改凭证

    ///

    /// 凭证

    /// 账簿

    private void SaveVoucher(Voucher voucher, IList accountBookList)

    {

    //如果凭证不存在

    if (voucher == null) return;

    //保存或修改凭证

    if (string.IsNullOrEmpty(voucher.VoucherCode))

    {

    voucher.VoucherCode = vouchersService.AddVoucher(voucher);

    }

    else

    {

    vouchersService.UpdateVoucher(voucher);

    }

    //凭证分录

    if (voucher != null && !string.IsNullOrEmpty(voucher.VoucherCode))

    {

    foreach (AccountBook accountBook in accountBookList)

    {

    accountBook.VoucherCode = voucher.VoucherCode;

    //首次插入

    if (string.IsNullOrEmpty(accountBook.AccountBookCode))

    {

    accountBookService.AddAccountBook(accountBook);

    }

    else

    {

    //否则更新

    accountBookService.UpdateAccountBook(accountBook);

    }

    }

    }

    }

    }

    }

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

    库存商品结转成本分录

    》优质内容解答希望能帮助到您。
了解 【会计师】更多资讯
以上手机版 库存商品结转成本分录(库存商品结转成本计算) 小编为您整理库存商品结转成本分录(库存商品结转成本计算)的全部内容
上一篇:外购材料用于修厂房进项税是否可以抵扣(将外购的材料用于建造厂房需要计算增值税销项税额吗)
下一篇:餐饮发票可以抵扣什么科目(餐饮发票能抵扣进项吗)

热门推荐

最新文章