adizafri2000 / billscraper

Sample headless automation project to scrape bills, calculate monthly bill (rent + utilities) and generate a text message which is later sent to desired whatsapp recipients.
1 stars 0 forks source link

Update database utility & installment table to have a column for billing period #17

Closed adizafri2000 closed 8 months ago

adizafri2000 commented 11 months ago

Currently, when bill statements are calculated and generated, some of the items are actually charges for the previous month while the others are for the current month. For example:

This column is important especially when a resident leaves on the start of a month, it can be confusing to split the bills as we have to remember and find out which items of the bill are previous-month charges and which are current-month charges.

Suggested solution:

  1. Update tables to have a new column is_previous_month_charge (or current month) to contain boolean values.
  2. Previous-month charges like electricity, water & unifi will have its field set to TRUE while the others set to FALSE.

There is no application or use for this feature in the automation's calculations yet, but for manual checking it is very helpful to have such records.

adizafri2000 commented 8 months ago

Added new column is_previous_month_charge in utility table for boolean values