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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -