gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] feature request


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] feature request
Date: Wed, 14 Aug 2019 11:02:44 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

On Wed, Aug 14, 2019 at 10:47:07AM +0200, slappinjohn wrote:

> Hi Karsten,
>
> could the format of the invoice numbers be configurable? Whether if its
> random or an internal counter etc.

Sure.

Currently the code does this:

        def get_invoice_id(pk_patient=None):
                return 'GM%s / %s' % (
                        pk_patient,
                        gmDateTime.pydt_strftime (
                                gmDateTime.pydt_now_here(),
                                '%Y-%m-%d / %H%M%S'
                        )
                )

Please suggest what kinds of data you would like to include
into an invoice number and I'll implement it.

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B



reply via email to

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