|
@@ -309,7 +309,19 @@
|
|
</td>--}}
|
|
</td>--}}
|
|
<td class="pl-3">
|
|
<td class="pl-3">
|
|
@if(strpos(strtolower($bill->code), 'treatment services') !== FALSE)
|
|
@if(strpos(strtolower($bill->code), 'treatment services') !== FALSE)
|
|
- {{ time_in_hrminsec($bill->number_of_units * 3600) }}
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $totalSeconds = $bill->number_of_units * 3600;
|
|
|
|
+ $remainder = $totalSeconds % 60;
|
|
|
|
+ if ($remainder !== 0) {
|
|
|
|
+ if ($remainder < 30) {
|
|
|
|
+ $totalSeconds = $totalSeconds - $remainder;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ $totalSeconds = $totalSeconds + (60 - $remainder);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+ {{ time_in_hrminsec($totalSeconds) }}
|
|
@else
|
|
@else
|
|
@if(!!$bill->number_of_units)
|
|
@if(!!$bill->number_of_units)
|
|
{{ $bill->number_of_units }} unit(s)
|
|
{{ $bill->number_of_units }} unit(s)
|