Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Invalid key ':defMacro' when performing validate

#4

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.

Reported by Daniel Parker · June 29th, 2009 @ 05:54 PM

State: resolved
Assigned to: Daniel Parker Daniel Parker

Activity

  1. Daniel Parker
    Daniel Parker
    • State changed from new to resolved

    Just made attributes not validate for model objects, since they're not enabled for Models anyway.

    June 30th, 2009 @ 03:31 PM

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.