health-dev
[Top][All Lists]
Advanced

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

Re: [Health-dev] health_services v4.0.3 - Using the default accountable


From: Luis Falcon
Subject: Re: [Health-dev] health_services v4.0.3 - Using the default accountable settings for missing party accountable settings
Date: Mon, 9 May 2022 09:57:08 +0100

Hi, Francisco!

On Thu, 5 May 2022 10:27:04 -0300
Francisco Maria Moyano Casco <moyanocasco.franciscom@gmail.com> wrote:

> Hi everyone,
>      I propose to use the default accountable settings
> (account.config) on the invoice process, so the party accounting
> settings remains as an optional priority, so there is no need to set
> one by one each party. Really useful when you are migrating a lot of
> patients records. I set the next on the the wizard_health_services.py:
[...]
>                 config.default_account_receivable.id

The problem here comes if there's no default AR / AP or payment term
(as in the case of not having setup the initial wizard)

So we should check for the existance of those default values. 

So:
1) Check for accounting values in party (if true, set and exit)
2) Check for accounting values in default config (if true, set and
exit)
3) Raise an error

Bests,
Luis



reply via email to

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