diff --git a/_reference/prHelper.html b/_reference/prHelper.html
new file mode 100644
index 000000000..fd5ad7c71
--- /dev/null
+++ b/_reference/prHelper.html
@@ -0,0 +1,59 @@
+
+
+
+
+
+ IMEX IO Extractor
+
+
+
+IMEX IO Extractor
+
+
+
+
+
+
+
+
+
+
diff --git a/client/src/components/card-payment-modal/card-payment-modal.component..jsx b/client/src/components/card-payment-modal/card-payment-modal.component..jsx
index 29a95b87b..fcdbd417c 100644
--- a/client/src/components/card-payment-modal/card-payment-modal.component..jsx
+++ b/client/src/components/card-payment-modal/card-payment-modal.component..jsx
@@ -45,7 +45,7 @@ const CardPaymentModalComponent = ({
const [, { data, refetch, queryLoading }] = useLazyQuery(QUERY_RO_AND_OWNER_BY_JOB_PKS, {
variables: { jobids: [context.jobid] },
- skip: true
+ skip: !context?.jobid
});
//Initialize the intellipay window.
@@ -244,7 +244,8 @@ const CardPaymentModalComponent = ({
- prevValues.payments?.map((p) => p?.jobid).join() !== curValues.payments?.map((p) => p?.jobid).join()
+ prevValues.payments?.map((p) => p?.jobid + p?.amount).join() !==
+ curValues.payments?.map((p) => p?.jobid + p?.amount).join()
}
>
{() => {
diff --git a/hasura/migrations/1726868398933_run_sql_migration/down.sql b/hasura/migrations/1726868398933_run_sql_migration/down.sql
new file mode 100644
index 000000000..20f7cb64f
--- /dev/null
+++ b/hasura/migrations/1726868398933_run_sql_migration/down.sql
@@ -0,0 +1,3 @@
+-- Could not auto-generate a down migration.
+-- Please write an appropriate down migration for the SQL below:
+-- CREATE INDEX idx_jobs_created_at_desc ON jobs (created_at DESC);
diff --git a/hasura/migrations/1726868398933_run_sql_migration/up.sql b/hasura/migrations/1726868398933_run_sql_migration/up.sql
new file mode 100644
index 000000000..e68cba2a2
--- /dev/null
+++ b/hasura/migrations/1726868398933_run_sql_migration/up.sql
@@ -0,0 +1 @@
+CREATE INDEX idx_jobs_created_at_desc ON jobs (created_at DESC);
diff --git a/hasura/migrations/1726868654375_create_index_idx_jobs_vehicleid/down.sql b/hasura/migrations/1726868654375_create_index_idx_jobs_vehicleid/down.sql
new file mode 100644
index 000000000..edec33bc5
--- /dev/null
+++ b/hasura/migrations/1726868654375_create_index_idx_jobs_vehicleid/down.sql
@@ -0,0 +1 @@
+DROP INDEX IF EXISTS "public"."idx_jobs_vehicleid";
diff --git a/hasura/migrations/1726868654375_create_index_idx_jobs_vehicleid/up.sql b/hasura/migrations/1726868654375_create_index_idx_jobs_vehicleid/up.sql
new file mode 100644
index 000000000..0027bbc21
--- /dev/null
+++ b/hasura/migrations/1726868654375_create_index_idx_jobs_vehicleid/up.sql
@@ -0,0 +1,2 @@
+CREATE INDEX "idx_jobs_vehicleid" on
+ "public"."jobs" using btree ("vehicleid");
diff --git a/server/accounting/qbo/qbo-payables.js b/server/accounting/qbo/qbo-payables.js
index 30f5b1f62..c0673cbc5 100644
--- a/server/accounting/qbo/qbo-payables.js
+++ b/server/accounting/qbo/qbo-payables.js
@@ -221,7 +221,7 @@ async function InsertBill(oauthClient, qbo_realmId, req, bill, vendor, bodyshop)
Amount: Dinero({
amount: Math.round(
bill.billlines.reduce((acc, val) => {
- return acc + val.applicable_taxes?.federal ? (val.actual_cost * val.quantity ?? 0) : 0;
+ return acc + (val.applicable_taxes?.federal ? (val.actual_cost * val.quantity ?? 0) : 0);
}, 0) * 100
)
})