Home > Database > Mysql Tutorial > php+mysql如何实现库存加权平均单价?急急!!!在线等。

php+mysql如何实现库存加权平均单价?急急!!!在线等。

WBOY
Release: 2016-06-06 09:45:52
Original
1446 people have browsed it

mysqlphp

各位高手:
大家好!请帮忙实现用PHP+MYSQL实现库存加权平均单价。我现在需要求当月存货单价,当月存货单价=(月初库存存货的实际金额+(本月进货实际单价*本月进货数量))/(月初库存存货数量+本月进货数量).以下是三个表,一个是产品表cxh_product(id,code编码,p_name名称),一个是入库表storage(product_id,qty,price,total,stockage_date),一个是出库表
stockout(product_id,qty,stockout_date)。

请帮忙解决,急急。。。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template