fix(templater): Fix epc generation
This commit is contained in:
parent
11e8cc5b1d
commit
d2f3eea8a5
@ -38,17 +38,17 @@ func idToEan13(id string, prefix string) (string, error) {
|
|||||||
func (t *DefaultTemplater) GenerateEPC(iban string, bic string, name string, title string, amount int, currency string) (string, error) {
|
func (t *DefaultTemplater) GenerateEPC(iban string, bic string, name string, title string, amount int, currency string) (string, error) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
code := fmt.Sprintf(`
|
code := fmt.Sprintf(`BCD
|
||||||
BCD
|
|
||||||
002
|
002
|
||||||
1
|
1
|
||||||
SCT
|
INST
|
||||||
%s
|
%s
|
||||||
%s
|
%s
|
||||||
%s
|
%s
|
||||||
%s%.2f
|
%s%.2f
|
||||||
|
|
||||||
%s
|
%s
|
||||||
|
|
||||||
`, bic, name, iban, currency, float64(amount)/100, title,
|
`, bic, name, iban, currency, float64(amount)/100, title,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user