Fix Formatting issues

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-04-08 22:25:07 -04:00
parent df0f8ef9dc
commit 33c282051b
34 changed files with 1805 additions and 1820 deletions

View File

@@ -1,4 +1,4 @@
import {gql} from "@apollo/client";
import { gql } from "@apollo/client";
export const INSERT_NEW_BILL = gql`
mutation INSERT_NEW_BILL($bill: [bills_insert_input!]!) {

View File

@@ -1,4 +1,4 @@
import {gql} from "@apollo/client";
import { gql } from "@apollo/client";
export const QUERY_ALL_ACTIVE_JOBS_PAGINATED = gql`
query QUERY_ALL_JOBS_PAGINATED_STATUS_FILTERED(
@@ -1979,19 +1979,19 @@ export const QUERY_JOB_CLOSE_DETAILS = gql`
kmout
qb_multiple_payers
lbr_adjustments
payments {
amount
created_at
date
exportedat
id
jobid
memo
payer
paymentnum
transactionid
type
}
payments {
amount
created_at
date
exportedat
id
jobid
memo
payer
paymentnum
transactionid
type
}
joblines(where: { removed: { _eq: false } }, order_by: { line_no: asc }) {
id
removed
@@ -2004,7 +2004,7 @@ export const QUERY_JOB_CLOSE_DETAILS = gql`
db_price
act_price
part_qty
notes
notes
mod_lbr_ty
db_hrs
mod_lb_hrs
@@ -2016,9 +2016,9 @@ export const QUERY_JOB_CLOSE_DETAILS = gql`
prt_dsmk_p
convertedtolbr
convertedtolbr_data
act_price_before_ppc
sublet_ignored
sublet_completed
act_price_before_ppc
sublet_ignored
sublet_completed
}
}
}

View File

@@ -1,5 +1,4 @@
import {gql} from "@apollo/client";
import { gql } from "@apollo/client";
const PARTIAL_TASK_FIELDS = gql`
fragment TaskFields on tasks {
@@ -70,7 +69,8 @@ export const QUERY_GET_TASK_BY_ID = gql`
tasks_by_pk(id: $id) {
...TaskFields
}
}`;
}
`;
export const QUERY_ALL_TASKS_PAGINATED = gql`
${PARTIAL_TASK_FIELDS}
@@ -88,20 +88,20 @@ export const QUERY_ALL_TASKS_PAGINATED = gql`
limit: $limit
order_by: $order
where: {
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
...TaskFields
}
tasks_aggregate(
where: {
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
aggregate {
@@ -129,22 +129,22 @@ export const QUERY_JOBLINE_TASKS_PAGINATED = gql`
limit: $limit
order_by: $order
where: {
joblineid: {_eq: $joblineid},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
joblineid: { _eq: $joblineid }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
...TaskFields
}
tasks_aggregate(
where: {
joblineid: {_eq: $joblineid},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
joblineid: { _eq: $joblineid }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
aggregate {
@@ -172,22 +172,22 @@ export const QUERY_PARTSORDER_TASKS_PAGINATED = gql`
limit: $limit
order_by: $order
where: {
partsorderid: {_eq: $partsorderid},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
partsorderid: { _eq: $partsorderid }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
...TaskFields
}
tasks_aggregate(
where: {
partsorderid: {_eq: $partsorderid},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
partsorderid: { _eq: $partsorderid }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
aggregate {
@@ -215,22 +215,22 @@ export const QUERY_BILL_TASKS_PAGINATED = gql`
limit: $limit
order_by: $order
where: {
billid: {_eq: $billid},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
billid: { _eq: $billid }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
...TaskFields
}
tasks_aggregate(
where: {
billid: {_eq: $billid},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
billid: { _eq: $billid }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
aggregate {
@@ -258,22 +258,22 @@ export const QUERY_JOB_TASKS_PAGINATED = gql`
limit: $limit
order_by: $order
where: {
jobid: {_eq: $jobid},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
jobid: { _eq: $jobid }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
...TaskFields
}
tasks_aggregate(
where: {
jobid: {_eq: $jobid},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
assigned_to: {_eq: $assigned_to},
completed: {_eq: $completed}
jobid: { _eq: $jobid }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
assigned_to: { _eq: $assigned_to }
completed: { _eq: $completed }
}
) {
aggregate {
@@ -299,20 +299,20 @@ export const QUERY_MY_TASKS_PAGINATED = gql`
limit: $limit
order_by: $order
where: {
assigned_to: {_eq: $user},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
completed: {_eq: $completed}
assigned_to: { _eq: $user }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
completed: { _eq: $completed }
}
) {
...TaskFields
}
tasks_aggregate(
where: {
assigned_to: {_eq: $user},
bodyshopid: {_eq: $bodyshop},
deleted: {_eq: $deleted},
completed: {_eq: $completed}
assigned_to: { _eq: $user }
bodyshopid: { _eq: $bodyshop }
deleted: { _eq: $deleted }
completed: { _eq: $completed }
}
) {
aggregate {
@@ -328,7 +328,7 @@ export const QUERY_MY_TASKS_PAGINATED = gql`
*/
export const MUTATION_TOGGLE_TASK_COMPLETED = gql`
mutation MUTATION_TOGGLE_TASK_COMPLETED($id: uuid!, $completed: Boolean!, $completed_at: timestamptz) {
update_tasks_by_pk(pk_columns: {id: $id}, _set: {completed: $completed, completed_at: $completed_at}) {
update_tasks_by_pk(pk_columns: { id: $id }, _set: { completed: $completed, completed_at: $completed_at }) {
id
title
completed
@@ -344,7 +344,7 @@ export const MUTATION_TOGGLE_TASK_COMPLETED = gql`
*/
export const MUTATION_TOGGLE_TASK_DELETED = gql`
mutation MUTATION_TOGGLE_TASK_DELETED($id: uuid!, $deleted: Boolean!, $deleted_at: timestamptz) {
update_tasks_by_pk(pk_columns: {id: $id}, _set: {deleted: $deleted, deleted_at: $deleted_at}) {
update_tasks_by_pk(pk_columns: { id: $id }, _set: { deleted: $deleted, deleted_at: $deleted_at }) {
id
title
deleted
@@ -359,7 +359,7 @@ export const MUTATION_TOGGLE_TASK_DELETED = gql`
* @type {DocumentNode}
*/
export const MUTATION_INSERT_NEW_TASK = gql`
mutation MUTATION_INSERT_NEW_TASK($taskInput: [tasks_insert_input!]!) {
mutation MUTATION_INSERT_NEW_TASK($taskInput: [tasks_insert_input!]!) {
insert_tasks(objects: $taskInput) {
returning {
id
@@ -414,4 +414,4 @@ export const MUTATION_UPDATE_TASK = gql`
}
}
}
`
`;