Data center billing, report, and data center billing report
Understanding: checkout is actually a collection of funds, that is, a summary of the work of an operator and administrator on the day, and transfer the funds in their hands to the company's funds.
Optimization: You can add or close the Administrator account when only the operator is finished, and the daily statement of the report shows which operator or administrator has performed the checkout activity on the current day. Therefore, three columns are added to the original checkday table (one auto-incrementing column, one level checkout personnel type column, and the cashier's name column) in this way, the company's boss can view the daily work of administrators and operators and analyze employee performance issues as needed.
First, this is my optimized checkout interface, using two checkbox controls
Then, the overall contact diagram of the checkout and Daily Statement (check_day table) is shown.
Below is the update check_day
Explain the calculation of the previous period balance (RemainCash) and current period balance (AllCash)
Previous period balance (RemainCash): the total number of Allcash records on the day of the previous record (different from the date of the current day) in the table. For example, the RemainCash on January 1, August 19 is the total number of AllCash records on January 1, August 18.
Current period balance (AllCash): previous period balance (RemainCash) + Recharge Amount (RechargeCash)-refund amount (CancelCash)
The final effect of over-reporting is
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.