Styling updates.

This commit is contained in:
Patrick Fic
2020-10-22 20:17:42 -07:00
parent 5ef32c5465
commit dc086cb5eb
10 changed files with 121 additions and 89 deletions

View File

@@ -1,3 +1,4 @@
import { message } from "antd";
import gql from "graphql-tag";
import _ from "lodash";
import moment from "moment";
@@ -5,7 +6,7 @@ import client from "../graphql/GraphQLClient";
import {
INSERT_NEW_JOB,
QUERY_JOB_BY_CLM_NO,
UPDATE_JOB
UPDATE_JOB,
} from "../graphql/jobs.queries";
import { QUERY_GROUPS_BY_MAKE_TYPE } from "../graphql/veh_group.queries";
import { store } from "../redux/store";
@@ -56,7 +57,7 @@ export async function UpsertEstimate(job) {
} else {
logger.info("Attemping to insert job record.");
const result = await client.mutate({
await client.mutate({
mutation: INSERT_NEW_JOB,
variables: {
job: { ...job, bodyshopid: shopId },
@@ -64,9 +65,8 @@ export async function UpsertEstimate(job) {
refetchQueries: ["QUERY_ALL_JOBS_PAGINATED"],
});
logger.info("Job inserted succesfully.");
console.log("UpsertEstimate -> result", result);
}
message.success("Job uploaded successfully!");
}
export const GetSupplementDelta = async (jobId, existingLinesO, newLines) => {