Skip to content

Commit 5126475

Browse files
author
Gerald Baulig
committed
fix(vat): return at least 0 vat if none applies
1 parent 55fccb4 commit 5126475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ export class OrderingService
13251325
currency_id: unit_price.currency_id,
13261326
gross: gross.decimalPlaces(precision).toNumber(),
13271327
net: net.decimalPlaces(precision).toNumber(),
1328-
vats,
1328+
vats: vats.length ? vats : [{ vat: 0 }],
13291329
};
13301330
}
13311331
) ?? []);

0 commit comments

Comments
 (0)