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