REG: Percentage field taking zero value

11 views
Skip to first unread message

Kiran Kumar

unread,
Apr 21, 2014, 9:47:44 PM4/21/14
to salesforce-p...@googlegroups.com

   I have an issue with a percentage field so it is not taking the 0 value is there a work around.Can anyone let me know best possible way to solve this!!

Is this a salesforce bug
https://success.salesforce.com/ideaView?id=08730000000ZvAvAAK

dealExpense =  format(l.Deal_Expense__c, false, false);
                 system.debug('l.Deal_Expense__c '+l.Deal_Expense__c);
                if(dealExpense == null || dealExpense=='0.00'){
                system.debug('l.Deal_Expense__c '+l.Deal_Expense__c);
                
                     dealExpense = '15.00';
                }
It is working fine for all other numbers except for '0'.

It is in the opportunity detail extension controller just search for deal expense.

It is storing 0 at the backend in the field when we soql we are seeing that it is storing 0 but on the UI it is defaulting to 15.00.
--
Thanks&Regards
Kiran Amada.
opp detail.docx
Reply all
Reply to author
Forward
0 new messages