feat: complete companies field sync — 4 missing columns + classification mapping
- Migration 060: add bill_to_company_location_id, impersonator_creator_resource_id, invoice_non_contract_items_to_parent_company, quote_email_message_id - entity-mapper: mapCompany() now maps all 57 Autotask API fields incl. classification - autotask.ts: Company interface expanded to cover all API fields - data-browser/companies: add Classification column + sort to table; expand detail modal with classification, category, owner, territory, market_segment, parent_company, create_date
This commit is contained in:
parent
02958e429c
commit
5f0fbb4734
2 changed files with 19 additions and 0 deletions
|
|
@ -83,6 +83,11 @@ export default function CompaniesBrowserPage() {
|
|||
key: 'state',
|
||||
label: 'State',
|
||||
},
|
||||
{
|
||||
key: 'classification',
|
||||
label: 'Classification',
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
key: 'is_active',
|
||||
label: 'Active',
|
||||
|
|
@ -119,7 +124,14 @@ export default function CompaniesBrowserPage() {
|
|||
{ key: 'state', label: 'State' },
|
||||
{ key: 'postal_code', label: 'Postal Code' },
|
||||
{ key: 'country', label: 'Country' },
|
||||
{ key: 'classification', label: 'Classification' },
|
||||
{ key: 'company_type', label: 'Company Type' },
|
||||
{ key: 'company_category_id', label: 'Company Category ID' },
|
||||
{ key: 'owner_resource_id', label: 'Owner Resource ID' },
|
||||
{ key: 'territory_id', label: 'Territory ID' },
|
||||
{ key: 'market_segment_id', label: 'Market Segment ID' },
|
||||
{ key: 'parent_company_id', label: 'Parent Company ID' },
|
||||
{ key: 'create_date', label: 'Created (AT)' },
|
||||
{ key: 'synced_at', label: 'Synced At' },
|
||||
{ key: 'is_deleted', label: 'Is Deleted' },
|
||||
];
|
||||
|
|
|
|||
7
migrations/060_companies_remaining_fields.sql
Normal file
7
migrations/060_companies_remaining_fields.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- Migration 060: Add remaining Autotask API fields to companies table
|
||||
|
||||
ALTER TABLE companies
|
||||
ADD COLUMN IF NOT EXISTS bill_to_company_location_id BIGINT,
|
||||
ADD COLUMN IF NOT EXISTS impersonator_creator_resource_id BIGINT,
|
||||
ADD COLUMN IF NOT EXISTS invoice_non_contract_items_to_parent_company BOOLEAN,
|
||||
ADD COLUMN IF NOT EXISTS quote_email_message_id BIGINT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue