davidhabib / Auctions-for-Salesforce

DJH Consulting's Auctions for Salesforce managed package
http://djhconsulting.com/auctions-for-salesforce/
7 stars 14 forks source link

AuctionNewTicketWizard exception if Number of Tickets = 0 #114

Closed davidhabib closed 7 years ago

davidhabib commented 8 years ago

https://powerofus.force.com/0D58000002lIlLb

divide by zero from line 56 when number of tickets = 0.

        // set the per ticket deductible FMV
        if (opp.Number_Of_Tickets__c != null && opp.Auction_Non_Deductible_Amount__c != null)
            decTicketFMV = opp.Auction_Non_Deductible_Amount__c / opp.Number_Of_Tickets__c;
        else
            decTicketFMV = AUC_AuctionMaintenance.TicketNonDeductibleAmountOfAuctionId(auctionId);
davidhabib commented 7 years ago

Fixed in release 4.12