LMSN-212
Update sql
This commit is contained in:
@@ -153,7 +153,6 @@ class ClaimReportController extends Controller
|
|||||||
->where('corporate_employees.corporate_id', '=', $corporate_id)
|
->where('corporate_employees.corporate_id', '=', $corporate_id)
|
||||||
->where('claim_requests.id', '=', $claimRequestId)
|
->where('claim_requests.id', '=', $claimRequestId)
|
||||||
->select(
|
->select(
|
||||||
DB::raw('ROW_NUMBER() OVER (ORDER BY claim_items.id DESC) as claim_item_number'),
|
|
||||||
'claim_items.nominal_ditagihkan',
|
'claim_items.nominal_ditagihkan',
|
||||||
'claim_items.nominal_dicover',
|
'claim_items.nominal_dicover',
|
||||||
'benefits.description',
|
'benefits.description',
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ export default function DetailHistory() {
|
|||||||
data.data.claim_item?.map((dataItem, index) => (
|
data.data.claim_item?.map((dataItem, index) => (
|
||||||
<TableRow key={index}>
|
<TableRow key={index}>
|
||||||
<TableCell align="left">
|
<TableCell align="left">
|
||||||
<Typography variant="body2">{dataItem.claim_item_number}</Typography>
|
<Typography variant="body2">{parseInt(index)+1}</Typography>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell align="center">
|
<TableCell align="center">
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
Reference in New Issue
Block a user