class OwnedInvestmentsOver5KTableEntry(models.Model): table = models.ForeignKey(OwnedInvestmentsOver5KTable, on_delete=models.CASCADE, null=True) loan_beneficiary = models.ForeignKey(Person, on_delete=models.CASCADE, null=True) issue_title = models.CharField("Emitent titlu", max_length=128, null=True, blank=True) shareholder_society = models.CharField( "Societate in care persoana este actionar sau asociat", max_length=128, null=True, blank=True) type_of_investment = models.CharField( "Tipul", max_length=128, choices=InvestmentType.return_as_iterable()) number_of_stocks = models.IntegerField("Numar de titluri", null=True, blank=True) share_ratio = models.DecimalField("Cota de participare", max_digits=5, decimal_places=2, null=True, blank=True, validators=[validate_percentage]) total_value = models.FloatField("Valoare totala la zi") currency = models.CharField("Valuta", max_length=16, choices=Currency.return_as_iterable())
class OwnedInvestmentsTableEntry(models.Model): table = models.ForeignKey(OwnedInvestmentsTable, on_delete=models.CASCADE) investment_issuer_name = models.CharField( "Emitent titlu/societate in care persoana este actionar sau asociat" "/beneficiar de imprumut", max_length=128) type_of_investment = models.IntegerField( "Tipul", choices=InvestmentType.return_as_iterable()) number_of_stocks = models.IntegerField("Numar de titluri") share_ratio = models.DecimalField("Cota de participare", max_digits=3, decimal_places=2) total_value = models.IntegerField("Valoare totala la zi") currency = models.CharField("Valuta", max_length=16, choices=Currency.return_as_iterable())
class TranscribeOwnedInvestmentsOver5KRowEntry(forms.Form): beneficiary_surname = forms.CharField( label="Care este numele beneficiarului?") beneficiary_name = forms.CharField( label="Care este prenumele beneficiarului?") issue_title = forms.CharField(label="Care este titlul emitentului?") shareholder_society = forms.CharField( label="Care este societatea in care persoana este actionar sau asociat?" ) type_of_investment = forms.ChoiceField( label="Care este tipul?", choices=InvestmentType.return_as_iterable()) number_of_stocks = forms.IntegerField( label="Care este numarul de titluri?") share_ratio = forms.FloatField(label="Care este cota de participare?") total_value = forms.FloatField(label="Care este valoarea totala la zi?") currency = forms.ChoiceField(label="Care este moneda?", choices=Currency.return_as_iterable())