IO-233 Vehicle and Customer posting unit testing completed.

This commit is contained in:
Patrick Fic
2021-08-24 18:14:41 -07:00
parent 748f8f472d
commit db5b11f6d3
5 changed files with 179 additions and 81 deletions

View File

@@ -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")}