IO-1524 Resolve CC form create issue with decimals.

This commit is contained in:
Patrick Fic
2021-12-13 13:54:07 -08:00
parent e052a0d232
commit 3c9f66c95c
3 changed files with 11 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ export function ContractConvertToRo({
const billingLines = []; const billingLines = [];
if (contractLength > 0) if (contractLength > 0)
billingLines.push({ billingLines.push({
manual_line:true, manual_line: true,
unq_seq: 1, unq_seq: 1,
line_no: 1, line_no: 1,
line_ref: 1, line_ref: 1,
@@ -71,7 +71,7 @@ export function ContractConvertToRo({
contract.kmend - contract.kmstart - contract.dailyfreekm * contractLength; contract.kmend - contract.kmstart - contract.dailyfreekm * contractLength;
if (mileageDiff > 0) { if (mileageDiff > 0) {
billingLines.push({ billingLines.push({
manual_line:true, manual_line: true,
unq_seq: 2, unq_seq: 2,
line_no: 2, line_no: 2,
line_ref: 2, line_ref: 2,
@@ -88,7 +88,7 @@ export function ContractConvertToRo({
if (values.refuelqty > 0) { if (values.refuelqty > 0) {
billingLines.push({ billingLines.push({
manual_line:true, manual_line: true,
unq_seq: 3, unq_seq: 3,
line_no: 3, line_no: 3,
line_ref: 3, line_ref: 3,
@@ -104,7 +104,7 @@ export function ContractConvertToRo({
} }
if (values.applyCleanupCharge) { if (values.applyCleanupCharge) {
billingLines.push({ billingLines.push({
manual_line:true, manual_line: true,
unq_seq: 4, unq_seq: 4,
line_no: 4, line_no: 4,
line_ref: 4, line_ref: 4,
@@ -121,7 +121,7 @@ export function ContractConvertToRo({
if (contract.damagewaiver) { if (contract.damagewaiver) {
//Add for cleanup fee. //Add for cleanup fee.
billingLines.push({ billingLines.push({
manual_line:true, manual_line: true,
unq_seq: 5, unq_seq: 5,
line_no: 5, line_no: 5,
line_ref: 5, line_ref: 5,
@@ -153,10 +153,10 @@ export function ContractConvertToRo({
ownr_co_nm: contract.job.owner.ownr_co_nm, ownr_co_nm: contract.job.owner.ownr_co_nm,
ownr_ph1: contract.job.owner.ownr_ph1, ownr_ph1: contract.job.owner.ownr_ph1,
ownr_ea: contract.job.owner.ownr_ea, ownr_ea: contract.job.owner.ownr_ea,
v_model_desc: contract.job.vehicle.v_model_desc, v_model_desc: contract.job.vehicle && contract.job.vehicle.v_model_desc,
v_model_yr: contract.job.vehicle.v_model_yr, v_model_yr: contract.job.vehicle && contract.job.vehicle.v_model_yr,
v_make_desc: contract.job.vehicle.v_make_desc, v_make_desc: contract.job.vehicle && contract.job.vehicle.v_make_desc,
v_vin: contract.job.vehicle.v_vin, v_vin: contract.job.vehicle && contract.job.vehicle.v_vin,
status: bodyshop.md_ro_statuses.default_completed, status: bodyshop.md_ro_statuses.default_completed,
notes: { notes: {
data: [ data: [

View File

@@ -118,7 +118,7 @@ export default function CourtesyCarCreateFormComponent({ form, saveLoading }) {
}, },
]} ]}
> >
<InputNumber /> <InputNumber precision={0} />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label={t("courtesycars.fields.fleetnumber")} label={t("courtesycars.fields.fleetnumber")}

View File

@@ -31,7 +31,7 @@ export default function CourtesyCarReturnModalComponent() {
}, },
]} ]}
> >
<InputNumber /> <InputNumber precision={0} />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label={t("contracts.fields.fuelin")} label={t("contracts.fields.fuelin")}