This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class DefaultValues extends zqu.CreateQuoteController.PopulateDefaultFieldValuePlugin{ | |
global override void populateDefaultFieldValue | |
(SObject record, zqu.PropertyComponentController.ParentController pcc) | |
{ | |
super.populateDefaultFieldValue(record, pcc); | |
record.put('zqu__InitialTerm__c', 12); | |
record.put('zqu__RenewalTerm__c', 12); | |
record.put('zqu__ValidUntil__c', Date.today().addDays(30)); | |
record.put('zqu__StartDate__c', Date.today()); | |
record.put('zqu__PaymentMethod__c', 'Credit Card'); |