Merged in release/2022-04-15 (pull request #446)

release/2022-04-15

Approved-by: Patrick Fic
This commit is contained in:
Patrick Fic
2022-04-14 00:30:22 +00:00
11 changed files with 4761 additions and 4731 deletions

View File

@@ -4,7 +4,7 @@ import { connect } from "react-redux";
import { createStructuredSelector } from "reselect"; import { createStructuredSelector } from "reselect";
import { setPartnerVersion } from "../../redux/application/application.actions"; import { setPartnerVersion } from "../../redux/application/application.actions";
import { selectBodyshop } from "../../redux/user/user.selectors"; import { selectBodyshop } from "../../redux/user/user.selectors";
import {store} from '../../redux/store'
const mapStateToProps = createStructuredSelector({ const mapStateToProps = createStructuredSelector({
//currentUser: selectCurrentUser //currentUser: selectCurrentUser
bodyshop: selectBodyshop, bodyshop: selectBodyshop,
@@ -18,7 +18,7 @@ export default connect(
mapDispatchToProps mapDispatchToProps
)(PartnerPingComponent); )(PartnerPingComponent);
export function PartnerPingComponent({ bodyshop, setPartnerVersion }) { export function PartnerPingComponent({ bodyshop, }) {
useEffect(() => { useEffect(() => {
// Create an scoped async function in the hook // Create an scoped async function in the hook
@@ -30,7 +30,7 @@ export function PartnerPingComponent({ bodyshop, setPartnerVersion }) {
return <></>; return <></>;
} }
export async function checkPartnerStatus(bodyshop, checkAcctPath = false) { export async function checkPartnerStatus(bodyshop) {
if (!bodyshop) return; if (!bodyshop) return;
try { try {
//if (process.env.NODE_ENV === "development") return; //if (process.env.NODE_ENV === "development") return;
@@ -38,7 +38,8 @@ export async function checkPartnerStatus(bodyshop, checkAcctPath = false) {
// const { // const {
// appver, //qbpath // appver, //qbpath
// } = PartnerResponse.data; // } = PartnerResponse.data;
setPartnerVersion(PartnerResponse.data); console.log(PartnerResponse.data)
store.dispatch(setPartnerVersion(PartnerResponse.data));
// if ( // if (
// checkAcctPath && // checkAcctPath &&
// !qbpath && // !qbpath &&

View File

@@ -39,13 +39,18 @@ function VendorsFormContainer({ refetch, bodyshop }) {
const [insertvendor] = useMutation(INSERT_NEW_VENDOR); const [insertvendor] = useMutation(INSERT_NEW_VENDOR);
const [deleteVendor] = useMutation(DELETE_VENDOR); const [deleteVendor] = useMutation(DELETE_VENDOR);
const handleDelete = () => { const handleDelete = async () => {
setFormLoading(true); setFormLoading(true);
deleteVendor({ const result = await deleteVendor({
variables: { id: selectedvendor }, variables: { id: selectedvendor },
refetchQueries: ["QUERY_ALL_VENDORS"], refetchQueries: ["QUERY_ALL_VENDORS"],
}) });
.then((r) => { console.log(result);
if (result.errors) {
notification["error"]({
message: t("vendors.errors.deleting"),
});
} else {
notification["success"]({ notification["success"]({
message: t("vendors.successes.deleted"), message: t("vendors.successes.deleted"),
}); });
@@ -55,14 +60,9 @@ function VendorsFormContainer({ refetch, bodyshop }) {
refetch().then((r) => { refetch().then((r) => {
form.resetFields(); form.resetFields();
}); });
}
setFormLoading(false); setFormLoading(false);
})
.catch((error) => {
notification["error"]({
message: t("vendors.errors.deleting"),
});
setFormLoading(false);
});
}; };
const handleFinish = async (values) => { const handleFinish = async (values) => {

View File

@@ -48,10 +48,12 @@ export function JobsAvailablePageContainer({
</Link> </Link>
} }
/> />
{!partnerVersion && (
<AlertComponent <AlertComponent
type="warning" type="warning"
message={t("general.messages.partnernotrunning")} message={t("general.messages.partnernotrunning")}
/> />
)}
<JobsAvailableTableContainer /> <JobsAvailableTableContainer />
</div> </div>
</RbacWrapper> </RbacWrapper>

View File

@@ -0,0 +1 @@
{}

View File

@@ -804,6 +804,7 @@
- appt_colors - appt_colors
- appt_length - appt_length
- attach_pdf_to_email - attach_pdf_to_email
- bill_allow_post_to_closed
- bill_tax_rates - bill_tax_rates
- cdk_configuration - cdk_configuration
- cdk_dealerid - cdk_dealerid
@@ -895,6 +896,7 @@
- appt_colors - appt_colors
- appt_length - appt_length
- attach_pdf_to_email - attach_pdf_to_email
- bill_allow_post_to_closed
- bill_tax_rates - bill_tax_rates
- cdk_configuration - cdk_configuration
- city - city
@@ -2688,6 +2690,7 @@
- asgn_date - asgn_date
- asgn_no - asgn_no
- asgn_type - asgn_type
- auto_add_ats
- ca_bc_pvrt - ca_bc_pvrt
- ca_customer_gst - ca_customer_gst
- ca_gst_registrant - ca_gst_registrant
@@ -2847,6 +2850,7 @@
- policy_no - policy_no
- production_vars - production_vars
- queued_for_parts - queued_for_parts
- rate_ats
- rate_la1 - rate_la1
- rate_la2 - rate_la2
- rate_la3 - rate_la3
@@ -2948,6 +2952,7 @@
- asgn_date - asgn_date
- asgn_no - asgn_no
- asgn_type - asgn_type
- auto_add_ats
- ca_bc_pvrt - ca_bc_pvrt
- ca_customer_gst - ca_customer_gst
- ca_gst_registrant - ca_gst_registrant
@@ -3107,6 +3112,7 @@
- policy_no - policy_no
- production_vars - production_vars
- queued_for_parts - queued_for_parts
- rate_ats
- rate_la1 - rate_la1
- rate_la2 - rate_la2
- rate_la3 - rate_la3
@@ -3218,6 +3224,7 @@
- asgn_date - asgn_date
- asgn_no - asgn_no
- asgn_type - asgn_type
- auto_add_ats
- ca_bc_pvrt - ca_bc_pvrt
- ca_customer_gst - ca_customer_gst
- ca_gst_registrant - ca_gst_registrant
@@ -3377,6 +3384,7 @@
- policy_no - policy_no
- production_vars - production_vars
- queued_for_parts - queued_for_parts
- rate_ats
- rate_la1 - rate_la1
- rate_la2 - rate_la2
- rate_la3 - rate_la3

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."bodyshops" add column "bill_allow_post_to_closed" boolean
-- not null default 'false';

View File

@@ -0,0 +1,2 @@
alter table "public"."bodyshops" add column "bill_allow_post_to_closed" boolean
not null default 'false';

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "auto_add_ats" boolean
-- null default 'false';

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "auto_add_ats" boolean
null default 'false';

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "rate_ats" numeric
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "rate_ats" numeric
null;