2024-10-21 11:26:11 +00:00
|
|
|
from accounting.models import ClubAccount, Company
|
|
|
|
from accounting.schemas import ClubAccountSchema, CompanySchema
|
2024-10-21 14:14:00 +00:00
|
|
|
from core.views.widgets.select import AutoCompleteSelect, AutoCompleteSelectMultiple
|
|
|
|
|
|
|
|
_js = ["webpack/accounting/components/ajax-select-index.ts"]
|
2024-10-21 11:26:11 +00:00
|
|
|
|
|
|
|
|
2024-10-21 14:14:00 +00:00
|
|
|
class AutoCompleteSelectClubAccount(AutoCompleteSelect):
|
2024-10-21 11:26:11 +00:00
|
|
|
component_name = "club-account-ajax-select"
|
|
|
|
model = ClubAccount
|
|
|
|
schema = ClubAccountSchema
|
|
|
|
|
2024-10-21 14:14:00 +00:00
|
|
|
js = _js
|
2024-10-21 11:26:11 +00:00
|
|
|
|
|
|
|
|
2024-10-21 14:14:00 +00:00
|
|
|
class AutoCompleteSelectMultipleClubAccount(AutoCompleteSelectMultiple):
|
2024-10-21 11:26:11 +00:00
|
|
|
component_name = "club-account-ajax-select"
|
|
|
|
model = ClubAccount
|
|
|
|
schema = ClubAccountSchema
|
|
|
|
|
2024-10-21 14:14:00 +00:00
|
|
|
js = _js
|
2024-10-21 11:26:11 +00:00
|
|
|
|
|
|
|
|
2024-10-21 14:14:00 +00:00
|
|
|
class AutoCompleteSelectCompany(AutoCompleteSelect):
|
2024-10-21 11:26:11 +00:00
|
|
|
component_name = "company-ajax-select"
|
|
|
|
model = Company
|
|
|
|
schema = CompanySchema
|
|
|
|
|
2024-10-21 14:14:00 +00:00
|
|
|
js = _js
|
2024-10-21 11:26:11 +00:00
|
|
|
|
|
|
|
|
2024-10-21 14:14:00 +00:00
|
|
|
class AutoCompleteSelectMultipleCompany(AutoCompleteSelectMultiple):
|
2024-10-21 11:26:11 +00:00
|
|
|
component_name = "company-ajax-select"
|
|
|
|
model = Company
|
|
|
|
schema = CompanySchema
|
|
|
|
|
2024-10-21 14:14:00 +00:00
|
|
|
js = _js
|