Fix stock mappings JSON fields and enable row selection for editing

This commit is contained in:
Mikhail Chusavitin
2026-02-06 19:39:39 +03:00
parent 104a26d907
commit eb8ac34d83
2 changed files with 18 additions and 8 deletions

View File

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