Vendor
hypha.apply.projects.forms.vendor
¶
BaseVendorForm
¶
Source code in hypha/apply/projects/forms/vendor.py
apply_form_settings
¶
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep1
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
TYPE_CHOICES
class-attribute
instance-attribute
¶
TYPE_CHOICES = [('organization', gettext_lazy('Yes, the account belongs to the organisation above')), ('personal', gettext_lazy('No, it is a personal bank account'))]
type
class-attribute
instance-attribute
¶
type = ChoiceField(choices=TYPE_CHOICES, required=True, widget=RadioSelect)
apply_form_settings
¶
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep2
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
required_to_pay_taxes
class-attribute
instance-attribute
¶
required_to_pay_taxes = TypedChoiceField(choices=((False, gettext_lazy('No')), (True, gettext_lazy('Yes'))), coerce=lambda x: x == 'True', widget=RadioSelect, required=True)
apply_form_settings
¶
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep3
¶
Bases: FileFormMixin
, BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
due_diligence_documents
class-attribute
instance-attribute
¶
due_diligence_documents = MultiFileField(required=True)
apply_form_settings
¶
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep4
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
CURRENCY_CHOICES
class-attribute
instance-attribute
¶
CURRENCY_CHOICES = [(currency, f'{get_currency_name(currency, locale=CURRENCY_LOCALE)} - {currency}') for currency in get_active_currencies()]
account_holder_name
class-attribute
instance-attribute
¶
account_routing_number
class-attribute
instance-attribute
¶
account_currency
class-attribute
instance-attribute
¶
account_currency = ChoiceField(choices=sorted(CURRENCY_CHOICES, key=itemgetter(1)), required=True, initial='USD')
apply_form_settings
¶
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep5
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep6
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
CURRENCY_CHOICES
class-attribute
instance-attribute
¶
CURRENCY_CHOICES = [(currency, f'{get_currency_name(currency, locale=CURRENCY_LOCALE)} - {currency}') for currency in get_active_currencies()]
ib_account_routing_number
class-attribute
instance-attribute
¶
ib_account_number
class-attribute
instance-attribute
¶
ib_account_currency
class-attribute
instance-attribute
¶
ib_account_currency = ChoiceField(choices=sorted(CURRENCY_CHOICES, key=itemgetter(1)), required=False, initial='USD')