//opptys should only be updated in the "after" part of trigger if there actually was a zipcode update
//opptys should only be updated in the "after" part of trigger if there actually was a zipcode update
shouldUpdateOpportunityWithNewSubDivs = true;
shouldUpdateOpportunityWithNewSubDivs = true;
}
}
}
}
//this method queries all the Subdivisions underneath the account and accumulates them in the form of a semi colon delimited string of values to update the account
//this method queries all the Subdivisions underneath the account and accumulates them in the form of a semi colon delimited string of values to update the account
Map<ID, Set<String>> mapAccountIDToSubDivs = new Map<ID, Set<String>>();
Map<ID, Set<String>> mapAccountIDToSubDivs = new Map<ID, Set<String>>();
for(Merchant_Addresses__c ma: [Select ID, Account__c, Subdivision__c, Subdivision__r.Name, Zip_Postal_Code__c from Merchant_Addresses__c where Account__c in : accountIDs])
for(Merchant_Addresses__c ma: [Select ID, Account__c,Account__r.Feature_Country__c, Subdivision__c, Subdivision__r.Name, Zip_Postal_Code__c from Merchant_Addresses__c where Account__c in : accountIDs])
//this method queries all the Subdivisions underneath the account and accumulates them in the form of a semi colon delimited string of values to update the account
//this method queries all the Subdivisions underneath the account and accumulates them in the form of a semi colon delimited string of values to update the account
Map<ID, Set<String>> mapOpptyIDToSubDivs = new Map<ID, Set<String>>();
Map<ID, Set<String>> mapOpptyIDToSubDivs = new Map<ID, Set<String>>();
for(Address__c ra: [Select ID, Opportunity__c, Subdivision__c, Subdivision__r.Name, Zip_Postal_Code__c from Address__c where Opportunity__c in : opptyIDs])
for(Address__c ra: [Select ID, Opportunity__c, Subdivision__c, Subdivision__r.Name, Zip_Postal_Code__c from Address__c where Opportunity__c in : opptyIDs])
//this method queries all the Subdivisions underneath the account and accumulates them in the form of a semi colon delimited string of values to update the account
//this method queries all the Subdivisions underneath the account and accumulates them in the form of a semi colon delimited string of values to update the account