def get_forms(self):
        """
        Return the different payment search forms
        """
        result = OrderedDict()
        period_form = get_period_form(
            self.request,
            title=u"Exporter les encaissements saisis sur la période donnée"
        )

        number_form = get_invoice_number_form(
            self.request,
            period_form.counter,
            title=u"Exporter les encaissements correspondant à une facture",
        )

        all_form = get_all_form(
            self.request,
            period_form.counter,
            title=u"Exporter les encaissements non exportés",
        )

        for form in all_form, number_form, period_form:
            result[form.formid] = {'form': form, 'title': form.schema.title}

        return result
Exemple #2
0
    def get_forms(self):
        """
        Return the different payment search forms
        """
        result = OrderedDict()
        period_form = get_period_form(
            self.request,
            title=u"Exporter les encaissements saisis sur la période donnée")

        number_form = get_invoice_number_form(
            self.request,
            period_form.counter,
            title=u"Exporter les encaissements correspondant à une facture",
        )

        all_form = get_all_form(
            self.request,
            period_form.counter,
            title=u"Exporter les encaissements non exportés",
        )

        for form in all_form, number_form, period_form:
            result[form.formid] = {'form': form, 'title': form.schema.title}

        return result
Exemple #3
0
    def get_forms(self):
        """
            Return the different invoice search forms
        """
        result = OrderedDict()
        period_form = get_period_form(self.request)
        number_form = get_invoice_number_form(
            self.request,
            period_form.counter,
        )
        all_form = get_all_form(self.request, period_form.counter)
        for form in all_form, number_form, period_form:
            result[form.formid] = {'form': form, 'title': form.schema.title}

        return result
Exemple #4
0
    def get_forms(self):
        """
        Implement parent get_forms method
        """
        result = OrderedDict()
        period_form = get_period_form(
            self.request,
            title=u"Exporter les paiements saisis sur la période donnée")
        expense_id_form = get_expense_id_form(
            self.request,
            period_form.counter,
            title=u"Exporter les paiements correspondant à une feuille \
de notes de dépense",
        )
        all_form = get_all_form(
            self.request,
            period_form.counter,
            title=u"Exporter les paiements non exportées",
        )
        for form in period_form, expense_id_form, all_form:
            result[form.formid] = {'form': form, 'title': form.schema.title}
        return result
    def get_forms(self):
        """
        Implement parent get_forms method
        """
        result = OrderedDict()
        period_form = get_period_form(
            self.request,
            title=u"Exporter les paiements saisis sur la période donnée"
        )
        expense_id_form = get_expense_id_form(
            self.request,
            period_form.counter,
            title=u"Exporter les paiements correspondant à une feuille \
de notes de dépense",
        )
        all_form = get_all_form(
            self.request,
            period_form.counter,
            title=u"Exporter les paiements non exportées",
        )
        for form in period_form, expense_id_form, all_form:
            result[form.formid] = {'form': form, 'title': form.schema.title}
        return result