Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

Commit 102181f

Browse files
committed
ported package query to money
1 parent c2ae4cb commit 102181f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pkg/query/reflect.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package query
33
import (
44
"fmt"
55
"reflect"
6-
"strconv"
76
"strings"
87

98
"github.com/72nd/acc/pkg/schema"
@@ -136,12 +135,6 @@ type KeyValue struct {
136135

137136
func (k KeyValue) RenderValue(s schema.Schema) string {
138137
switch k.Field.Tag.Get("query") {
139-
case "amount":
140-
amount, err := strconv.ParseFloat(k.Value, 64)
141-
if err != nil {
142-
return k.Value
143-
}
144-
return fmt.Sprintf("%s %.2f", s.JournalConfig.Currency, amount)
145138
case "customer":
146139
cst, err := s.Parties.CustomerById(k.Value)
147140
if err != nil {

0 commit comments

Comments
 (0)