• Clear Sky
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Not sure what is going on here, tried maually updating all of the fields, yet get a generaic "Default Settings not defined", when running an insert. Does anyone know if this is an issue or a way of getting a more detailed Exception error?

private static fw1__Invoice__c anInvoiceFor(Decimal amount, Account account, Contact contact){
fw1__Invoice__c invoice = new fw1__Invoice__c(
fw1__Account__c = account.Id,
fw1__Contact__c = contact.Id,
fw1__Invoice_Date__c = Date.today(),
fw1__Terms__c = 10,
fw1__Description__c = 'An invoice',
fw1__Due_Date__c = Date.today(),
fw1__Is_Voided__c = false
);
insert invoice;