Skip to content

Vendor

hypha.apply.projects.models.vendor

BankInformation

Bases: Model

account_holder_name class-attribute instance-attribute

account_holder_name = CharField(max_length=150)

account_routing_number class-attribute instance-attribute

account_routing_number = CharField(max_length=10)

account_number class-attribute instance-attribute

account_number = CharField(max_length=20)

account_currency class-attribute instance-attribute

account_currency = CharField(max_length=10)

need_extra_info class-attribute instance-attribute

need_extra_info = BooleanField(default=False)

branch_address class-attribute instance-attribute

branch_address = TextField(gettext_lazy('Address'), blank=True)

iba_info class-attribute instance-attribute

iba_info = OneToOneField('self', null=True, blank=True, on_delete=SET_NULL, related_name='bank_info', verbose_name='Intermediary Bank Account Information')

nid_type class-attribute instance-attribute

nid_type = CharField(max_length=25, verbose_name='National Identity Document Type', blank=True)

nid_number class-attribute instance-attribute

nid_number = CharField(max_length=20, blank=True, verbose_name='National Identity Document Number')

wagtail_reference_index_ignore class-attribute instance-attribute

wagtail_reference_index_ignore = True

Vendor

Bases: Model

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'))]

created_at class-attribute instance-attribute

created_at = DateTimeField(verbose_name=gettext_lazy('Creation time'), auto_now_add=True)

updated_at class-attribute instance-attribute

updated_at = DateTimeField(verbose_name=gettext_lazy('Update time'), auto_now=True)

user class-attribute instance-attribute

user = OneToOneField(AUTH_USER_MODEL, on_delete=PROTECT, related_name='vendor')

name class-attribute instance-attribute

name = CharField(max_length=150, blank=True)

contractor_name class-attribute instance-attribute

contractor_name = CharField(max_length=150, blank=True)

address class-attribute instance-attribute

address = TextField(gettext_lazy('Address'), blank=True)

type class-attribute instance-attribute

type = CharField(max_length=15, choices=TYPE_CHOICES, blank=True)

required_to_pay_taxes class-attribute instance-attribute

required_to_pay_taxes = BooleanField(default=False)

bank_info class-attribute instance-attribute

bank_info = OneToOneField(BankInformation, on_delete=SET_NULL, null=True, blank=True)

other_info class-attribute instance-attribute

other_info = TextField(blank=True)

user_has_updated_details class-attribute instance-attribute

user_has_updated_details = BooleanField(default=False)

wagtail_reference_index_ignore class-attribute instance-attribute

wagtail_reference_index_ignore = True

get_absolute_url

get_absolute_url()
Source code in hypha/apply/projects/models/vendor.py
def get_absolute_url(self):
    return reverse("apply:projects:vendor-detail", args=[self.pk])

DueDiligenceDocument

Bases: Model

document class-attribute instance-attribute

document = FileField(upload_to='due_diligence_documents', storage=PrivateStorage())

vendor class-attribute instance-attribute

vendor = ForeignKey(Vendor, on_delete=CASCADE, related_name='due_diligence_documents')

wagtail_reference_index_ignore class-attribute instance-attribute

wagtail_reference_index_ignore = True

VendorFormSettings

Bases: BaseSiteSetting

wagtail_reference_index_ignore class-attribute instance-attribute

wagtail_reference_index_ignore = True

name_label class-attribute instance-attribute

name_label = TextField('label', default='1. What is the name of the person/organisation on the contract?')

name_help_text class-attribute instance-attribute

name_help_text = RichTextField('help text', blank=True, default='This is the party name in the contract.')

contractor_name_label class-attribute instance-attribute

contractor_name_label = TextField('label', default="2. What is the individual's name who is signing the contract?")

contractor_name_help_text class-attribute instance-attribute

contractor_name_help_text = RichTextField('help text', blank=True, default='This person is is authorised to sign contract on behalf of the person or organization named above.')

type_label class-attribute instance-attribute

type_label = TextField('label', default='3. Is the bank account owned by the person or organisation in the Question 1 above?')

type_help_text class-attribute instance-attribute

type_help_text = RichTextField('help text', blank=True, default='The name of the bank account must be the same as on the contract.')

required_to_pay_taxes_label class-attribute instance-attribute

required_to_pay_taxes_label = TextField('label', default='Is the organisation required to pay US taxes?')

required_to_pay_taxes_help_text class-attribute instance-attribute

required_to_pay_taxes_help_text = RichTextField('help text', default='', blank=True)

due_diligence_documents_label class-attribute instance-attribute

due_diligence_documents_label = TextField('label', default='Due Diligence Documents')

due_diligence_documents_help_text class-attribute instance-attribute

due_diligence_documents_help_text = RichTextField('help text', blank=True, default='Upload Due Diligence Documents. E.g. w8/w9 forms.')

account_holder_name_label class-attribute instance-attribute

account_holder_name_label = TextField('label', default='Bank Account Holder name')

account_holder_name_help_text class-attribute instance-attribute

account_holder_name_help_text = RichTextField('help text', blank=True, default='This name must be same as the person or organisation that signed the contract. This person is authorised to sign contracts on behalf of the person or organisation named above.')

account_routing_number_label class-attribute instance-attribute

account_routing_number_label = TextField('label', default='Bank Account Routing number')

account_routing_number_help_text class-attribute instance-attribute

account_routing_number_help_text = RichTextField('help text', blank=True, default='Depending on your country, this might be called the ACH, SWIFT, BIC or ABA number.')

account_number_label class-attribute instance-attribute

account_number_label = TextField('label', default='Bank Account Number')

account_number_help_text class-attribute instance-attribute

account_number_help_text = RichTextField('help text', blank=True, default='Depending on your country, this might be called the account number, IBAN, or BBAN number.')

account_currency_label class-attribute instance-attribute

account_currency_label = TextField('label', default='Bank Account Currency')

account_currency_help_text class-attribute instance-attribute

account_currency_help_text = RichTextField('help text', blank=True, default='This is the currency of this bank account.')

need_extra_info_label class-attribute instance-attribute

need_extra_info_label = TextField('label', default='Do you need to provide us with extra information?')

need_extra_info_help_text class-attribute instance-attribute

need_extra_info_help_text = RichTextField('help text', blank=True, default='')

branch_address_label class-attribute instance-attribute

branch_address_label = TextField('label', default='Bank Account Branch Address')

branch_address_help_text class-attribute instance-attribute

branch_address_help_text = TextField('help text', blank=True, default='The address of the bank branch where you have the bank account located(not the bank account holder address)')

ib_account_routing_number_label class-attribute instance-attribute

ib_account_routing_number_label = TextField('label', default='Intermediary Bank Account Routing Number')

ib_account_routing_number_help_text class-attribute instance-attribute

ib_account_routing_number_help_text = RichTextField('help text', blank=True, default='Depending on your country, this might be called ACH, SWIFT, BIC or ABA number')

ib_account_number_label class-attribute instance-attribute

ib_account_number_label = TextField('label', default='Intermediary Bank Account Number')

ib_account_number_help_text class-attribute instance-attribute

ib_account_number_help_text = RichTextField('help text', blank=True, default='Depending on your country, this might be called the account number, IBAN, or BBAN number')

ib_account_currency_label class-attribute instance-attribute

ib_account_currency_label = TextField('label', default='Intermediary Bank Account Currency')

ib_account_currency_help_text class-attribute instance-attribute

ib_account_currency_help_text = RichTextField('help text', blank=True, default='This is the currency of this bank account')

ib_branch_address_label class-attribute instance-attribute

ib_branch_address_label = TextField('label', default='Intermediary Bank Branch Address')

ib_branch_address_help_text class-attribute instance-attribute

ib_branch_address_help_text = RichTextField('help text', blank=True, default='Bank branch address(not the bank account holder address)')

nid_type_label class-attribute instance-attribute

nid_type_label = TextField('label', default='Account Holder National Identity Document Type')

nid_type_help_text class-attribute instance-attribute

nid_type_help_text = RichTextField('help text', blank=True, default='This could be a passport, a National Identity number, or other national identity document.')

nid_number_label class-attribute instance-attribute

nid_number_label = TextField('label', default='Account Holder National Identity Document Number')

nid_number_help_text class-attribute instance-attribute

nid_number_help_text = RichTextField('help text', default='', blank=True)

other_info_label class-attribute instance-attribute

other_info_label = TextField('label', default='Other Information')

other_info_help_text class-attribute instance-attribute

other_info_help_text = RichTextField('help text', blank=True, default='If you need to include other information not listed above, provide it here.')

panels class-attribute instance-attribute

panels = [MultiFieldPanel([FieldPanel('name_label'), FieldPanel('name_help_text')], 'Name'), MultiFieldPanel([FieldPanel('contractor_name_label'), FieldPanel('contractor_name_help_text')], 'Contractor Name'), MultiFieldPanel([FieldPanel('type_label'), FieldPanel('type_help_text')], 'Type'), MultiFieldPanel([FieldPanel('required_to_pay_taxes_label'), FieldPanel('required_to_pay_taxes_help_text')], 'Required to pay taxes'), MultiFieldPanel([FieldPanel('due_diligence_documents_label'), FieldPanel('due_diligence_documents_help_text')], 'Due Diligence Documents'), MultiFieldPanel([FieldPanel('account_holder_name_label'), FieldPanel('account_holder_name_help_text')], 'Account Holder Name'), MultiFieldPanel([FieldPanel('account_routing_number_label'), FieldPanel('account_routing_number_help_text')], 'Account Routing Number'), MultiFieldPanel([FieldPanel('account_number_label'), FieldPanel('account_number_help_text')], 'Account Number'), MultiFieldPanel([FieldPanel('account_currency_label'), FieldPanel('account_currency_help_text')], 'Account Currency'), MultiFieldPanel([FieldPanel('need_extra_info_label'), FieldPanel('need_extra_info_help_text')], 'Need Extra Info'), MultiFieldPanel([FieldPanel('branch_address_label'), FieldPanel('branch_address_help_text')], 'Account Branch Address'), MultiFieldPanel([FieldPanel('ib_account_routing_number_label'), FieldPanel('ib_account_routing_number_help_text')], 'Intermediary Account Routing Number'), MultiFieldPanel([FieldPanel('ib_account_number_label'), FieldPanel('ib_account_number_help_text')], 'Intermediary Account Number'), MultiFieldPanel([FieldPanel('ib_account_currency_label'), FieldPanel('ib_account_currency_help_text')], 'Intermediary Account Currency'), MultiFieldPanel([FieldPanel('ib_branch_address_label'), FieldPanel('ib_branch_address_help_text')], 'Intermediary Account Branch Address'), MultiFieldPanel([FieldPanel('nid_type_label'), FieldPanel('nid_type_help_text')], 'National Identity Document Type'), MultiFieldPanel([FieldPanel('nid_number_label'), FieldPanel('nid_number_help_text')], 'National Identity Document Number'), MultiFieldPanel([FieldPanel('other_info_label'), FieldPanel('other_info_help_text')], 'Other Information')]