Fix stock mappings JSON fields and enable row selection for editing
This commit is contained in:
@@ -57,9 +57,9 @@ func (StockLog) TableName() string {
|
||||
|
||||
// LotPartnumber maps external part numbers to internal lots.
|
||||
type LotPartnumber struct {
|
||||
Partnumber string `gorm:"column:partnumber;size:255;primaryKey"`
|
||||
LotName string `gorm:"column:lot_name;size:255;primaryKey"`
|
||||
Description *string `gorm:"column:description;size:10000"`
|
||||
Partnumber string `gorm:"column:partnumber;size:255;primaryKey" json:"partnumber"`
|
||||
LotName string `gorm:"column:lot_name;size:255;primaryKey" json:"lot_name"`
|
||||
Description *string `gorm:"column:description;size:10000" json:"description,omitempty"`
|
||||
}
|
||||
|
||||
func (LotPartnumber) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user