Added Refund Amt

This commit is contained in:
Srinath 2026-03-25 09:33:55 +05:30
parent 9378cb6916
commit 25f9a5c7df
1 changed files with 26 additions and 3 deletions

View File

@ -187,7 +187,8 @@ const SalesDetailsModal = ({ isModalOpen = false,
const SalesNetAmountModal = ({
isNetAmtModalOpen = false,
setIsNetAmtModalOpen = () => { },
orderDetails = []
orderDetails = [],
RefundAmt
}) => {
return (
<DefaultModal
@ -244,6 +245,17 @@ const SalesNetAmountModal = ({
>
Business UPI
</th>
<th
rowSpan="2"
style={{
border: '1px solid #ddd',
padding: '10px',
backgroundColor: '#055ec0',
color: '#fff',
}}
>
Refund Amt
</th>
<th
rowSpan="2"
style={{
@ -296,7 +308,7 @@ const SalesNetAmountModal = ({
(item.CashAmount || 0) +
(item.UpiAmount || 0) +
(item.CardAmount || 0) +
(item.CreditAmount || 0);
(item.CreditAmount || 0) ;
return (
<tr
@ -403,6 +415,17 @@ const SalesNetAmountModal = ({
>
{item.BusinessUpiAmount}
</td>
<td
style={{
border: '1px solid #ddd',
padding: '8px',
fontWeight: '700',
// backgroundColor: '#eaf6ea',
// color: '#2e7d32',
}}
>
{RefundAmt}
</td>
<td
style={{
border: '1px solid #ddd',
@ -412,7 +435,7 @@ const SalesNetAmountModal = ({
color: '#2e7d32',
}}
>
{total}
{total-RefundAmt}
</td>
</tr>
);