IO-233 Vehicle and Customer posting unit testing completed.
This commit is contained in:
@@ -38,7 +38,7 @@ export function DmsCustomerSelector({ bodyshop }) {
|
||||
setVisible(false);
|
||||
socket.emit(
|
||||
"cdk-selected-customer",
|
||||
bodyshop.cdk_configuration.generic_customer_umber
|
||||
bodyshop.cdk_configuration.generic_customer_number
|
||||
);
|
||||
};
|
||||
|
||||
@@ -69,14 +69,16 @@ export function DmsCustomerSelector({ bodyshop }) {
|
||||
<Table
|
||||
title={() => (
|
||||
<div>
|
||||
<Button onClick={onUseSelected}>
|
||||
<Button onClick={onUseSelected} disabled={!selectedCustomer}>
|
||||
{t("jobs.actions.dms.useselected")}
|
||||
</Button>
|
||||
<Button
|
||||
onClick={onUseGeneric}
|
||||
disabled={
|
||||
!bodyshop.cdk_configuration &&
|
||||
!bodyshop.cdk_configuration.generic_customer_umber
|
||||
!(
|
||||
bodyshop.cdk_configuration &&
|
||||
bodyshop.cdk_configuration.generic_customer_number
|
||||
)
|
||||
}
|
||||
>
|
||||
{t("jobs.actions.dms.usegeneric")}
|
||||
|
||||
@@ -49,10 +49,11 @@ export function DmsPostForm({ bodyshop, socket, job }) {
|
||||
}),
|
||||
});
|
||||
};
|
||||
console.log("🚀 ~ file: dms-post-form.component.jsx ~ line 58 ~ job", job);
|
||||
|
||||
const handleFinish = (values) => {
|
||||
socket.emit(`${determineDmsType(bodyshop)}-export-job`, {
|
||||
jobId: job.id,
|
||||
jobid: job.id,
|
||||
txEnvelope: values,
|
||||
});
|
||||
};
|
||||
@@ -274,7 +275,9 @@ export function DmsPostForm({ bodyshop, socket, job }) {
|
||||
}}
|
||||
value={discrep.toFormat()}
|
||||
/>
|
||||
<Button disabled={discrep.getAmount() !== 0} htmlType="submit">
|
||||
<Button //disabled={discrep.getAmount() !== 0} //TODO: REMOVE THIS COMMENT.
|
||||
htmlType="submit"
|
||||
>
|
||||
{t("jobs.actions.dms.post")}
|
||||
</Button>
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user