mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-27 22:26:00 +00:00
Project code active (#12250)
* Add 'active' field to the ProjectCode model - Allows retiring of old project codes without deleting * Update UI table * Refactor ProjectCodeField * Add unit test * Bump API version and CHANGELOG
This commit is contained in:
@@ -20,7 +20,6 @@ import {
|
||||
IconHash,
|
||||
IconInfoCircle,
|
||||
IconLink,
|
||||
IconList,
|
||||
IconNotes,
|
||||
IconSitemap,
|
||||
IconUser,
|
||||
@@ -57,7 +56,7 @@ import {
|
||||
useSerialNumberGenerator
|
||||
} from '../hooks/UseGenerator';
|
||||
import { useGlobalSettingsState } from '../states/SettingsStates';
|
||||
import { TagsField } from './CommonFields';
|
||||
import { ProjectCodeField, TagsField } from './CommonFields';
|
||||
/*
|
||||
* Construct a set of fields for creating / editing a PurchaseOrderLineItem instance
|
||||
*/
|
||||
@@ -191,9 +190,7 @@ export function usePurchaseOrderLineItemFields({
|
||||
value: autoPricing,
|
||||
onValueChange: setAutoPricing
|
||||
},
|
||||
project_code: {
|
||||
description: t`Select project code for this line item`
|
||||
},
|
||||
project_code: ProjectCodeField(),
|
||||
target_date: {
|
||||
icon: <IconCalendar />
|
||||
},
|
||||
@@ -271,9 +268,7 @@ export function usePurchaseOrderFields({
|
||||
}
|
||||
},
|
||||
supplier_reference: {},
|
||||
project_code: {
|
||||
icon: <IconList />
|
||||
},
|
||||
project_code: ProjectCodeField(),
|
||||
order_currency: {
|
||||
icon: <IconCoins />
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user