How to generate monthly reports

Source: Internet
Author: User
The monthly report generation method is fixed and single. now, you need to calculate the monthly sales, browsing, commission, settlement, and other parameters for each product.
When I got the requirement, I thought of generating a data every month for each product, which is convenient no matter where it is queried, and there is no need to calculate each query.

Solution 1: Write a scheduled task, which is generated at the end of each month. However, you need to manage the scheduled task,
Solution 2: provide a button in the background to "generate a Bill". click it to calculate the monthly bill for the current month,

Could you have a better solution for this kind of monthly report? thank you.


Reply to discussion (solution)

You can also create a view

PHP calls the database view or stored procedure for implementation. the monthly report data is collected and the display format is generated using PHP.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.