mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-18 10:46:31 +00:00
feat: add tax_id field to Company model and related forms (#9673)
* feat: add tax_id field to Company model and related forms * Update 0075_company_tax_id.py to fix typo * Update models.py to fix typo * Update tests.py to increment 'column_mappings.count()' to 15 * Update api_version.py
This commit is contained in:
@@ -125,6 +125,7 @@ export function companyFields(): ApiFormFieldSet {
|
||||
email: {
|
||||
icon: <IconAt />
|
||||
},
|
||||
tax_id: {},
|
||||
is_supplier: {},
|
||||
is_manufacturer: {},
|
||||
is_customer: {},
|
||||
|
@@ -87,6 +87,7 @@ import {
|
||||
IconStack2,
|
||||
IconStatusChange,
|
||||
IconTag,
|
||||
IconTax,
|
||||
IconTestPipe,
|
||||
IconTool,
|
||||
IconTools,
|
||||
@@ -181,6 +182,7 @@ const icons: InvenTreeIconType = {
|
||||
admin: IconUserBolt,
|
||||
system: IconSettings,
|
||||
license: IconLicense,
|
||||
tax_id: IconTax,
|
||||
|
||||
// Part Icons
|
||||
active: IconCheck,
|
||||
|
@@ -114,6 +114,13 @@ export default function CompanyDetail(props: Readonly<CompanyDetailProps>) {
|
||||
label: t`Email Address`,
|
||||
copy: true,
|
||||
hidden: !company.email
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
name: 'tax_id',
|
||||
label: t`Tax ID`,
|
||||
copy: true,
|
||||
hidden: !company.tax_id
|
||||
}
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user