SHARE
TWEET

Untitled

a guest Dec 9th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (this.apartmentId != null) {
  2.                         if( this.apartmentId.length() >= 15) {
  3.                             List<Id> apartmentIds = this.apartmentId.split(',');
  4.                             for(Id apartmentId : apartmentIds){
  5.                                 Area_from__c = [SELECT Area__c FROM Resource__c WHERE Id = :this.investmentId ORDER BY Area__c LIMIT 1];
  6.                             }
  7.                         } else {
  8.                             Area_from__c = this.metersFrom != '0' && this.metersFrom != null ? Decimal.valueOf(this.metersFrom) : null;
  9.                         }
  10.                         Area_to__c = this.metersTo != '0' && this.metersTo != null ? Decimal.valueOf(this.metersTo) : (this.metersFrom != '0' && this.metersFrom != null ? Decimal.valueOf(this.metersFrom).setScale(-1, System.RoundingMode.CEILING) : null),
  11.                     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top