transaction number is default fixed bank 2 (#3)

This commit is contained in:
leo 2021-12-16 15:24:05 +08:00
parent 2ff6d6bfcf
commit 97b9a455c7
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ func AddTransactions(c *gin.Context) {
if entry.Account == ledgerConfig.OpeningBalances {
line += fmt.Sprintf("\r\n %s", entry.Account)
} 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 {