OpenERP的实时库存价值

发布时间 2023-08-06 12:45:49作者: CrossPython

OpenERP的Product的Account Tab页有个字段:库存价值(Inventory Valuation),该字段如果选择 Real Time (automated),系统会实时计算库存价值。为了实时计算各产品和各库位的实时库存价值,需要设置几个Account的字段:
Stock Input Account : 140200 在途物资
Stock Output Account : 140700 发出商品
Stock Variation Account : 140600 库存商品
Stock journal : Stock Journal

这几个设置只有产品的Inventory Valuation 设置为 Real Time (automated) 时候才生效。Stock Input Account 和 Stock Output Account在多处出现,后文会介绍其详细含义。该四个字段最常见的设置方法是,在产品分类(Product Category)上设置其值,如下图所示:
[attachimg=1]

Stock Variation Account表示该产品的库存价值对应的会计科目,Stock Input Account表示入库时候会计分录的贷方(借方是Stock Variation Account),Stock Output Account表示出库时候会计分录的借方(贷方是Stock Variation Account)。如此设置之后,当确认入库或出库单时候,系统会自动生成该产品分类下的产品的库存移动会计分录。如采购入库时候,生成入库会计分录如下:
[attachimg=2]


Stock Input Account 和 Stock Output Account两个字段在产品表单、Location表单上也可以设置。如果Product Category、Product、Location上都设置了,库存移动时候,系统计算规则是,先找Location的设置,没有则找Product上的设置,还没有则找Product Category上的设置,都没设置则报错。