Add setting to invoice task item descriptions
This commit is contained in:
parent
d36e253973
commit
3852df1184
|
|
@ -85,6 +85,7 @@ abstract class CompanyEntity extends Object
|
|||
invoiceTaskDatelog: true,
|
||||
invoiceTaskProject: false,
|
||||
invoiceTaskHours: false,
|
||||
invoiceTaskItemDescription: true,
|
||||
isLarge: false,
|
||||
enableShopApi: false,
|
||||
convertProductExchangeRate: false,
|
||||
|
|
@ -436,6 +437,9 @@ abstract class CompanyEntity extends Object
|
|||
@BuiltValueField(wireName: 'invoice_task_hours')
|
||||
bool get invoiceTaskHours;
|
||||
|
||||
@BuiltValueField(wireName: 'invoice_task_item_description')
|
||||
bool get invoiceTaskItemDescription;
|
||||
|
||||
@BuiltValueField(wireName: 'auto_start_tasks')
|
||||
bool get autoStartTasks;
|
||||
|
||||
|
|
@ -760,6 +764,7 @@ abstract class CompanyEntity extends Object
|
|||
..invoiceTaskProject = false
|
||||
..invoiceTaskHours = false
|
||||
..invoiceTaskLock = false
|
||||
..invoiceTaskItemDescription = true
|
||||
..matomoUrl = ''
|
||||
..matomoId = ''
|
||||
..convertPaymentCurrency = false
|
||||
|
|
|
|||
|
|
@ -356,6 +356,9 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
|
|||
'invoice_task_hours',
|
||||
serializers.serialize(object.invoiceTaskHours,
|
||||
specifiedType: const FullType(bool)),
|
||||
'invoice_task_item_description',
|
||||
serializers.serialize(object.invoiceTaskItemDescription,
|
||||
specifiedType: const FullType(bool)),
|
||||
'auto_start_tasks',
|
||||
serializers.serialize(object.autoStartTasks,
|
||||
specifiedType: const FullType(bool)),
|
||||
|
|
@ -895,6 +898,10 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
|
|||
result.invoiceTaskHours = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool)) as bool;
|
||||
break;
|
||||
case 'invoice_task_item_description':
|
||||
result.invoiceTaskItemDescription = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool)) as bool;
|
||||
break;
|
||||
case 'auto_start_tasks':
|
||||
result.autoStartTasks = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool)) as bool;
|
||||
|
|
@ -2032,6 +2039,8 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
@override
|
||||
final bool invoiceTaskHours;
|
||||
@override
|
||||
final bool invoiceTaskItemDescription;
|
||||
@override
|
||||
final bool autoStartTasks;
|
||||
@override
|
||||
final bool showTasksTable;
|
||||
|
|
@ -2171,6 +2180,7 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
this.invoiceTaskDatelog,
|
||||
this.invoiceTaskProject,
|
||||
this.invoiceTaskHours,
|
||||
this.invoiceTaskItemDescription,
|
||||
this.autoStartTasks,
|
||||
this.showTasksTable,
|
||||
this.showTaskEndDate,
|
||||
|
|
@ -2368,6 +2378,8 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
invoiceTaskProject, r'CompanyEntity', 'invoiceTaskProject');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
invoiceTaskHours, r'CompanyEntity', 'invoiceTaskHours');
|
||||
BuiltValueNullFieldError.checkNotNull(invoiceTaskItemDescription,
|
||||
r'CompanyEntity', 'invoiceTaskItemDescription');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
autoStartTasks, r'CompanyEntity', 'autoStartTasks');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
|
|
@ -2504,6 +2516,7 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
invoiceTaskDatelog == other.invoiceTaskDatelog &&
|
||||
invoiceTaskProject == other.invoiceTaskProject &&
|
||||
invoiceTaskHours == other.invoiceTaskHours &&
|
||||
invoiceTaskItemDescription == other.invoiceTaskItemDescription &&
|
||||
autoStartTasks == other.autoStartTasks &&
|
||||
showTasksTable == other.showTasksTable &&
|
||||
showTaskEndDate == other.showTaskEndDate &&
|
||||
|
|
@ -2626,6 +2639,7 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
_$hash = $jc(_$hash, invoiceTaskDatelog.hashCode);
|
||||
_$hash = $jc(_$hash, invoiceTaskProject.hashCode);
|
||||
_$hash = $jc(_$hash, invoiceTaskHours.hashCode);
|
||||
_$hash = $jc(_$hash, invoiceTaskItemDescription.hashCode);
|
||||
_$hash = $jc(_$hash, autoStartTasks.hashCode);
|
||||
_$hash = $jc(_$hash, showTasksTable.hashCode);
|
||||
_$hash = $jc(_$hash, showTaskEndDate.hashCode);
|
||||
|
|
@ -2747,6 +2761,7 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
..add('invoiceTaskDatelog', invoiceTaskDatelog)
|
||||
..add('invoiceTaskProject', invoiceTaskProject)
|
||||
..add('invoiceTaskHours', invoiceTaskHours)
|
||||
..add('invoiceTaskItemDescription', invoiceTaskItemDescription)
|
||||
..add('autoStartTasks', autoStartTasks)
|
||||
..add('showTasksTable', showTasksTable)
|
||||
..add('showTaskEndDate', showTaskEndDate)
|
||||
|
|
@ -3258,6 +3273,11 @@ class CompanyEntityBuilder
|
|||
set invoiceTaskHours(bool invoiceTaskHours) =>
|
||||
_$this._invoiceTaskHours = invoiceTaskHours;
|
||||
|
||||
bool _invoiceTaskItemDescription;
|
||||
bool get invoiceTaskItemDescription => _$this._invoiceTaskItemDescription;
|
||||
set invoiceTaskItemDescription(bool invoiceTaskItemDescription) =>
|
||||
_$this._invoiceTaskItemDescription = invoiceTaskItemDescription;
|
||||
|
||||
bool _autoStartTasks;
|
||||
bool get autoStartTasks => _$this._autoStartTasks;
|
||||
set autoStartTasks(bool autoStartTasks) =>
|
||||
|
|
@ -3459,6 +3479,7 @@ class CompanyEntityBuilder
|
|||
_invoiceTaskDatelog = $v.invoiceTaskDatelog;
|
||||
_invoiceTaskProject = $v.invoiceTaskProject;
|
||||
_invoiceTaskHours = $v.invoiceTaskHours;
|
||||
_invoiceTaskItemDescription = $v.invoiceTaskItemDescription;
|
||||
_autoStartTasks = $v.autoStartTasks;
|
||||
_showTasksTable = $v.showTasksTable;
|
||||
_showTaskEndDate = $v.showTaskEndDate;
|
||||
|
|
@ -3611,6 +3632,7 @@ class CompanyEntityBuilder
|
|||
invoiceTaskDatelog: BuiltValueNullFieldError.checkNotNull(invoiceTaskDatelog, r'CompanyEntity', 'invoiceTaskDatelog'),
|
||||
invoiceTaskProject: BuiltValueNullFieldError.checkNotNull(invoiceTaskProject, r'CompanyEntity', 'invoiceTaskProject'),
|
||||
invoiceTaskHours: BuiltValueNullFieldError.checkNotNull(invoiceTaskHours, r'CompanyEntity', 'invoiceTaskHours'),
|
||||
invoiceTaskItemDescription: BuiltValueNullFieldError.checkNotNull(invoiceTaskItemDescription, r'CompanyEntity', 'invoiceTaskItemDescription'),
|
||||
autoStartTasks: BuiltValueNullFieldError.checkNotNull(autoStartTasks, r'CompanyEntity', 'autoStartTasks'),
|
||||
showTasksTable: BuiltValueNullFieldError.checkNotNull(showTasksTable, r'CompanyEntity', 'showTasksTable'),
|
||||
showTaskEndDate: BuiltValueNullFieldError.checkNotNull(showTaskEndDate, r'CompanyEntity', 'showTaskEndDate'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue