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
del-d-w opened this issue Oct 9, 2024 · 0 comments
Open

how to use group: sum in lines #568

del-d-w opened this issue Oct 9, 2024 · 0 comments

Comments

@del-d-w
Copy link

del-d-w commented Oct 9, 2024

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

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

1 participant