debug amount unit problem in confirm forms
This commit is contained in:
@@ -169,12 +169,12 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, handleSizeChangeCl
|
||||
{loading ? <LinearProgress/> :
|
||||
<>
|
||||
<NumberShowBox
|
||||
showNumber={(detailsList?.data?.proposed_amount) / 10}
|
||||
showNumber={(detailsList?.data?.proposed_amount) / 1000000}
|
||||
headerTitle={t("ConfirmDialog.proposed_amount")}
|
||||
unitTitle={t("ConfirmDialog.unit")}
|
||||
/>
|
||||
<NumberShowBox
|
||||
showNumber={(detailsList?.data?.approved_amount) / 10}
|
||||
showNumber={(detailsList?.data?.approved_amount) / 1000000}
|
||||
headerTitle={t("ConfirmDialog.approved_amount_title")}
|
||||
unitTitle={t("ConfirmDialog.unit")}
|
||||
/>
|
||||
|
||||
@@ -133,8 +133,8 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, vehicle_type, hand
|
||||
if (values.description != "") formData.append("expert_description", values.description);
|
||||
|
||||
const attachments = [
|
||||
{ title: 'فرم الف', file: values.first_img },
|
||||
{ title: 'فرم ب', file: values.second_img }
|
||||
{title: 'فرم الف', file: values.first_img},
|
||||
{title: 'فرم ب', file: values.second_img}
|
||||
];
|
||||
|
||||
attachments.forEach((attachment, index) => {
|
||||
@@ -142,7 +142,7 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, vehicle_type, hand
|
||||
formData.append(`attachment[${index}][file]`, attachment.file);
|
||||
});
|
||||
|
||||
requestServer(`${CONFIRM_PASSENGER_BOSS}/${rowId}`, 'post',{
|
||||
requestServer(`${CONFIRM_PASSENGER_BOSS}/${rowId}`, 'post', {
|
||||
notification: true,
|
||||
data: formData,
|
||||
}).then((response) => {
|
||||
@@ -220,7 +220,7 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, vehicle_type, hand
|
||||
{loading ? <LinearProgress/> :
|
||||
<>
|
||||
<NumberShowBox
|
||||
showNumber={(detailsList?.data?.proposed_amount) / 10}
|
||||
showNumber={(detailsList?.data?.proposed_amount) / 1000000}
|
||||
headerTitle={t("ConfirmDialog.proposed_amount")}
|
||||
unitTitle={t("ConfirmDialog.unit")}
|
||||
/>
|
||||
|
||||
@@ -2,10 +2,11 @@ import UploadSystem from "@/core/components/UploadSystem";
|
||||
import useNotification from "@/lib/app/hooks/useNotification";
|
||||
import useRequest from "@/lib/app/hooks/useRequest";
|
||||
import {
|
||||
Box,
|
||||
Button, Checkbox,
|
||||
Button,
|
||||
Checkbox,
|
||||
DialogActions,
|
||||
DialogContent, FormControlLabel,
|
||||
DialogContent,
|
||||
FormControlLabel,
|
||||
FormHelperText,
|
||||
Grid,
|
||||
LinearProgress,
|
||||
@@ -179,12 +180,12 @@ const ConfirmContent = ({rowId, mutate, setOpenConfirmDialog, handleSizeChangeCl
|
||||
{loading ? <LinearProgress/> :
|
||||
<>
|
||||
<NumberShowBox
|
||||
showNumber={(detailsList?.data?.proposed_amount) / 10}
|
||||
showNumber={(detailsList?.data?.proposed_amount) / 1000000}
|
||||
headerTitle={t("ConfirmDialog.proposed_amount")}
|
||||
unitTitle={t("ConfirmDialog.unit")}
|
||||
/>
|
||||
<NumberShowBox
|
||||
showNumber={(detailsList?.data?.approved_amount) / 10}
|
||||
showNumber={(detailsList?.data?.approved_amount) / 1000000}
|
||||
headerTitle={t("ConfirmDialog.approved_amount_title")}
|
||||
unitTitle={t("ConfirmDialog.unit")}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user