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

Fix submit handling of thousands when creating data entry batch #22772

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Feb 14, 2022

Overview

Fix submit handling of thousands when creating data entry batch

Before

image

When creating a new batch entering the total batch amount with a comma (eg. 5,000.00) results in the amount being truncated

After

Saves correctly

Technical Details

Note I tested & the apiv4 does fine at handling created_id & created_date so I removed that from the form

Comments

I noticed some other issues around this flow - I think I have another PR open for the enotices so I kept this PR tightly constrained to post process

@civibot
Copy link

civibot bot commented Feb 14, 2022

(Standard links)

@eileenmcnaughton
Copy link
Contributor Author

test this please

1 similar comment
@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@colemanw @demeritcowboy can anyone check this - it was failing tests before for reasons not related to this PR

@demeritcowboy
Copy link
Contributor

I think this is ok. It creates a bunch of new E_NOTICES that weren't there before but I guess that's what you're referring to in the description.

Noting that this creation page seems to work with euro settings too, but then the actual batch page doesn't really.

@demeritcowboy demeritcowboy merged commit 3a0cc2f into civicrm:master Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants