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