fix
This commit is contained in:
parent
0ab2e69883
commit
24c4e24032
5
job.go
5
job.go
@ -2769,9 +2769,12 @@ func jobVaultValOth(j Job) {
|
|||||||
for _, v := range p.Val {
|
for _, v := range p.Val {
|
||||||
item, _ := getObjItem(v.ItemID64)
|
item, _ := getObjItem(v.ItemID64)
|
||||||
log.Printf("jobVaultValOth : %s (%s) - %s => %d - %f\n", item.Code, v.Quality, item.Names[0], v.Volume, v.Price)
|
log.Printf("jobVaultValOth : %s (%s) - %s => %d - %f\n", item.Code, v.Quality, item.Names[0], v.Volume, v.Price)
|
||||||
out := fmt.Sprintf("- %s (%s) : %d / %f\n", item.Code, v.Quality, v.Volume, v.Price)
|
out = fmt.Sprintf("- %s (%s) : %d / %f\n", item.Code, v.Quality, v.Volume, v.Price)
|
||||||
|
total += float64(v.Quantity) * v.Price
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out = fmt.Sprintf("Total value : %f", total)
|
||||||
|
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
Type: commandReplyMsg,
|
Type: commandReplyMsg,
|
||||||
Text: out,
|
Text: out,
|
||||||
|
Loading…
Reference in New Issue
Block a user