You are on page 1of 7

(Trigger.

isIn isAccUpdt = true;

else {

acc.ACC_tx_Account_Tier__c = null;

acc.ACC_tx_Company_Rank__c = null;

acc.ACC_tx_Account_Status__c = null;

acc.ACC_tx_Customer_Since__c = null;

isAccUpdt = true;

if (accountLowestCustomerSince.size() > 0) {

String lowestCustomerSince;

try {

lowestCustomerSince = accountLowestCustomerSince.get(acc.Id);

catch (Exception exLowestCustomerSince) {

System.debug('Error: ' + exLowestCustomerSince.getMessage() + ' (Line: ' +


exLowestCustomerSince.getLineNumber() + ').');

acc.ACC_tx_Customer_Since__c = null;

isAccUpdt = true;
}

Integer lowestCustomerSinceYear = 0;

if (lowestCustomerSince != null) {

lowestCustomerSinceYear = Integer.valueOf(lowestCustomerSince);

acc.ACC_tx_Customer_Since__c = lowestCustomerSince;

isAccUpdt = true;

if (isAccUpdt) {

if (accUpdtMap != null) {

Account tempAccount = accUpdtMap.get(acc.Id);

if (tempAccount == null) {

accUpdtMap.put(acc.Id, acc);

} isAccUpdt = true;

else {

acc.ACC_tx_Account_Tier__c = null;

acc.ACC_tx_Company_Rank__c = null;
acc.ACC_tx_Account_Status__c = null;

acc.ACC_tx_Customer_Since__c = null;

isAccUpdt = true;

if (accountLowestCustomerSince.size() > 0) {

String lowestCustomerSince;

try {

lowestCustomerSince = accountLowestCustomerSince.get(acc.Id);

catch (Exception exLowestCustomerSince) {

System.debug('Error: ' + exLowestCustomerSince.getMessage() + ' (Line: ' +


exLowestCustomerSince.getLineNumber() + ').');

acc.ACC_tx_Customer_Since__c = null;

isAccUpdt = true;

Integer lowestCustomerSinceYear = 0;

if (lowestCustomerSince != null) {

lowestCustomerSinceYear = Integer.valueOf(lowestCustomerSince);

acc.ACC_tx_Customer_Since__c = lowestCustomerSince;
isAccUpdt = true;

if (isAccUpdt) {

if (accUpdtMap != null) {

Account tempAccount = accUpdtMap.get(acc.Id);

if (tempAccount == null) {

accUpdtMap.put(acc.Id, acc);

} isAccUpdt = true;

else {

acc.ACC_tx_Account_Tier__c = null;

acc.ACC_tx_Company_Rank__c = null;

acc.ACC_tx_Account_Status__c = null;

acc.ACC_tx_Customer_Since__c = null;

isAccUpdt = true;

if (accountLowestCustomerSince.size() > 0) {

String lowestCustomerSince;

try {
lowestCustomerSince = accountLowestCustomerSince.get(acc.Id);

catch (Exception exLowestCustomerSince) {

System.debug('Error: ' + exLowestCustomerSince.getMessage() + ' (Line: ' +


exLowestCustomerSince.getLineNumber() + ').');

acc.ACC_tx_Customer_Since__c = null;

isAccUpdt = true;

Integer lowestCustomerSinceYear = 0;

if (lowestCustomerSince != null) {

lowestCustomerSinceYear = Integer.valueOf(lowestCustomerSince);

acc.ACC_tx_Customer_Since__c = lowestCustomerSince;

isAccUpdt = true;

if (isAccUpdt) {

if (accUpdtMap != null) {

Account tempAccount = accUpdtMap.get(acc.Id);

if (tempAccount == null) {

accUpdtMap.put(acc.Id, acc);

} isAccUpdt = true;
}

else {

acc.ACC_tx_Account_Tier__c = null;

acc.ACC_tx_Company_Rank__c = null;

acc.ACC_tx_Account_Status__c = null;

acc.ACC_tx_Customer_Since__c = null;

isAccUpdt = true;

if (accountLowestCustomerSince.size() > 0) {

String lowestCustomerSince;

try {

lowestCustomerSince = accountLowestCustomerSince.get(acc.Id);

catch (Exception exLowestCustomerSince) {

System.debug('Error: ' + exLowestCustomerSince.getMessage() + ' (Line: ' +


exLowestCustomerSince.getLineNumber() + ').');

acc.ACC_tx_Customer_Since__c = null;

isAccUpdt = true;

}
Integer lowestCustomerSinceYear = 0;

if (lowestCustomerSince != null) {

lowestCustomerSinceYear = Integer.valueOf(lowestCustomerSince);

acc.ACC_tx_Customer_Since__c = lowestCustomerSince;

isAccUpdt = true;

if (isAccUpdt) {

if (accUpdtMap != null) {

Account tempAccount = accUpdtMap.get(acc.Id);

if (tempAccount == null) {

accUpdtMap.put(acc.Id, acc);

You might also like