function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gowtham kumar 14gowtham kumar 14 

The Quantity field is either not using the lightning formattedNumber component or the value of the item's Quantity__c

Best Answer chosen by gowtham kumar 14
KONDA B 4KONDA B 4
<aura:component >
    
    <aura:attribute name="item" type="Camping_Item__c" required="true"
                     default="{Name:'Tent', Price__c:100, Quantity__c:1, Packed__c:true}"/>
    
    <ui:outputText value="{!v.item.Name}"/>
    
   
    <lightning:formattedNumber value="{!v.item.Price__c}" style="currency" currencyCode="USD" currencyDisplayAs="symbol"/>

    <lightning:formattedNumber  value="{!v.item.Quantity__c}"/>
    <p> <lightning:input type="toggle"                            
                         label="Packed?"                           
                         name="packed"                         
                         checked="{!v.item.Packed__c}" />
    </p> 
</aura:component>


This will work...Try!