BOD-72 Refactored calculations to use Dinero library.
This commit is contained in:
@@ -66,12 +66,11 @@ export function JobsAvailableContainer({
|
||||
|
||||
const newJob = {
|
||||
...estData.data.available_jobs_by_pk.est_data,
|
||||
clm_total: newTotals.totals.total_repairs,
|
||||
owner_owing: newTotals.custPayable.total,
|
||||
job_totals: newTotals,
|
||||
clm_total: newTotals.totals.total_repairs.toFormat("0.00"),
|
||||
owner_owing: newTotals.custPayable.total.toFormat("0.00"),
|
||||
job_totals: JSON.stringify(newTotals),
|
||||
};
|
||||
|
||||
console.log("newTotals", newTotals);
|
||||
insertNewJob({
|
||||
variables: {
|
||||
job: selectedOwner
|
||||
|
||||
Reference in New Issue
Block a user