IO-3001 branch cleanup

This commit is contained in:
Patrick Fic
2024-11-20 14:03:34 -08:00
parent f2d9626888
commit fbc7168bde
3 changed files with 8 additions and 7 deletions

View File

@@ -83,7 +83,6 @@ export function JobLinesPartPriceChange({ job, line, refetch, technician }) {
return ( return (
<JobLineConvertToLabor jobline={line} job={job}> <JobLineConvertToLabor jobline={line} job={job}>
{import.meta.env.DEV && <Checkbox checked={line.tax_part} />}
<Popover trigger="click" disabled={true || line.manual_line} content={popcontent}> <Popover trigger="click" disabled={true || line.manual_line} content={popcontent}>
<CurrencyFormatter> <CurrencyFormatter>
{line.db_ref === "900510" || line.db_ref === "900511" ? line.prt_dsmk_m : line.act_price} {line.db_ref === "900510" || line.db_ref === "900511" ? line.prt_dsmk_m : line.act_price}

View File

@@ -408,7 +408,8 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
updateSchComp={updateSchComp} updateSchComp={updateSchComp}
setSchComp={setSchComp} setSchComp={setSchComp}
/> />
{currentUser.email.includes("@rome.") || currentUser.email.includes("@imex.") ? ( {
{/* currentUser.email.includes("@rome.") || currentUser.email.includes("@imex.") ? (
<Button <Button
onClick={async () => { onClick={async () => {
for (const record of data.available_jobs) { for (const record of data.available_jobs) {
@@ -424,7 +425,8 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
> >
Add all jobs as new. Add all jobs as new.
</Button> </Button>
) : null} ) : null */}
}
<Row gutter={[16, 16]}> <Row gutter={[16, 16]}>
<Col span={24}> <Col span={24}>
<JobsAvailableTableComponent <JobsAvailableTableComponent

View File

@@ -907,8 +907,8 @@ function CalculateTaxesTotals(job, otherTotals) {
} }
}); });
console.log("*** Taxable Amounts***"); // console.log("*** Taxable Amounts***");
console.table(JSON.parse(JSON.stringify(taxableAmounts))); // console.table(JSON.parse(JSON.stringify(taxableAmounts)));
//For the taxable amounts, figure out which tax type applies. //For the taxable amounts, figure out which tax type applies.
//Then sum up the total of that tax type and then calculate the thresholds. //Then sum up the total of that tax type and then calculate the thresholds.
@@ -1022,8 +1022,8 @@ function CalculateTaxesTotals(job, otherTotals) {
} }
const remainingTaxableAmounts = taxableAmountsByTier; const remainingTaxableAmounts = taxableAmountsByTier;
console.log("*** Taxable Amounts by Tier***"); // console.log("*** Taxable Amounts by Tier***");
console.table(JSON.parse(JSON.stringify(taxableAmountsByTier))); // console.table(JSON.parse(JSON.stringify(taxableAmountsByTier)));
Object.keys(taxableAmountsByTier).forEach((taxTierKey) => { Object.keys(taxableAmountsByTier).forEach((taxTierKey) => {
try { try {