item_reas
- Last UpdatedNov 12, 2024
- 1 minute read
The item_reas table defines reason codes and descriptions in each group. Each reason determines the grade and state assigned to the item being produced or consumed. This allows a single reason code collected automatically or entered by a user, to automatically assign the grade and state as production and consumption transactions are logged.
|
Field |
Datatype |
PK |
Nulls? |
Description |
|---|---|---|---|---|
|
reas_cd |
int32 |
Y |
N |
Identify reason code |
|
reas_desc |
string80 |
N |
N |
Description of reason |
|
reas_grp_id |
int32 |
N |
N |
Reason group id |
|
item_grade_cd |
int32 |
N |
N |
Assign grade when produced or consumed |
|
item_status_cd |
int32 |
N |
N |
Assign status when produced or consumed |
|
display_seq |
int32 |
N |
N |
Specifies the display sequence of item reasons |
|
last_edit_comment |
string254 |
N |
Y |
Reserved for internal use to indicate why this record was changed |
|
last_edit_by |
string40 |
N |
Y |
Who last changed this record |
|
last_edit_at |
tdatetime |
N |
N |
When this record was last changed |
reas_desc, reas_grp_id is UK
FK from reas_grp_id to item_reas_grp. (Cascade delete)
FK from item_grade_cd to item_grade. (Inhibit delete)
FK from item_status_cd to item_state. (Inhibit delete)