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: Francisco Maria Moyano Casco
Subject: Re: [Health-dev] health_services v4.0.3 - Using the default accountable settings for missing party accountable settings
Date: Thu, 5 May 2022 10:36:20 -0300

I upload those changes on some others in
https://gitlab.com/gnuhealth_fiuner/4.0/health_services
Regards
     Francisco

El jue, 5 may 2022 a las 10:27, Francisco Maria Moyano Casco (<moyanocasco.franciscom@gmail.com>) escribió:
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:
          (.......)
          invoice_data['account'] = \
                party.account_receivable and \
                party.account_receivable.id or \
                config.default_account_receivable.id
          instead of 
          invoice_data['account'] = party.account_receivable.id
          (......)
          if not (party.customer_payment_term or
                config.default_customer_payment_term):
                raise NoPaymentTerm(
                    gettext('health_services.msg_no_payment_term'))
          invoice_data['payment_term'] = \
                party.customer_payment_term and \
                party.customer_payment_term.id or \
                config.default_customer_payment_term.id
          instead of
           if not party.customer_payment_term:
                raise NoPaymentTerm(
                    gettext('health_services.msg_no_payment_term'))
          invoice_data['payment_term'] = party.customer_payment_term.id or 
         (.......)

     Regards
           Francisco

reply via email to

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