fix
This commit is contained in:
parent
1bee120fcf
commit
55339293b3
4
item.go
4
item.go
@ -220,7 +220,7 @@ func loadObjItem() error {
|
|||||||
log.Printf("loadObjItem : %s : duplicate code found. Belong to %s\n", objItems[id].Code, objItems[id].Names[0])
|
log.Printf("loadObjItem : %s : duplicate code found. Belong to %s\n", objItems[id].Code, objItems[id].Names[0])
|
||||||
} else {
|
} else {
|
||||||
cacheObjItem[objItems[k].Code] = k
|
cacheObjItem[objItems[k].Code] = k
|
||||||
objItems[k].ItemTypeID = cacheObjSubType[i.ItemType]
|
objItems[k].ItemTypeID = cacheObjSubType[objItems[k].ItemType]
|
||||||
|
|
||||||
for _, n := range objItems[k].Names {
|
for _, n := range objItems[k].Names {
|
||||||
if id, ok := cacheObjItem[n]; ok {
|
if id, ok := cacheObjItem[n]; ok {
|
||||||
@ -254,7 +254,7 @@ func loadObjItem() error {
|
|||||||
|
|
||||||
if weight != obj.Weight {
|
if weight != obj.Weight {
|
||||||
log.Printf("loadObjItem : %s - %s : weight changed : %d => %d\n", objItems[id].Code, objItems[id].Names[0], weight, objItems[id].Weight)
|
log.Printf("loadObjItem : %s - %s : weight changed : %d => %d\n", objItems[id].Code, objItems[id].Names[0], weight, objItems[id].Weight)
|
||||||
setObjItemWeight(obj_id, objItems[id].weight)
|
setObjItemWeight(obj_id, objItems[id].Weight)
|
||||||
}
|
}
|
||||||
|
|
||||||
cacheObjItemId[obj_id] = id
|
cacheObjItemId[obj_id] = id
|
||||||
|
Loading…
Reference in New Issue
Block a user