Adjust project location field

This commit is contained in:
Hillel Coren 2023-06-01 23:24:45 +03:00
parent 3e9a2c762f
commit 6e7b616f44
3 changed files with 12 additions and 10 deletions

View File

@ -457,6 +457,7 @@ class SettingsSearch extends StatelessWidget {
'invoice_task_hours#2023-01-19',
'allow_billable_task_items#2023-03-22',
'show_task_item_description#2023-03-22',
if (false) 'project_location#2023-06-01',
],
],
kSettingsTaskStatuses: [

View File

@ -195,9 +195,10 @@ class _TaskSettingsState extends State<TaskSettings> {
onChanged: (value) => viewModel.onCompanyChanged(
company.rebuild((b) => b..invoiceTaskProject = value)),
),
if (false && company.invoiceTaskProject)
if (false && company.invoiceTaskProject) ...[
SizedBox(height: 10),
AppDropdownButton<bool>(
labelText: localization.location,
labelText: localization.projectLocation,
value: company.invoiceTaskProjectHeader,
onChanged: (dynamic value) {
viewModel.onCompanyChanged(company.rebuild(
@ -206,13 +207,14 @@ class _TaskSettingsState extends State<TaskSettings> {
items: [
DropdownMenuItem(
child: Text(localization.service),
value: true,
value: false,
),
DropdownMenuItem(
child: Text(localization.description),
value: false,
value: true,
),
]),
],
],
],
),

View File

@ -23,7 +23,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
'camera': 'Camera',
'gallery': 'Gallery',
'email_count_invoices': 'Email :count invoices',
'location': 'Location',
'project_location': 'Project Location',
'invoice_task_item_description': 'Invoice Task Item Description',
'invoice_task_item_description_help':
'Add the item description to the invoice line items',
@ -103003,9 +103003,9 @@ mixin LocalizationsProvider on LocaleCodeAware {
_localizedValues[localeCode]['invoice_task_item_description_help'] ??
_localizedValues['en']['invoice_task_item_description_help'];
String get location =>
_localizedValues[localeCode]['location'] ??
_localizedValues['en']['location'];
String get projectLocation =>
_localizedValues[localeCode]['project_location'] ??
_localizedValues['en']['project_location'];
String get emailCountInvoices =>
_localizedValues[localeCode]['email_count_invoices'] ??
@ -103022,11 +103022,10 @@ mixin LocalizationsProvider on LocaleCodeAware {
_localizedValues[localeCode]['camera'] ??
_localizedValues['en']['camera'];
String get dropFileHere =>
String get dropFileHere =>
_localizedValues[localeCode]['drop_file_here'] ??
_localizedValues['en']['drop_file_here'];
// STARTER: lang field - do not remove comment
String lookup(String key) {