numeric keypad for Productive and Actual Hours

This commit is contained in:
jfrye122
2023-06-02 13:50:39 -04:00
parent 20e59bdd6b
commit cf24d49f9f
2 changed files with 5 additions and 3 deletions

View File

@@ -147,6 +147,7 @@ export function TimeTicketClockOff({
onBlur={handleBlur("actualhours")} onBlur={handleBlur("actualhours")}
value={values.actualhours} value={values.actualhours}
label={"Actual Hours"} label={"Actual Hours"}
keyboardType="numeric"
/> />
<TextInput <TextInput
style={localStyles.inputStyle} style={localStyles.inputStyle}
@@ -155,6 +156,7 @@ export function TimeTicketClockOff({
onBlur={handleBlur("productivehours")} onBlur={handleBlur("productivehours")}
value={values.productivehours} value={values.productivehours}
label={"Productive Hours"} label={"Productive Hours"}
keyboardType="numeric"
/> />
<CostCenterSelect <CostCenterSelect
currentRatesNCostCenters={currentRatesNCostCenters} currentRatesNCostCenters={currentRatesNCostCenters}

View File

@@ -225,9 +225,7 @@ export function TimeTicketCreate({
style={localStyles.inputStyle} style={localStyles.inputStyle}
mode="outlined" mode="outlined"
disabled={true} disabled={true}
onChangeText={handleChange("employee")} value={currentEmployeeFullName}
onBlur={handleBlur("employee")}
value={values.employee}
label={"Employee"} label={"Employee"}
/> />
@@ -244,6 +242,7 @@ export function TimeTicketCreate({
onBlur={handleBlur("productivehours")} onBlur={handleBlur("productivehours")}
value={values.productivehours} value={values.productivehours}
label={"Productive Hours"} label={"Productive Hours"}
keyboardType="numeric"
/> />
<TextInput <TextInput
style={localStyles.inputStyle} style={localStyles.inputStyle}
@@ -252,6 +251,7 @@ export function TimeTicketCreate({
onBlur={handleBlur("actualhours")} onBlur={handleBlur("actualhours")}
value={values.actualhours} value={values.actualhours}
label={"Actual Hours"} label={"Actual Hours"}
keyboardType="numeric"
/> />
{error ? <ErrorDisplay errorMessage={error.message} /> : null} {error ? <ErrorDisplay errorMessage={error.message} /> : null}
<Button <Button