Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use group: sum in lines #568

Open
BhargaviRM opened this issue Oct 9, 2024 · 1 comment
Open

how to use group: sum in lines #568

BhargaviRM opened this issue Oct 9, 2024 · 1 comment

Comments

@BhargaviRM
Copy link

total_admin_fee:
parser: lines
start: Total Claims\s+Admin Fee
end: Totals
line:
- $(?P[\d,]+.\d{2})\s+$(?P[\d,]+.\d{2})\s+$(?P[\d,]+.\d{2})
types:
standard: float
connect: float
other: float
group: sum

with this sum ( standard+ connect+ other ) is not coming

currently getting this  

'total_admin_fee': [ { 'connect': 0.0,
                     'other': 0.0,
                     'standard': 10.0},
                   { 'connect': 0.0,
                     'other': 0.0,
                     'standard': 20.0}]

but i want 'total_admin_fee': 30.0

@bosd
Copy link
Collaborator

bosd commented Dec 22, 2024

This is not yet supported by the lines plugin.
I made a PR for the Tables plugin to support grouping in #592
Maybe you ca use that as an alternative?

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

No branches or pull requests

2 participants