2
0
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:
sufyan-mukadam
2025-07-15 00:00:46 +01:00
committed by GitHub
parent d62ac38cb1
commit dcaf7cf7d7
9 changed files with 50 additions and 3 deletions

View File

@@ -125,6 +125,7 @@ export function companyFields(): ApiFormFieldSet {
email: {
icon: <IconAt />
},
tax_id: {},
is_supplier: {},
is_manufacturer: {},
is_customer: {},

View File

@@ -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,

View File

@@ -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
}
];