Removed whiteboard from front page. Added dates fields. Added rates fields. Started refactoring lines page.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Form, Input, InputNumber } from "antd";
|
||||
import { Form, Input, InputNumber, Divider } from "antd";
|
||||
import React, { useContext } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import JobDetailFormContext from "../../pages/jobs-detail/jobs-detail.page.context";
|
||||
@@ -52,6 +52,126 @@ export default function JobsDetailFinancials({ job }) {
|
||||
initialValue: job.adjustment_bottom_line
|
||||
})(<InputNumber name="adjustment_bottom_line" />)}
|
||||
</Form.Item>
|
||||
<Divider />
|
||||
Totals Table
|
||||
<Form.Item label={t("jobs.fields.labor_rate_desc")}>
|
||||
{getFieldDecorator("labor_rate_desc", {
|
||||
initialValue: job.labor_rate_desc
|
||||
})(<Input name="labor_rate_desc" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_lab")}>
|
||||
{getFieldDecorator("rate_lab", {
|
||||
initialValue: job.rate_lab
|
||||
})(<InputNumber name="rate_lab" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_lad")}>
|
||||
{getFieldDecorator("rate_lad", {
|
||||
initialValue: job.rate_lad
|
||||
})(<InputNumber name="rate_lad" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_lae")}>
|
||||
{getFieldDecorator("rate_lae", {
|
||||
initialValue: job.rate_lae
|
||||
})(<InputNumber name="rate_lae" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_lar")}>
|
||||
{getFieldDecorator("rate_lar", {
|
||||
initialValue: job.rate_lar
|
||||
})(<InputNumber name="rate_lar" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_las")}>
|
||||
{getFieldDecorator("rate_las", {
|
||||
initialValue: job.rate_las
|
||||
})(<InputNumber name="rate_las" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_laf")}>
|
||||
{getFieldDecorator("rate_laf", {
|
||||
initialValue: job.rate_laf
|
||||
})(<InputNumber name="rate_laf" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_lam")}>
|
||||
{getFieldDecorator("rate_lam", {
|
||||
initialValue: job.rate_lam
|
||||
})(<InputNumber name="rate_lam" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_lag")}>
|
||||
{getFieldDecorator("rate_lag", {
|
||||
initialValue: job.rate_lag
|
||||
})(<InputNumber name="rate_lag" />)}
|
||||
</Form.Item>
|
||||
Note //TODO: Remove ATP rate?
|
||||
<Form.Item label={t("jobs.fields.rate_atp")}>
|
||||
{getFieldDecorator("rate_atp", {
|
||||
initialValue: job.rate_atp
|
||||
})(<InputNumber name="rate_atp" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_lau")}>
|
||||
{getFieldDecorator("rate_lau", {
|
||||
initialValue: job.rate_lau
|
||||
})(<InputNumber name="rate_lau" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_la1")}>
|
||||
{getFieldDecorator("rate_la1", {
|
||||
initialValue: job.rate_la1
|
||||
})(<InputNumber name="rate_la1" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_la2")}>
|
||||
{getFieldDecorator("rate_la2", {
|
||||
initialValue: job.rate_la2
|
||||
})(<InputNumber name="rate_la2" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_la3")}>
|
||||
{getFieldDecorator("rate_la3", {
|
||||
initialValue: job.rate_la3
|
||||
})(<InputNumber name="rate_la3" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_la4")}>
|
||||
{getFieldDecorator("rate_la4", {
|
||||
initialValue: job.rate_la4
|
||||
})(<InputNumber name="rate_la4" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_mapa")}>
|
||||
{getFieldDecorator("rate_mapa", {
|
||||
initialValue: job.rate_mapa
|
||||
})(<InputNumber name="rate_mapa" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_mash")}>
|
||||
{getFieldDecorator("rate_mash", {
|
||||
initialValue: job.rate_mash
|
||||
})(<InputNumber name="rate_mash" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_mahw")}>
|
||||
{getFieldDecorator("rate_mahw", {
|
||||
initialValue: job.rate_mahw
|
||||
})(<InputNumber name="rate_mahw" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_ma2s")}>
|
||||
{getFieldDecorator("rate_ma2s", {
|
||||
initialValue: job.rate_ma2s
|
||||
})(<InputNumber name="rate_ma2s" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_ma3s")}>
|
||||
{getFieldDecorator("rate_ma3s", {
|
||||
initialValue: job.rate_ma3s
|
||||
})(<InputNumber name="rate_ma3s" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_mabl")}>
|
||||
{getFieldDecorator("rate_mabl", {
|
||||
initialValue: job.rate_mabl
|
||||
})(<InputNumber name="rate_mabl" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_macs")}>
|
||||
{getFieldDecorator("rate_macs", {
|
||||
initialValue: job.rate_macs
|
||||
})(<InputNumber name="rate_macs" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.rate_matd")}>
|
||||
{getFieldDecorator("rate_matd", {
|
||||
initialValue: job.rate_matd
|
||||
})(<InputNumber name="rate_matd" />)}
|
||||
</Form.Item>
|
||||
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user