Skip to content

Commit

Permalink
KostZuweisungsEport: VAT fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
kreinhard committed Sep 27, 2023
1 parent 9406370 commit a645600
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ public byte[] export(final List<KostZuweisungDO> list, final String sheetTitle,

final ContentProvider sheetProvider = sheet.getContentProvider();
sheetProvider.putFormat(InvoicesCol.BRUTTO, "#,##0.00;[Red]-#,##0.00");
sheetProvider.putFormat(InvoicesCol.VAT, "#%");
sheetProvider.putFormat(InvoicesCol.VAT, "#0%");
sheetProvider.putFormat(InvoicesCol.KORREKTUR, "#,##0.00;[Red]-#,##0.00");
sheetProvider.putFormat(InvoicesCol.KOST1, "#");
sheetProvider.putFormat(InvoicesCol.KOST2, "#");
sheetProvider.putFormat(InvoicesCol.DATE, "dd.MM.yyyy");

final PropertyMapping mapping = new PropertyMapping();
for (final KostZuweisungDO zuweisung : list) {
final PropertyMapping mapping = new PropertyMapping();
final AbstractRechnungsPositionDO position;
final AbstractRechnungDO rechnung;
final String referenz;
Expand Down Expand Up @@ -183,6 +183,8 @@ public byte[] export(final List<KostZuweisungDO> list, final String sheetTitle,
mapping.add(InvoicesCol.BRUTTO, zuweisung.getBrutto());
if (NumberHelper.isNotZero(position.getVat())) {
mapping.add(InvoicesCol.VAT, position.getVat());
} else {
mapping.add(InvoicesCol.VAT, BigDecimal.ZERO);
}
Integer kontoNummer = null;
if (rechnung instanceof RechnungDO) {
Expand Down

0 comments on commit a645600

Please sign in to comment.