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