Task and decimal fixes
This commit is contained in:
parent
6d7c653486
commit
8cf3005d13
|
|
@ -138,7 +138,7 @@ class ClientEditSettingsState extends State<ClientEditSettings> {
|
|||
),
|
||||
TextFormField(
|
||||
controller: _taskRateController,
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
decoration: InputDecoration(
|
||||
labelText: localization.taskRate,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ class InvoiceEditDetailsState extends State<InvoiceEditDetails> {
|
|||
decoration: InputDecoration(
|
||||
labelText: localization.partialDeposit,
|
||||
),
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
),
|
||||
invoice.partial != null && invoice.partial > 0
|
||||
? DatePicker(
|
||||
|
|
@ -221,7 +221,7 @@ class InvoiceEditDetailsState extends State<InvoiceEditDetails> {
|
|||
decoration: InputDecoration(
|
||||
labelText: localization.discount,
|
||||
),
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
|
|
@ -274,7 +274,7 @@ class InvoiceEditDetailsState extends State<InvoiceEditDetails> {
|
|||
labelText: company
|
||||
.getCustomFieldLabel(CustomFieldType.surcharge1),
|
||||
),
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
)
|
||||
: Container(),
|
||||
company.getCustomFieldLabel(CustomFieldType.surcharge2).isNotEmpty
|
||||
|
|
@ -284,7 +284,7 @@ class InvoiceEditDetailsState extends State<InvoiceEditDetails> {
|
|||
labelText: company
|
||||
.getCustomFieldLabel(CustomFieldType.surcharge2),
|
||||
),
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
)
|
||||
: Container(),
|
||||
company.enableInvoiceTaxes
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ class ItemEditDetailsState extends State<ItemEditDetails> {
|
|||
),
|
||||
TextFormField(
|
||||
controller: _costController,
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
decoration: InputDecoration(
|
||||
labelText: localization.unitCost,
|
||||
),
|
||||
|
|
@ -245,7 +245,7 @@ class ItemEditDetailsState extends State<ItemEditDetails> {
|
|||
company.hasInvoiceField('quantity')
|
||||
? TextFormField(
|
||||
controller: _qtyController,
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
decoration: InputDecoration(
|
||||
labelText: localization.quantity,
|
||||
),
|
||||
|
|
@ -254,7 +254,7 @@ class ItemEditDetailsState extends State<ItemEditDetails> {
|
|||
company.hasInvoiceField('discount')
|
||||
? TextFormField(
|
||||
controller: _discountController,
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
decoration: InputDecoration(
|
||||
labelText: localization.discount,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ class _PaymentEditState extends State<PaymentEdit> {
|
|||
? TextFormField(
|
||||
controller: _amountController,
|
||||
autocorrect: false,
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
decoration: InputDecoration(
|
||||
labelText: localization.amount,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ class _ProductEditState extends State<ProductEdit> {
|
|||
TextFormField(
|
||||
key: Key(ProductKeys.cost),
|
||||
controller: _costController,
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
decoration: InputDecoration(
|
||||
labelText: localization.cost,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -186,14 +186,14 @@ class _ProjectEditState extends State<ProjectEdit> {
|
|||
},
|
||||
),
|
||||
TextFormField(
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
controller: _hoursController,
|
||||
decoration: InputDecoration(
|
||||
labelText: localization.budgetedHours,
|
||||
),
|
||||
),
|
||||
TextFormField(
|
||||
keyboardType: TextInputType.number,
|
||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||
controller: _taskRateController,
|
||||
decoration: InputDecoration(
|
||||
labelText: localization.taskRate,
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class _TaskViewState extends State<TaskView> {
|
|||
// TODO Remove isNotEmpty check in v2
|
||||
if (company.taskStatusMap.isNotEmpty && (task.taskStatusId ?? 0) > 0) {
|
||||
fields[localization.status] =
|
||||
company.taskStatusMap[task.taskStatusId].name ?? '';
|
||||
company.taskStatusMap[task.taskStatusId]?.name ?? '';
|
||||
}
|
||||
|
||||
if (task.customValue1.isNotEmpty) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue