feat: discount #21

Merged
addison merged 1 commit from 003-003-discount into main 2026-07-25 14:58:14 -04:00
Collaborator

Spec 3.3

Changes

  • Added migration in backend to add discount_cents to building.
  • Added functionality in backend to add, edit and get discount_cents.
  • Added discount as money field in building work order dialog and also added discount as line item to print screen for building's work order and subtract it from subtotal.

Testing

  • Make sure you have latest build running.
  • Navigate to buildings.
  • Add a new building.
  • Open newly created building and check work order section, discount option must be there with value 0.
  • Click on print, In print screen discount must not be listed in line item as it's zero.
  • Now edit work order and add valid value, but make sure subtotal value must become more than 0.
  • Now open print screen, discount must be subtracted from subtotal.
  • Now edit discount again and put arbitrary value which can make subtotal less than zero.
  • Now open print screen and subtotal must be zero not negative.
# Spec 3.3 ## Changes - Added migration in backend to add `discount_cents` to building. - Added functionality in backend to add, edit and get `discount_cents`. - Added discount as money field in building work order dialog and also added discount as line item to print screen for building's work order and subtract it from subtotal. ## Testing - [x] Make sure you have latest build running. - [x] Navigate to buildings. - [x] Add a new building. - [x] Open newly created building and check work order section, discount option must be there with value 0. - [x] Click on print, In print screen discount must not be listed in line item as it's zero. - [x] Now edit work order and add valid value, but make sure subtotal value must become more than 0. - [x] Now open print screen, discount must be subtracted from subtotal. - [x] Now edit discount again and put arbitrary value which can make subtotal less than zero. - [x] Now open print screen and subtotal must be zero not negative.
feat: added discount for building
All checks were successful
PR Validation / validate (pull_request) Successful in 3m50s
ce9c21336c
addison approved these changes 2026-07-25 14:58:10 -04:00
addison left a comment

Great!

Great!
addison referenced this pull request from a commit 2026-07-25 14:58:17 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kwila/shed-ledger!21
No description provided.