[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems searching contacts in LedgerSMB 1.4.0



I've added a contact to LedgerSMB, (Me, I want to pay some expenses) and I can't search under contacts.

I went to Contacts->Search and get:
Contact Search

Entity Class
Name
Control Code
E-mail
Phone
Contact
Only Users (Only for Employees)
Notes
Account Number
Address
City
State/Province
Zip/Postal Code
Country
Active From
Date to



When I run a search I get I get:


Error!

Unable to open script: LedgerSMB::Scripts::contact_reports : : You cannot coerce an attribute (start_from) unless its type (LedgerSMB::DBObject::Date) has a coercion at /usr/lib/perl5/vendor_perl/Moose/Exception.pm line 37
Moose::Exception::_build_trace('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x6a221c0)') called at reader Moose::Exception::trace (defined at /usr/lib/perl5/vendor_perl/Moose/Exception.pm line 9) line 7 Moose::Exception::trace('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x6a221c0)') called at /usr/lib/perl5/vendor_perl/Moose/Exception.pm line 49 Moose::Exception::BUILD('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x6a221c0)', 'HASH(0x6a21398)') called at /usr/lib/perl5/vendor_perl/Class/MOP/Method.pm line 128 Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x6a71a20)', 'Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x6a221c0)', 'HASH(0x6a21398)') called at /usr/lib/perl5/vendor_perl/Moose/Object.pm line 56 Moose::Object::BUILDALL('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x6a221c0)', 'HASH(0x6a21398)') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Class.pm line 282 Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x6a22010)', 'HASH(0x6a21398)') called at /usr/lib/perl5/vendor_perl/Moose/Object.pm line 27 Moose::Object::new('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion', 'attribute_name', 'start_from', 'type_name', 'LedgerSMB::DBObject::Date', 'params', 'HASH(0x2657940)') called at /usr/lib/perl5/vendor_perl/Moose/Util.pm line 51 Moose::Util::throw_exception('CannotCoerceAttributeWhichHasNoCoercion', 'attribute_name', 'start_from', 'type_name', 'LedgerSMB::DBObject::Date', 'params', 'HASH(0x2657940)') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Attribute.pm line 393 Moose::Meta::Attribute::_process_coerce_option('Moose::Meta::Attribute', 'start_from', 'HASH(0x2657940)') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Attribute.pm line 262 Moose::Meta::Attribute::_process_options('Moose::Meta::Attribute', 'start_from', 'HASH(0x2657940)') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Attribute.pm line 53 Moose::Meta::Attribute::new('Moose::Meta::Attribute', 'start_from', 'isa', 'LedgerSMB::DBObject::Date', 'definition_context', 'HASH(0x6a0a8a0)', 'coerce', 1, 'is', 'ro') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Attribute.pm line 101 Moose::Meta::Attribute::interpolate_class_and_new('Moose::Meta::Attribute', 'start_from', 'definition_context', 'HASH(0x6a0a8a0)', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Class.pm line 716 Moose::Meta::Class::_process_new_attribute('Moose::Meta::Class=HASH(0x46fe5d8)', 'start_from', 'definition_context', 'HASH(0x6a0a8a0)', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Class.pm line 709 Moose::Meta::Class::_process_attribute('Moose::Meta::Class=HASH(0x46fe5d8)', 'start_from', 'definition_context', 'HASH(0x6a0a8a0)', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Class.pm line 573 Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x46fe5d8)', 'start_from', 'definition_context', 'HASH(0x6a0a8a0)', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose.pm line 77 Moose::has('Moose::Meta::Class=HASH(0x46fe5d8)', 'start_from', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose/Exporter.pm line 405 Moose::has('start_from', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at LedgerSMB/Report/Contact/History.pm line 275 require LedgerSMB/Report/Contact/History.pm at LedgerSMB/Scripts/contact_reports.pm line 19 LedgerSMB::Scripts::contact_reports::BEGIN at LedgerSMB/Report/Contact/History.pm line 0 eval {...} at LedgerSMB/Report/Contact/History.pm line 0 require LedgerSMB/Scripts/contact_reports.pm at (eval 453) line 1 eval 'require LedgerSMB::Scripts::contact_reports;' at lsmb-request.pl line 103 LedgerSMB::Handler::try {...} at /usr/share/perl5/vendor_perl/Try/Tiny.pm line 81 eval {...} at /usr/share/perl5/vendor_perl/Try/Tiny.pm line 72 Try::Tiny::try('CODE(0x47031b0)', 'Try::Tiny::Catch=REF(0x467a2e8)') called at lsmb-request.pl line 120 LedgerSMB::Handler::call_script('contact_reports.pl', 'LedgerSMB=HASH(0x33d7df8)') called at lsmb-request.pl line 84 require lsmb-request.pl at /opt/ledgersmb/contact_reports.pl line 8 Compilation failed in require at LedgerSMB/Scripts/contact_reports.pm line 19. BEGIN failed--compilation aborted at LedgerSMB/Scripts/contact_reports.pm line 19. Compilation failed in require at (eval 453) line 1.

dbversion: 1.4.0, company: ChilliTronix

Can anyone help?

Kind regards

Benedict White

------------------------------------------------------------------------------
_______________________________________________
Ledger-smb-users mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users