IO-1695 Edit time stamp when creating time ticket.
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
|||||||
Space,
|
Space,
|
||||||
Switch,
|
Switch,
|
||||||
Table,
|
Table,
|
||||||
Tooltip,
|
Tooltip
|
||||||
} from "antd";
|
} from "antd";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@@ -339,20 +339,14 @@ export function BillEnterModalLinesComponent({
|
|||||||
record.name,
|
record.name,
|
||||||
"actual_price",
|
"actual_price",
|
||||||
]);
|
]);
|
||||||
console.log(
|
|
||||||
"🚀 ~ file: bill-form.lines.component.jsx ~ line 342 ~ columns ~ price",
|
|
||||||
price
|
|
||||||
);
|
|
||||||
const adjustmentRate = getFieldValue([
|
const adjustmentRate = getFieldValue([
|
||||||
"billlines",
|
"billlines",
|
||||||
record.name,
|
record.name,
|
||||||
"lbr_adjustment",
|
"lbr_adjustment",
|
||||||
"rate",
|
"rate",
|
||||||
]);
|
]);
|
||||||
console.log(
|
|
||||||
"🚀 ~ file: bill-form.lines.component.jsx ~ line 348 ~ columns ~ adjustmentRate",
|
|
||||||
adjustmentRate
|
|
||||||
);
|
|
||||||
if (getFieldValue(["billlines", record.name, "deductedfromlbr"]))
|
if (getFieldValue(["billlines", record.name, "deductedfromlbr"]))
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ export function TimeTicketModalComponent({
|
|||||||
>
|
>
|
||||||
<InputNumber min={0} precision={1} />
|
<InputNumber min={0} precision={1} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
{isEdit && (
|
{
|
||||||
<>
|
<>
|
||||||
<Form.Item label={t("timetickets.fields.clockon")} name="clockon">
|
<Form.Item label={t("timetickets.fields.clockon")} name="clockon">
|
||||||
<FormDateTimePicker
|
<FormDateTimePicker
|
||||||
@@ -233,7 +233,7 @@ export function TimeTicketModalComponent({
|
|||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</>
|
</>
|
||||||
)}
|
}
|
||||||
|
|
||||||
<Form.Item label={t("timetickets.fields.memo")} name="memo">
|
<Form.Item label={t("timetickets.fields.memo")} name="memo">
|
||||||
<MemoInput />
|
<MemoInput />
|
||||||
|
|||||||
Reference in New Issue
Block a user