gnumed-bugs
[Top][All Lists]
Advanced

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

Re: [Gnumed-bugs] [Gnumed-devel] Unhandled exception on Office > List bi


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] [Gnumed-devel] Unhandled exception on Office > List bills
Date: Thu, 19 Jul 2012 10:24:13 +0200

This will only happen when

- there's a bill without any items on it
- the cursor is hovered over that bill and a tooltip
  is being constructed for it

Karsten


-------- Original-Nachricht --------
> Datum: Wed, 18 Jul 2012 21:18:21 +0000
> Von: "Busser, Jim" <address@hidden>
> An: "address@hidden" <address@hidden>
> Betreff: Re: [Gnumed-bugs] [Gnumed-devel] Unhandled exception on Office >     
> List bills

> On 2012-07-18, at 12:56 PM, Sebastian Hilbert wrote:
> 
> > On Wednesday, July 18, 2012 07:25:47 PM Busser, Jim wrote:
> >
> > > Traceback (most recent call last):
> > >   File
> > >
> "/Users/djb/Downloads/gnumed-client.1.2.1/Gnumed/wxpython/gmListWidgets.py"
> > > , line 1179, in _on_mouse_motion dyna_tt =
> > > self.__item_tooltip_callback(self.__data[item_idx])
> > >   File
> > >
> "/Users/djb/Downloads/gnumed-client.1.2.1/Gnumed/wxpython/gmBillingWidgets.
> > > py", line 619, in get_tooltip return item.format()
> > >   File
> > >
> "/Users/djb/Downloads/gnumed-client.1.2.1/Gnumed/business/gmBilling.py",
> > > line 345, in format txt += _(' Items billed: %s\n') %
> > > len(self._payload[self._idx['pk_bill_items']]) TypeError: object of
> type
> > > 'NoneType' has no len()
> >
> > Hi Jim,
> >
> > How did you trigger this ?
> >
> > Sebastian
> 
> 
> I can trigger this even without activating a patient after login.
> 
> Upon starting GNUmed, I am able to select
> 
>         Office > List bills
> 
> and this will display for me a list of two bills, as per the screen shot.
> The interesting thing is that I can in some cases successfully (on my first
> and second attempt to open Office > List bills)
> 
> - select the second line item and open the PDF
> - select the second line item (or make no selection) and then hit Cancel
> 
> however by the time that I select (for a third time)
> 
>         Office > List bills
> 
> the Unhandled exception dialog is invoked immediately (log attached).
> 
> I am not sure whether, as a result of some earlier experimentation, there
> might exist an invoice for which one or more related rows is for a zero
> amount, and whether such a referenced row (or a zero total across rows in an
> open invoice) can trigger an error even without that invoice to be selected
> and acted on in the list of
> 
>         Showing bills
> 
> 
> [cid:7ad7fc64-ec93-4927-914e-ded4e6ef9f80@ead.ubc.ca]
> 
> 
> 

PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]