Resolve stripe issues on export IO-490

This commit is contained in:
Patrick Fic
2021-02-18 11:37:01 -08:00
parent 01500e4c9c
commit cd6866fc5c
9 changed files with 39 additions and 15 deletions

View File

@@ -57,7 +57,9 @@ export function JobChecklistForm({
...(type === "intake" && {
scheduled_completion: values.scheduled_completion,
}),
...(type === "deliver" && {
actual_completion: values.actual_completion,
}),
[(type === "intake" && "intakechecklist") ||
(type === "deliver" && "deliverchecklist")]: {
...values,
@@ -154,7 +156,7 @@ export function JobChecklistForm({
{type === "deliver" && (
<div>
<Form.Item
name="actualCompletion"
name="actual_completion"
label={t("jobs.fields.actual_completion")}
rules={[
{

View File

@@ -32,11 +32,7 @@ export default function ShopEmployeesListComponent({
dataIndex: "last_name",
key: "last_name",
},
{
title: t("employees.fields.cost_center"),
dataIndex: "cost_center",
key: "cost_center",
},
{
title: t("employees.fields.base_rate"),
dataIndex: "base_rate",

View File

@@ -198,7 +198,7 @@ export const QUERY_DELIVER_CHECKLIST = gql`
`;
export const QUERY_STRIPE_ID = gql`
query QUERY_STRIPE_ID {
bodyshops {
bodyshops(where: { associations: { active: { _eq: true } } }) {
stripe_acct_id
}
}

View File

@@ -148,9 +148,12 @@ const { Content, Header } = Layout;
const stripePromise = new Promise((resolve, reject) => {
client.query({ query: QUERY_STRIPE_ID }).then((resp) => {
console.log(resp);
resolve(
loadStripe(process.env.REACT_APP_STRIPE_PUBLIC_KEY, {
stripeAccount: resp.data.bodyshops[0].stripe_acct_id || "",
stripeAccount:
resp.data.bodyshops[0].stripe_acct_id || "No Stripe Id Resolve",
})
);
});

View File

@@ -1423,7 +1423,8 @@
},
"payments": {
"errors": {
"exporting": "Error exporting payment(s). {{error}}"
"exporting": "Error exporting payment(s). {{error}}",
"exporting-partner": "Error exporting to partner. Please check the partner interaction log for more errors."
},
"fields": {
"amount": "Amount",

View File

@@ -1423,7 +1423,8 @@
},
"payments": {
"errors": {
"exporting": ""
"exporting": "",
"exporting-partner": ""
},
"fields": {
"amount": "",

View File

@@ -1423,7 +1423,8 @@
},
"payments": {
"errors": {
"exporting": ""
"exporting": "",
"exporting-partner": ""
},
"fields": {
"amount": "",