I studied in the UK and shared with 4 roommates. In order to better control and monitor public expenditures and maintain the balance of public expenditures between each other, I designed and developed this ERP public expenditure planning system during the welcome Wednesday. I hope that this system will make life easier for the next year, reduce conflicts between everyone, and promote the sustainability of public expenditure projects full of happiness OωO
- Calculate the daily average weekly flow rate to visualize public expenditure
- The user declares a public expenditure and submits the invoice photo certificate
- Monitor the disequilibrium of expenditure among members, calculate the variance, and display it visually
- Compare spending this week and last week, and give the percentage increase or decrease
- When there is one person whose expenditure exceeds the average threshold, and there is at least one person whose expenditure is less than the average threshold, the two people will be emailed to generate an internal transaction
- When the recipient receives the money in the above example, he needs to go to the platform to confirm receipt
- All historical public expenditures and invoices on the platform can be checked
## 2. System Architecture
### 2.1 Frontend
The front end is based on a Bitcoin website platform template found on the Internet, and a deep transformation is realized. It is worth mentioning that the front end uses [Ushio-js project](https://github.com/iotcat/ushio-js) as a security and logging plug-in, and got [Ushio](https://ushio.cool) The system does behind the scenes.
### 2.2 Backend
The backend is written in php language. Provides 5 interfaces, which respectively provide the functions of obtaining account events, obtaining internal circulation information, obtaining public expenditure information, obtaining weekly statements, and operating.
The mail system is quickly constructed using [Yimian Mail API](https://www.eee.dog/tech/mail-api.html).
### 2.3 Database
The database uses yimian-db/mysql. Three tables are constructed, which are used to store flow, public expenditure details, and internal circulation.
### 2.4 Image upload
Directly quote the code of [呓喵酱の图床](https://imgbed.yimian.xyz) with a small amount of rewriting.
### 2.5 User System
At present, it is simple to implement with additional web pages, waiting for the [ushio-auth project](https://github.com/iotcat/ushio-auth) to complete the unified integration.
## 3. Appearance
Nothing to say, show the picture, see for yourself