mirror of
https://github.com/frappe/books.git
synced 2025-01-22 14:48:25 +00:00
fix: empty list if tax.details undef
This commit is contained in:
parent
abcc96752e
commit
95f40d4c20
@ -152,7 +152,7 @@ export abstract class Invoice extends Transactional {
|
||||
}
|
||||
|
||||
const tax = await this.getTax(item.tax!);
|
||||
for (const { account, rate } of tax.details as TaxDetail[]) {
|
||||
for (const { account, rate } of (tax.details ?? []) as TaxDetail[]) {
|
||||
taxes[account] ??= {
|
||||
account,
|
||||
rate,
|
||||
|
Loading…
x
Reference in New Issue
Block a user