Professional Documents
Culture Documents
Starbucks Codebatch
Starbucks Codebatch
Starbucks Codebatch
*
* JIRA: LSB2BTECH-2268
* Author: Lipton Abillar (Simplus)
* Date: July 2023
* Description: Batch class for updating the Licensee Account records
Self_Report_Self_Invoice__c field
*
*/
public LicenseeSelfInvoiceBatch() {
Date today = Date.today();
royaltyStart = today.day() == 1 ? today :
today.addMonths(1).toStartOfMonth();
}
// Filter Stores
// 1. Stores that are Live in Connect
// 2. Stores that opened recently but still in Build
private Map<Id, String> getStoreConnectMap (Set<Id> storeIds, Integer
daysAfterStoreOpening) {
Map<Id, String> result = new Map<Id, String>();
if (storeIds.isEmpty()) {
return result;
}
return result;
}
if (validStores.get(store.Id) == 'Build') {
isLive = false;
}
}
}
}
}