Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Refactor currency display in RechnungAusgehend and Versandkosten
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmielchen committed Feb 11, 2024
1 parent 0742533 commit eec962e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/lib/buchungssaetze/rechnungAusgehend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function RechnungAusgehend({rechnungsbetrag}: {rechnungsbetrag: number}) {
<tbody>
<tr>
<td><input type="number" value={skonto} onChange={e => setSkonto(parseFloat(e.target.value))} /></td>
<td>{waehrung(skontoBetrag())}</td>
<td>{waehrung(summeOhneSkonto())}</td>
<td>{waehrung(skontoBetrag())}</td>
<td>{waehrung(summeOhneSkonto())}</td>
</tr>
</tbody>
</Table>
Expand Down
16 changes: 8 additions & 8 deletions src/lib/versandkosten.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ function Versandkosten()

<tr>
<td>Summe</td>
<td>{waehrung(calcFpDAL())}</td>
<td>{waehrung(calcFpDeltapost())}</td>
<td>{waehrung(calcFpDAL())}</td>
<td>{waehrung(calcFpDeltapost())}</td>
</tr>

<tr>
Expand All @@ -103,8 +103,8 @@ function Versandkosten()

<tr>
<td>Summe</td>
<td>{waehrung(calcExDAL())}</td>
<td>{waehrung(calcExDeltapost())}</td>
<td>{waehrung(calcExDAL())}</td>
<td>{waehrung(calcExDeltapost())}</td>
</tr>


Expand Down Expand Up @@ -138,8 +138,8 @@ function Versandkosten()

<tr>
<td>Summe</td>
<td>{waehrung(calcFpPOC())}</td>
<td>{waehrung(calcFpPostbox())}</td>
<td>{waehrung(calcFpPOC())}</td>
<td>{waehrung(calcFpPostbox())}</td>
</tr>

<tr>
Expand All @@ -150,8 +150,8 @@ function Versandkosten()

<tr>
<td>Summe</td>
<td>{waehrung(calcExPOC())}</td>
<td>{waehrung(calcExPostbox())}</td>
<td>{waehrung(calcExPOC())}</td>
<td>{waehrung(calcExPostbox())}</td>
</tr>


Expand Down

0 comments on commit eec962e

Please sign in to comment.