Skip to content

Commit

Permalink
Do not format item quantity as price or subtotal (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
hql287 authored Mar 9, 2018
1 parent bf0ed7f commit 4595555
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion preview/templates/business/components/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function Main({ invoice, configs, t }) {
{formatNumber(row.price, fraction, separator)}{' '}
{currencyBefore ? null : currency}
</td>
<td className="w10">{formatNumber(row.quantity, 0, separator)}</td>
<td className="w10">{row.quantity}</td>
<td className="w15">
{currencyBefore ? currency : null}{' '}
{formatNumber(row.subtotal, fraction, separator)}{' '}
Expand Down
2 changes: 1 addition & 1 deletion preview/templates/minimal/components/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function Main({ invoice, configs, t }) {
<td>
{padStart(index + 1, 2, 0)}
{'. '}
{row.description} ({formatNumber(row.quantity, 0, separator)})
{row.description} ({row.quantity})
</td>
<td>
{currencyBefore ? currency : null}{' '}
Expand Down

0 comments on commit 4595555

Please sign in to comment.