Menu

#1228 Error on certain customer/vendor Aging statement

1.4
closed-fixed
nobody
None
5
2014-09-28
2014-09-25
John Locke
No

When attempting to generate an AR Aging statement, getting the following error:

Attribute (curr) is required at constructor LedgerSMB::Entity::Credit_Account::new (defined at LedgerSMB/Entity/Credit_Account.pm line 460) line 76
LedgerSMB::Entity::Credit_Account::new('LedgerSMB::Entity::Credit_Account', 'threshold', 'LedgerSMB::PGNumber=HASH(0x53c4be0)', 'meta_number', 341, 'entity_class', 2, 'id', 349, 'pay_to_name', 'Answers For Elders, Inc.', 'cash_account_id', 1, 'tax_ids', 'ARRAY(0x52ae2b8)', 'discount', 'LedgerSMB::PGNumber=HASH(0x53c4ce8)', 'taxform_id', 1, 'ar_ap_account_id', 6, ...) called at LedgerSMB/Entity/Credit_Account.pm line 325 LedgerSMB::Entity::Credit_Account::get_by_meta_number('LedgerSMB::Entity::Credit_Account', 341, 2) called at LedgerSMB/Scripts/report_aging.pm line 89 LedgerSMB::Scripts::report_aging::generate_statement('LedgerSMB=HASH(0x23ff8b0)') called at lsmb-request.pl line 109 LedgerSMB::Handler::ANON() called at /usr/share/perl5/Try/Tiny.pm line 76 eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x4f6eab0)', 'Try::Tiny::Catch=REF(0x34435c8)') called at lsmb-request.pl line 121 LedgerSMB::Handler::call_script('report_aging.pl', 'LedgerSMB=HASH(0x23ff8b0)') called at lsmb-request.pl line 85 require lsmb-request.pl called at /usr/local/ledger/ledger14/report_aging.pl line 8

... this only happens for a couple customers and a vendor who have some old open transactions -- most customers/vendors get reports generated fine.

Discussion

  • Chris Travers

    Chris Travers - 2014-09-28

    I think this is a migration issue. I will add an additional fix to the db scripts.

     
  • Chris Travers

    Chris Travers - 2014-09-28
    • status: open --> closed-fixed
     
MongoDB Logo MongoDB