Created
July 5, 2025 09:34
-
-
Save thinkphp/27a9dd6bb68c4ff9aabea04fea6f6e11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-------------------------------+ | |
| Start | | |
+-------------------------------+ | |
| | |
v | |
+-------------------------------+ | |
| For each transaction in | | |
| TRANSACTIONS | | |
+-------------------------------+ | |
| | |
v | |
+-------------------------------+ | |
| Get property_code and amount | | |
+-------------------------------+ | |
| | |
v | |
+-------------------------------+ | |
| Is amount > 0 ? | | |
+--------+--------------+------+ | |
| | | |
Yes No | |
| | | |
v v | |
+----------------+ +-------------------------------+ | |
| summary[prop_code] | | summary[prop_code] | | |
| ["total_rents"] | | ["total_repairs"] | | |
| += amount | | += abs(amount) | | |
+----------------+ +-------------------------------+ | |
| | | |
+-------+------+ | |
| | |
v | |
+-------------------------------+ | |
| Next transaction? | | |
+-------------------------------+ | |
| | |
v | |
[End] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment