sql - PHP - get beginning inventory from ending inventory of last month -
i have orders table , inventory table. need function beginning inventory of last month.
this formula.
beginning inventory = ending inventory
ending inventory = beginning inventory + deliveries - usage.
to ending inventory of last month, need beginning inventory of last last month don't know how that.
i thinking on how it.
<?php function get_beginning_inventory($month_date) { //do formula here or code here return $data; } ?>
can me please?
Comments
Post a Comment