예제 #1
0
파일: rest_api.py 프로젝트: lluc/autonomie
    def _more_form_options(self, form_options):
        """
        Add invoice specific form options to the options returned to the end
        user

        :param dict form_options: The options returned to the end user
        :returns: The form_options with new elements
        """
        form_options.update({
            "payment_conditions": json_payment_conditions(self.request),
        })
        return form_options
예제 #2
0
    def _more_form_options(self, form_options):
        """
        Add estimation specific form options to the options returned to the end
        user

        :param dict form_options: The options returned to the end user
        :returns: The form_options with new elements
        """
        form_options.update({
            "payment_conditions": json_payment_conditions(self.request),
            'deposits': DEPOSIT_OPTIONS,
            "payment_times": PAYMENT_TIMES_OPTIONS,
            "payment_displays": PAYMENT_DISPLAY_OPTIONS,
        })
        return form_options
예제 #3
0
    def _more_form_options(self, form_options):
        """
        Add estimation specific form options to the options returned to the end
        user

        :param dict form_options: The options returned to the end user
        :returns: The form_options with new elements
        """
        form_options.update({
            "payment_conditions":
            json_payment_conditions(self.request),
            'deposits':
            DEPOSIT_OPTIONS,
            "payment_times":
            PAYMENT_TIMES_OPTIONS,
            "payment_displays":
            PAYMENT_DISPLAY_OPTIONS,
        })
        return form_options