fix discount

This commit is contained in:
hamid zarghami
2025-06-01 11:27:51 +03:30
parent 93573c6b97
commit 18ab654201
+2 -2
View File
@@ -213,7 +213,7 @@ const Invoice = () => {
<th style={{ width: "1.5cm" }}>تعداد</th>
<th style={{ width: '2.3cm' }}>مبلغ واحد (ریال)</th>
<th style={{ width: '2.3cm' }}>مبلغ کل (ریال)</th>
<th style={{ width: '2.3cm' }}>تخفیف (ریال)</th>
<th style={{ width: '2.3cm' }}>تخفیف (درصد)</th>
<th style={{ width: '2.3cm' }}>مبلغ کل پس از تخفیف (ریال)</th>
<th style={{ width: '2.3cm' }}>جمع مالیات و عوارض ارزش افزوده (ریال)</th>
<th style={{ width: '2.5cm' }}>جمع کل پس از تخفیف و مالیات و عوارض (ریال)</th>
@@ -229,7 +229,7 @@ const Invoice = () => {
<td>{item.count}</td>
<td>{NumberFormat(Number(item.unitPrice) * 10)}</td>
<td>{NumberFormat(Number(item.unitPrice) * Number(item.count) * 10)}</td>
<td>{NumberFormat(Number(item.discount) * 10)}</td>
<td>{NumberFormat(Number(item.discount))}</td>
<td>{NumberFormat(Number(item.totalPrice) * 10)}</td>
<td>{NumberFormat(Number(item.totalPrice) * 0.1 * 10)}</td>
<td>{NumberFormat(Number(item.totalPrice) * 0.1 * 10 + Number(item.totalPrice) * 10)}</td>