transaction number is default fixed bank 2 (#3)
This commit is contained in:
parent
2ff6d6bfcf
commit
97b9a455c7
|
|
@ -113,7 +113,7 @@ func AddTransactions(c *gin.Context) {
|
||||||
if entry.Account == ledgerConfig.OpeningBalances {
|
if entry.Account == ledgerConfig.OpeningBalances {
|
||||||
line += fmt.Sprintf("\r\n %s", entry.Account)
|
line += fmt.Sprintf("\r\n %s", entry.Account)
|
||||||
} else {
|
} else {
|
||||||
line += fmt.Sprintf("\r\n %s %s %s", entry.Account, entry.Number.Round(2).String(), account.Currency)
|
line += fmt.Sprintf("\r\n %s %s %s", entry.Account, entry.Number.Round(2).StringFixedBank(2), account.Currency)
|
||||||
}
|
}
|
||||||
// 判断是否设计多币种的转换
|
// 判断是否设计多币种的转换
|
||||||
if account.Currency != ledgerConfig.OperatingCurrency && entry.Account != ledgerConfig.OpeningBalances {
|
if account.Currency != ledgerConfig.OperatingCurrency && entry.Account != ledgerConfig.OpeningBalances {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue