update bugs fix

This commit is contained in:
2023-10-26 11:35:29 +07:00
parent 3ec7727981
commit 8d94ebf524
8 changed files with 24 additions and 7 deletions

View File

@@ -25,6 +25,7 @@ export type Claims = {
payor_id: string;
corporate_id: string;
policy_number: string;
benefit_desc: string;
member: Member;
benefit: Benefit | boolean;
status: string;

View File

@@ -5,6 +5,7 @@ export type Corporate = {
code: string;
name?: string;
welcome_message?: string;
payor_id: string;
help_text?: string;
logo?: any;
logo_url?: string;

View File

@@ -1,5 +1,7 @@
// ----------------------------------------------------------------------
import { Corporate, Plan } from "./corporates";
export type Member = {
id: string,
member_id: string,
@@ -18,4 +20,6 @@ export type Member = {
relation_with_principal: string,
bpjs_class: string,
active: string,
current_plan: Plan,
current_corporate: Corporate,
};

View File

@@ -92,8 +92,8 @@ export default function List() {
<Button
variant="contained"
startIcon={<Download />}
onClick={() => handleGetData('DO')}
sx={{ p: 1.8 }}
onClick={handleGetData}
>
Export
</Button>
@@ -190,7 +190,7 @@ export default function List() {
<TableCell align="left">{row.member?.current_corporate?.code}</TableCell>
<TableCell align="left">{row.member?.current_corporate?.current_policy?.code}</TableCell>
<TableCell align="left">{row.member?.member_id}</TableCell>
<TableCell align="left">{row.benefit ? row.benefit?.description : '-'}</TableCell>
<TableCell align="left">{row.benefit_desc}</TableCell>
<TableCell align="center">
{row.status == 'draft' && (<Label color='secondary' variant='ghost'>{capitalizeFirstLetter(row.status)}</Label>)}