Technical use-case library

Wastage Tracking | Rabbit Accounts Use-Case Library

Use this page for technical screen behavior, source references, and active Playwright coverage.

Rabbit Accounts This library is for reviewers, QA, and implementation traceability. Use the product manual for customer-facing guidance.
S30

Wastage Tracking

Wastage Tracking supports wastage entry/review, filters, loss tracking, root-cause visibility.

Route/wastage-tracking
Entry pathAnalytics nav > Wastage Tracking
Product manualOpen user manual page
Playwright coverage

Screen smoke

Detailed source

17-UC-WastageTracking.md

Wastage Tracking Use Cases (WastageTracking.razor)

ID Section Action Expected Outcome Controls
UC-WASTAGE-001 Page Load Navigate to /wastage-tracking Loads wastage dashboard Container
UC-WASTAGE-002 Auth CustomerOperator required Authorized access Authorize attribute
UC-WASTAGE-003 Business No business selected Shows info alert Alert info
UC-WASTAGE-004 Header Record Wastage button Opens wastageModal Button light
UC-WASTAGE-005 Loading Data loading Shows spinner with text Spinner
UC-WASTAGE-006 Empty State No records Icon + message + create button Div text-center
UC-WASTAGE-007 Summary Card Total Items Wasted Sum of WastedQuantity Card danger
UC-WASTAGE-008 Summary Card Total Value Lost Sum ₹N0 TotalWastageValue Card warning
UC-WASTAGE-009 Summary Card Wastage Records Count of records Card info
UC-WASTAGE-010 Summary Card This Month Current month count Card secondary
UC-WASTAGE-011 Table Date column dd MMM yyyy format centered td text-center
UC-WASTAGE-012 Table Product column Name + optional batch td
UC-WASTAGE-013 Table Quantity column Centered count td text-center
UC-WASTAGE-014 Table Reason badge Color by GetReasonBadgeColor Badge
UC-WASTAGE-015 Table Est. Value ₹N2 right-aligned td text-end
UC-WASTAGE-016 Table Type badge bg-info badge Badge
UC-WASTAGE-017 Table View Details btn ViewDetails with ID Button outline-primary
UC-WASTAGE-018 Table Edit btn EditRecord with ID Button outline-secondary
UC-WASTAGE-019 Table Sort Default OrderByDescending WastageDate OrderBy
UC-WASTAGE-020 Table Limit Display Take(15) records Take
UC-WASTAGE-021 Reason Badge Expired bg-danger Badge class
UC-WASTAGE-022 Reason Badge Damaged bg-warning Badge class
UC-WASTAGE-023 Reason Badge Quality Issues bg-info Badge class
UC-WASTAGE-024 Reason Badge Other bg-secondary Badge class
UC-WASTAGE-025 Modal Create wastage New WastageRecord initialized Modal
UC-WASTAGE-026 Modal Form Product select Products dropdown Select
UC-WASTAGE-027 Modal Form Batch Number Optional input Input text
UC-WASTAGE-028 Modal Form Wasted Quantity Required min=1 Input number
UC-WASTAGE-029 Modal Form Unit Cost Required step=0.01 Input number
UC-WASTAGE-030 Modal Form Wastage Date Required date Input date
UC-WASTAGE-031 Modal Form Wastage Type WastageTypes.AllTypes dropdown Select
UC-WASTAGE-032 Modal Form Wastage Reason WastageReasons.AllReasons dropdown Select
UC-WASTAGE-033 Modal Form Description Optional textarea Textarea
UC-WASTAGE-034 Modal Form Total Value alert Quantity × UnitCost calculated Alert info
UC-WASTAGE-035 Modal Save Validation Product + quantity required Validation
UC-WASTAGE-036 Modal Save Create WastageService.CreateWastageRecordAsync Service call
UC-WASTAGE-037 Modal Save Update WastageService.UpdateWastageRecordAsync Service call
UC-WASTAGE-038 Details Modal View Shows product/wastage/description info Modal lg
UC-WASTAGE-039 Details Modal Product Info Product/Batch/Vendor Row
UC-WASTAGE-040 Details Modal Wastage Details Quantity/Cost/Total Row
UC-WASTAGE-041 Details Modal Type/Reason Badges with colors Badges
UC-WASTAGE-042 Details Modal Dates Wastage + Created dates Row
UC-WASTAGE-043 Details Modal Edit button Opens edit modal Button primary
UC-WASTAGE-044 Details Modal Delete button DeleteWastageRecord with confirm Button danger
UC-WASTAGE-045 Delete Confirmation JS confirm dialog Confirm
UC-WASTAGE-046 Delete Success Toast + reload data Toast
UC-WASTAGE-047 Product Change OnProductChanged Auto-fills UnitCost from cost layer Event
UC-WASTAGE-048 Cost Fallback No cost layer Uses 70% of UnitPrice Calculation
UC-WASTAGE-049 Toast Success showToast with success JS interop
UC-WASTAGE-050 Toast Error showToast with error JS interop
UC-WASTAGE-051 Data test Table data-test="wastage-table" Attribute
UC-WASTAGE-052 Data test Row data-test="wastage-row" Attribute
UC-WASTAGE-053 Data test Modal data-test="wastage-modal" Attribute
UC-WASTAGE-054 Data test Details Modal data-test="wastage-details-modal" Attribute
UC-WASTAGE-055 Data test Save button data-test="save-wastage-btn" Attribute