We are discussing about business where company is getting products from suppliers, stores it in warehouse or any other locations, and selling of it. Sometimes it requires to inform supplier that how many daily sales occur for products and how much remain at the end of the day.
Some companies are not buying products from suppliers but keep it in their warehouses and selling on behalf of suppliers.
In intial state, we have define and assume that one product is supplied by one supplier only.
For sending email we have created email template which make it more generic.
And for automatic sending emails, we used cron jobs which makes work very easy.
It is possible that all supplier don’t require notification about products those sold today. We make it optional also.
Now going to make sales order where one product has supplier defined and require to get notification about sales.
And we have completed all process of delivery order also.
When cron job is going to execute, it is sending email like below:
You can find PDF report as a attachment.