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

Empty value always returns 0.00 #4

Open
ndamofli opened this issue Jul 3, 2012 · 5 comments
Open

Empty value always returns 0.00 #4

ndamofli opened this issue Jul 3, 2012 · 5 comments

Comments

@ndamofli
Copy link

ndamofli commented Jul 3, 2012

Hi there,

Can i kindly ask you if there is an option to return to en empty field when the value is zero (always returns to 0.00)

@funny-falcon
Copy link
Owner

I'm bit off development of this library at the moment. Do you use latest versions from http://decorplanit.com/plugin/ ? Bob Knothe (original author) continues on improving library. In fact, there is beta 1.8.0 http://www.decorplanit.com/plugin/autoNumeric-1.8.0-beta.htm

@funny-falcon
Copy link
Owner

By the way: what did you exactly mean? '0.00' always rendered, or returned by autoNumericGet ?

@BobKnothe
Copy link
Collaborator

Dear ndamofli;

Are you referring to the value being returned from autoNumericSet
function? This function does not return an empty string, you will need
to test and override the value.

Bob

On 7/3/2012 9:03 AM, ndamofli wrote:

Hi there,

Can i kindly ask you if there is an option to return to en empty field when the value is zero (always returns to 0.00)


Reply to this email directly or view it on GitHub:
#4

@ndamofli
Copy link
Author

ndamofli commented Jul 3, 2012

Thank you guys so much for the response.
I am doing calculations (sum) in a form, and even if i don't enter numbers for a column, i still get the sum (0.00)
ex.
$('#BSUMa').autoNumericSet(B1a + B2a + B3a + B4a);
Even if i have blank fields (and vars) for B1a,B2a,B3a,B4a, i still get 0,00 at the result #'BSUMa' field)
I would prefer to have a blank sum field...
Anyway your code is excellent !

@BobKnothe
Copy link
Collaborator

We are working on a major update and hope to have it posted within the
next couple weeks (http://www.decorplanit.com/plugin/).

Do you have a regular email address that I can notify you on.

Mine is [email protected]

Thanks,

Bob

On 7/3/2012 9:44 AM, ndamofli wrote:

Thank you guys so much for the response.
I am doing calculations (sum) in a form, and even if i don't enter numbers for a column, i still get the sum (0.00)
ex.
$('#BSUMa').autoNumericSet(B1a + B2a + B3a + B4a);
Even if i have blank fields (and vars) for B1a,B2a,B3a,B4a, i still get 0,00 at the result #'BSUMa' field)
I would prefer to have a blank sum field...
Anyway your code is excellent !


Reply to this email directly or view it on GitHub:
#4 (comment)

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

3 participants