Email sending framework in place with nodemailer. Some rendering is happening dynamically, but i todesn't bring in most styles.

This commit is contained in:
Patrick Fic
2020-02-18 17:32:43 -08:00
parent dbf5c38752
commit 81e3ea622f
13 changed files with 277 additions and 16 deletions

View File

@@ -9,3 +9,47 @@ export const INSERT_NEW_PARTS_ORDERS = gql`
}
}
`;
export const REPORT_QUERY_PARTS_ORDER_BY_PK = gql`
query REPORT_QUERY_PARTS_ORDER_BY_PK($id: uuid!) {
parts_orders_by_pk(id: $id) {
job {
id
vehicle {
id
v_model_desc
v_make_desc
v_model_yr
v_vin
}
ro_number
est_number
}
id
deliver_by
parts_order_lines {
id
db_price
act_price
line_desc
line_remarks
oem_partno
status
}
status
user_email
}
bodyshops(where: { associations: { active: { _eq: true } } }) {
id
address1
address2
city
email
federal_tax_id
state
shopname
zip_post
logo_img_path
}
}
`;