#4 ✓resolved
Daniel Parker

Invalid key ':defMacro' when performing validate

Reported by Daniel Parker | June 29th, 2009 @ 05:54 PM | in 2.0 - "Ambidextrous Octopus"

Code:

  invoice = QB::Invoice.new(

:ShipDate => Date.today,

:IsToBePrinted => true,

:IsToBeEmailed => false,

:DueDate => Date.today + 1.month,

:CustomerRef => { :ListID => user[:listid] },

#:TemplateRef => { :ListID => " "},

:InvoiceLine => gf_invoice_line



)
if invoice.valid?
invoice.save



end

Not sure exactly what's causing it, but must be the validate routine is looking for a defMacro attribute when there is none available for this object.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Tags

Pages