Skip to content

fix(utility-billing): ensure meter readings are added to sales documents#100

Merged
muruthigitau merged 2 commits intodevelopfrom
fix/meter-readings
Jan 22, 2026
Merged

fix(utility-billing): ensure meter readings are added to sales documents#100
muruthigitau merged 2 commits intodevelopfrom
fix/meter-readings

Conversation

@muruthigitau
Copy link
Collaborator

Fixes an issue where meter readings were not being populated into Sales Orders and Sales Invoices.

Key changes:

  • Centralized meter-reading synchronization into a reusable routine.
  • Added validation hooks on Sales Order and Sales Invoice to trigger syncing.
  • Auto-populated meter-reading rows from linked Meter Reading records.
  • Updated field mappings to correctly propagate qty, stock UOM,
    and meter_reading values.
  • Refactored client-side queries to correctly filter and auto-select
    property and meter-number options.
  • Removed redundant fields from Sales Invoice Meter Reading and Sales Order Meter Reading doctypes.

…scheduling

Refactor the service request feature to improve separation of concerns,
data consistency, and automation.

Key changes:
- Add a daily scheduler job to centrally run auto-repeat processing
- Update site survey flow to return Issue defaults from the server,
  letting the client create the Issue for better navigation and permissions
- Replace client-side status checks with a server-side
  update_request_status method that derives status from related Issues
  and persists changes only when needed
- Add utility_property field to the doctype and wire property selection
  into sales document creation and item preparation
- Clean up frontend logic: refactor dialogs/modals, improve item table
  preparation and row editing UX, remove redundant saves and comments
- Fix backend edge cases (e.g. clear end_date when length is zero)

Overall, this improves reliability, clarity, and maintainability of the
service request UI and auto-repeat processing.
Fixes an issue where meter readings were not being populated into
Sales Orders and Sales Invoices.

Key changes:
- Centralized meter-reading synchronization into a reusable routine.
- Added validation hooks on Sales Order and Sales Invoice to trigger syncing.
- Auto-populated meter-reading rows from linked Meter Reading records.
- Updated field mappings to correctly propagate qty, stock UOM,
  and meter_reading values.
- Refactored client-side queries to correctly filter and auto-select
  property and meter-number options.
- Removed redundant fields from Sales Invoice Meter Reading and
  Sales Order Meter Reading doctypes.
@muruthigitau muruthigitau merged commit 739f97c into develop Jan 22, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant