Adjust project location field
This commit is contained in:
parent
3e9a2c762f
commit
6e7b616f44
|
|
@ -457,6 +457,7 @@ class SettingsSearch extends StatelessWidget {
|
||||||
'invoice_task_hours#2023-01-19',
|
'invoice_task_hours#2023-01-19',
|
||||||
'allow_billable_task_items#2023-03-22',
|
'allow_billable_task_items#2023-03-22',
|
||||||
'show_task_item_description#2023-03-22',
|
'show_task_item_description#2023-03-22',
|
||||||
|
if (false) 'project_location#2023-06-01',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
kSettingsTaskStatuses: [
|
kSettingsTaskStatuses: [
|
||||||
|
|
|
||||||
|
|
@ -195,9 +195,10 @@ class _TaskSettingsState extends State<TaskSettings> {
|
||||||
onChanged: (value) => viewModel.onCompanyChanged(
|
onChanged: (value) => viewModel.onCompanyChanged(
|
||||||
company.rebuild((b) => b..invoiceTaskProject = value)),
|
company.rebuild((b) => b..invoiceTaskProject = value)),
|
||||||
),
|
),
|
||||||
if (false && company.invoiceTaskProject)
|
if (false && company.invoiceTaskProject) ...[
|
||||||
|
SizedBox(height: 10),
|
||||||
AppDropdownButton<bool>(
|
AppDropdownButton<bool>(
|
||||||
labelText: localization.location,
|
labelText: localization.projectLocation,
|
||||||
value: company.invoiceTaskProjectHeader,
|
value: company.invoiceTaskProjectHeader,
|
||||||
onChanged: (dynamic value) {
|
onChanged: (dynamic value) {
|
||||||
viewModel.onCompanyChanged(company.rebuild(
|
viewModel.onCompanyChanged(company.rebuild(
|
||||||
|
|
@ -206,15 +207,16 @@ class _TaskSettingsState extends State<TaskSettings> {
|
||||||
items: [
|
items: [
|
||||||
DropdownMenuItem(
|
DropdownMenuItem(
|
||||||
child: Text(localization.service),
|
child: Text(localization.service),
|
||||||
value: true,
|
value: false,
|
||||||
),
|
),
|
||||||
DropdownMenuItem(
|
DropdownMenuItem(
|
||||||
child: Text(localization.description),
|
child: Text(localization.description),
|
||||||
value: false,
|
value: true,
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
],
|
||||||
),
|
),
|
||||||
FormCard(
|
FormCard(
|
||||||
children: [
|
children: [
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
'camera': 'Camera',
|
'camera': 'Camera',
|
||||||
'gallery': 'Gallery',
|
'gallery': 'Gallery',
|
||||||
'email_count_invoices': 'Email :count invoices',
|
'email_count_invoices': 'Email :count invoices',
|
||||||
'location': 'Location',
|
'project_location': 'Project Location',
|
||||||
'invoice_task_item_description': 'Invoice Task Item Description',
|
'invoice_task_item_description': 'Invoice Task Item Description',
|
||||||
'invoice_task_item_description_help':
|
'invoice_task_item_description_help':
|
||||||
'Add the item description to the invoice line items',
|
'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[localeCode]['invoice_task_item_description_help'] ??
|
||||||
_localizedValues['en']['invoice_task_item_description_help'];
|
_localizedValues['en']['invoice_task_item_description_help'];
|
||||||
|
|
||||||
String get location =>
|
String get projectLocation =>
|
||||||
_localizedValues[localeCode]['location'] ??
|
_localizedValues[localeCode]['project_location'] ??
|
||||||
_localizedValues['en']['location'];
|
_localizedValues['en']['project_location'];
|
||||||
|
|
||||||
String get emailCountInvoices =>
|
String get emailCountInvoices =>
|
||||||
_localizedValues[localeCode]['email_count_invoices'] ??
|
_localizedValues[localeCode]['email_count_invoices'] ??
|
||||||
|
|
@ -103026,7 +103026,6 @@ String get dropFileHere =>
|
||||||
_localizedValues[localeCode]['drop_file_here'] ??
|
_localizedValues[localeCode]['drop_file_here'] ??
|
||||||
_localizedValues['en']['drop_file_here'];
|
_localizedValues['en']['drop_file_here'];
|
||||||
|
|
||||||
|
|
||||||
// STARTER: lang field - do not remove comment
|
// STARTER: lang field - do not remove comment
|
||||||
|
|
||||||
String lookup(String key) {
|
String lookup(String key) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue