Add setting to invoice task item descriptions

This commit is contained in:
Hillel Coren 2023-05-29 18:13:53 +03:00
parent d36e253973
commit 3852df1184
2 changed files with 27 additions and 0 deletions

View File

@ -85,6 +85,7 @@ abstract class CompanyEntity extends Object
invoiceTaskDatelog: true, invoiceTaskDatelog: true,
invoiceTaskProject: false, invoiceTaskProject: false,
invoiceTaskHours: false, invoiceTaskHours: false,
invoiceTaskItemDescription: true,
isLarge: false, isLarge: false,
enableShopApi: false, enableShopApi: false,
convertProductExchangeRate: false, convertProductExchangeRate: false,
@ -436,6 +437,9 @@ abstract class CompanyEntity extends Object
@BuiltValueField(wireName: 'invoice_task_hours') @BuiltValueField(wireName: 'invoice_task_hours')
bool get invoiceTaskHours; bool get invoiceTaskHours;
@BuiltValueField(wireName: 'invoice_task_item_description')
bool get invoiceTaskItemDescription;
@BuiltValueField(wireName: 'auto_start_tasks') @BuiltValueField(wireName: 'auto_start_tasks')
bool get autoStartTasks; bool get autoStartTasks;
@ -760,6 +764,7 @@ abstract class CompanyEntity extends Object
..invoiceTaskProject = false ..invoiceTaskProject = false
..invoiceTaskHours = false ..invoiceTaskHours = false
..invoiceTaskLock = false ..invoiceTaskLock = false
..invoiceTaskItemDescription = true
..matomoUrl = '' ..matomoUrl = ''
..matomoId = '' ..matomoId = ''
..convertPaymentCurrency = false ..convertPaymentCurrency = false

View File

@ -356,6 +356,9 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
'invoice_task_hours', 'invoice_task_hours',
serializers.serialize(object.invoiceTaskHours, serializers.serialize(object.invoiceTaskHours,
specifiedType: const FullType(bool)), specifiedType: const FullType(bool)),
'invoice_task_item_description',
serializers.serialize(object.invoiceTaskItemDescription,
specifiedType: const FullType(bool)),
'auto_start_tasks', 'auto_start_tasks',
serializers.serialize(object.autoStartTasks, serializers.serialize(object.autoStartTasks,
specifiedType: const FullType(bool)), specifiedType: const FullType(bool)),
@ -895,6 +898,10 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
result.invoiceTaskHours = serializers.deserialize(value, result.invoiceTaskHours = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool; specifiedType: const FullType(bool)) as bool;
break; break;
case 'invoice_task_item_description':
result.invoiceTaskItemDescription = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
case 'auto_start_tasks': case 'auto_start_tasks':
result.autoStartTasks = serializers.deserialize(value, result.autoStartTasks = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool; specifiedType: const FullType(bool)) as bool;
@ -2032,6 +2039,8 @@ class _$CompanyEntity extends CompanyEntity {
@override @override
final bool invoiceTaskHours; final bool invoiceTaskHours;
@override @override
final bool invoiceTaskItemDescription;
@override
final bool autoStartTasks; final bool autoStartTasks;
@override @override
final bool showTasksTable; final bool showTasksTable;
@ -2171,6 +2180,7 @@ class _$CompanyEntity extends CompanyEntity {
this.invoiceTaskDatelog, this.invoiceTaskDatelog,
this.invoiceTaskProject, this.invoiceTaskProject,
this.invoiceTaskHours, this.invoiceTaskHours,
this.invoiceTaskItemDescription,
this.autoStartTasks, this.autoStartTasks,
this.showTasksTable, this.showTasksTable,
this.showTaskEndDate, this.showTaskEndDate,
@ -2368,6 +2378,8 @@ class _$CompanyEntity extends CompanyEntity {
invoiceTaskProject, r'CompanyEntity', 'invoiceTaskProject'); invoiceTaskProject, r'CompanyEntity', 'invoiceTaskProject');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
invoiceTaskHours, r'CompanyEntity', 'invoiceTaskHours'); invoiceTaskHours, r'CompanyEntity', 'invoiceTaskHours');
BuiltValueNullFieldError.checkNotNull(invoiceTaskItemDescription,
r'CompanyEntity', 'invoiceTaskItemDescription');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
autoStartTasks, r'CompanyEntity', 'autoStartTasks'); autoStartTasks, r'CompanyEntity', 'autoStartTasks');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
@ -2504,6 +2516,7 @@ class _$CompanyEntity extends CompanyEntity {
invoiceTaskDatelog == other.invoiceTaskDatelog && invoiceTaskDatelog == other.invoiceTaskDatelog &&
invoiceTaskProject == other.invoiceTaskProject && invoiceTaskProject == other.invoiceTaskProject &&
invoiceTaskHours == other.invoiceTaskHours && invoiceTaskHours == other.invoiceTaskHours &&
invoiceTaskItemDescription == other.invoiceTaskItemDescription &&
autoStartTasks == other.autoStartTasks && autoStartTasks == other.autoStartTasks &&
showTasksTable == other.showTasksTable && showTasksTable == other.showTasksTable &&
showTaskEndDate == other.showTaskEndDate && showTaskEndDate == other.showTaskEndDate &&
@ -2626,6 +2639,7 @@ class _$CompanyEntity extends CompanyEntity {
_$hash = $jc(_$hash, invoiceTaskDatelog.hashCode); _$hash = $jc(_$hash, invoiceTaskDatelog.hashCode);
_$hash = $jc(_$hash, invoiceTaskProject.hashCode); _$hash = $jc(_$hash, invoiceTaskProject.hashCode);
_$hash = $jc(_$hash, invoiceTaskHours.hashCode); _$hash = $jc(_$hash, invoiceTaskHours.hashCode);
_$hash = $jc(_$hash, invoiceTaskItemDescription.hashCode);
_$hash = $jc(_$hash, autoStartTasks.hashCode); _$hash = $jc(_$hash, autoStartTasks.hashCode);
_$hash = $jc(_$hash, showTasksTable.hashCode); _$hash = $jc(_$hash, showTasksTable.hashCode);
_$hash = $jc(_$hash, showTaskEndDate.hashCode); _$hash = $jc(_$hash, showTaskEndDate.hashCode);
@ -2747,6 +2761,7 @@ class _$CompanyEntity extends CompanyEntity {
..add('invoiceTaskDatelog', invoiceTaskDatelog) ..add('invoiceTaskDatelog', invoiceTaskDatelog)
..add('invoiceTaskProject', invoiceTaskProject) ..add('invoiceTaskProject', invoiceTaskProject)
..add('invoiceTaskHours', invoiceTaskHours) ..add('invoiceTaskHours', invoiceTaskHours)
..add('invoiceTaskItemDescription', invoiceTaskItemDescription)
..add('autoStartTasks', autoStartTasks) ..add('autoStartTasks', autoStartTasks)
..add('showTasksTable', showTasksTable) ..add('showTasksTable', showTasksTable)
..add('showTaskEndDate', showTaskEndDate) ..add('showTaskEndDate', showTaskEndDate)
@ -3258,6 +3273,11 @@ class CompanyEntityBuilder
set invoiceTaskHours(bool invoiceTaskHours) => set invoiceTaskHours(bool invoiceTaskHours) =>
_$this._invoiceTaskHours = invoiceTaskHours; _$this._invoiceTaskHours = invoiceTaskHours;
bool _invoiceTaskItemDescription;
bool get invoiceTaskItemDescription => _$this._invoiceTaskItemDescription;
set invoiceTaskItemDescription(bool invoiceTaskItemDescription) =>
_$this._invoiceTaskItemDescription = invoiceTaskItemDescription;
bool _autoStartTasks; bool _autoStartTasks;
bool get autoStartTasks => _$this._autoStartTasks; bool get autoStartTasks => _$this._autoStartTasks;
set autoStartTasks(bool autoStartTasks) => set autoStartTasks(bool autoStartTasks) =>
@ -3459,6 +3479,7 @@ class CompanyEntityBuilder
_invoiceTaskDatelog = $v.invoiceTaskDatelog; _invoiceTaskDatelog = $v.invoiceTaskDatelog;
_invoiceTaskProject = $v.invoiceTaskProject; _invoiceTaskProject = $v.invoiceTaskProject;
_invoiceTaskHours = $v.invoiceTaskHours; _invoiceTaskHours = $v.invoiceTaskHours;
_invoiceTaskItemDescription = $v.invoiceTaskItemDescription;
_autoStartTasks = $v.autoStartTasks; _autoStartTasks = $v.autoStartTasks;
_showTasksTable = $v.showTasksTable; _showTasksTable = $v.showTasksTable;
_showTaskEndDate = $v.showTaskEndDate; _showTaskEndDate = $v.showTaskEndDate;
@ -3611,6 +3632,7 @@ class CompanyEntityBuilder
invoiceTaskDatelog: BuiltValueNullFieldError.checkNotNull(invoiceTaskDatelog, r'CompanyEntity', 'invoiceTaskDatelog'), invoiceTaskDatelog: BuiltValueNullFieldError.checkNotNull(invoiceTaskDatelog, r'CompanyEntity', 'invoiceTaskDatelog'),
invoiceTaskProject: BuiltValueNullFieldError.checkNotNull(invoiceTaskProject, r'CompanyEntity', 'invoiceTaskProject'), invoiceTaskProject: BuiltValueNullFieldError.checkNotNull(invoiceTaskProject, r'CompanyEntity', 'invoiceTaskProject'),
invoiceTaskHours: BuiltValueNullFieldError.checkNotNull(invoiceTaskHours, r'CompanyEntity', 'invoiceTaskHours'), invoiceTaskHours: BuiltValueNullFieldError.checkNotNull(invoiceTaskHours, r'CompanyEntity', 'invoiceTaskHours'),
invoiceTaskItemDescription: BuiltValueNullFieldError.checkNotNull(invoiceTaskItemDescription, r'CompanyEntity', 'invoiceTaskItemDescription'),
autoStartTasks: BuiltValueNullFieldError.checkNotNull(autoStartTasks, r'CompanyEntity', 'autoStartTasks'), autoStartTasks: BuiltValueNullFieldError.checkNotNull(autoStartTasks, r'CompanyEntity', 'autoStartTasks'),
showTasksTable: BuiltValueNullFieldError.checkNotNull(showTasksTable, r'CompanyEntity', 'showTasksTable'), showTasksTable: BuiltValueNullFieldError.checkNotNull(showTasksTable, r'CompanyEntity', 'showTasksTable'),
showTaskEndDate: BuiltValueNullFieldError.checkNotNull(showTaskEndDate, r'CompanyEntity', 'showTaskEndDate'), showTaskEndDate: BuiltValueNullFieldError.checkNotNull(showTaskEndDate, r'CompanyEntity', 'showTaskEndDate'),