#769 1.3.29 - Inventory activity is_zero crash

1.3
closed-works-for-me
nobody
5
2013-02-14
2013-01-25
No

I created an order to vendor -> under shipping I received all the units for stock.
When I try to check inventory activity, I got an empty list.
Expected: receiving show up.

Discussion

  • Pongracz Istvan

    Pongracz Istvan - 2013-01-25

    Now it crashes after apply filter. Meanwhile I upgraded the DB to 1.3.29 as I do not remember, I already did or not.

     
  • Chris Travers

    Chris Travers - 2013-01-27

    This is the inventory activity report, under reports?

     
  • Chris Travers

    Chris Travers - 2013-01-27

    and when you say "crashes" what do you mean? Can you give me an error? I can't reproduce anything liek that on my side.

     
  • Chris Travers

    Chris Travers - 2013-01-27

    (anything like the crash, the inventory activity report at present, and in 1.4, only shows inventory bought and sold, not inventory that comes int he door or goes out. Inventory is only recorded when income or expenses are accrued.)

     
  • Pongracz Istvan

    Pongracz Istvan - 2013-01-27

    It crashes under Reports/Inventory activity
    I have RFQ -> AP order -> goods received (stock items increased) -> AP invoice
    So, I guess it should have some activities :)

     
  • Pongracz Istvan

    Pongracz Istvan - 2013-01-28

    2013/01/28 10:15:25 [error] 1854#0: *17 FastCGI sent in stderr: "Can't call method "is_zero" on an undefined value at /usr/share/perl5/Math/BigInt.pm line 1197.
    Compilation failed in require at /usr/share/nginx/www/lsmbhun/rp.pl line 7" while reading response header from upstream, client: 10.0.2.127, server: _, request: "GET /lsmbhun/rp.pl?department=Hardver+kereskedelem--1&fromdate=&todate=&frommonth=&fromyear=&interval=0&partnumber=&description=&nextsub=generate_inv_activity&title=K%C3%A9szletmozg%C3%A1sok&path=bin%2Fmozilla&sessionid=&login=pongraczi&action=continue HTTP/1.0", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "lsmb.startit.hu", referrer: "http://lsmb.startit.hu/lsmbhun/rp.pl?login=pongraczi&action=report&module=rp.pl&report=inv_activity&"

     
  • Pongracz Istvan

    Pongracz Istvan - 2013-01-28

    Seems this kind of issue is known on the devel list.
    Rerefence: [Ledger-smb-devel] Math::BigInt dislikes undefined values

     
  • Pongracz Istvan

    Pongracz Istvan - 2013-01-28

    apt-get remove libmath-bigint-gmp-perl libmath-bigint-perl
    This solved the problem, but I am not sure, this is a good solution. The list now includes the received goods as expected.
    (I did not check other parts of the software, yet.)

     
  • Chris Travers

    Chris Travers - 2013-02-07

    For the crash we will need a stack trace. You can do this by installing Carp::Always and adding the following to where the use statements are in the old-handler.pl:

    use Carp::Always;

     
  • Chris Travers

    Chris Travers - 2013-02-07
    • summary: 1.3.29 - Inventory activity empty after receiving goods --> 1.3.29 - Inventory activity is_zero crash
     
  • Chris Travers

    Chris Travers - 2013-02-14
    • status: open --> closed-works-for-me
     
  • Chris Travers

    Chris Travers - 2013-02-14

    With the latest Math libraries I was not able to reproduce this. Closing.