fix: Adjust cost calculation based on service status in cost result view

This commit is contained in:
2025-08-25 17:22:42 +05:45
parent 658d3600a2
commit 40d34a7692

View File

@@ -224,7 +224,11 @@
</div> </div>
</td> </td>
<td class="text-end"> <td class="text-end">
<strong>{{ $breakdown['service']['total'] + $breakdown['onetime']['total'] + $fee['fee'] }}</strong> <strong>
{{ $serviceStatus === 'yes'
? $breakdown['service']['total'] + $breakdown['onetime']['total'] + $fee['fee']
: $breakdown['onetime']['total'] + $fee['fee'] }}
</strong>
</td> </td>
</tr> </tr>
</tbody> </tbody>