MedicOneSystems / MedicOneSystems/livewire-datatables
enableSummary is not summing up amount
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
I have two columns like this
NumberColumn::name('x.amount')
->label('Amount')
->enableSummary(),
NumberColumn::name('x.discount')
->label('Discount')
->enableSummary(),
But the summary row in grid shows only 0 in those columns
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue identifies NumberColumn::enableSummary() and the x.amount and x.discount columns; start by tracing that option to the summary-row calculation and reproduce the grid with those columns. Done means the summary row displays the sums for both fields instead of 0, with a regression test if an appropriate test location is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100