Add number fields

This commit is contained in:
Hillel Coren 2020-10-19 18:12:23 +03:00
parent 9a297a028d
commit 35b090cc79
9 changed files with 130 additions and 39 deletions

View File

@ -45,6 +45,7 @@ abstract class ExpenseItemResponse
} }
class ExpenseFields { class ExpenseFields {
static const String number = 'number';
static const String privateNotes = 'private_notes'; static const String privateNotes = 'private_notes';
static const String publicNotes = 'public_notes'; static const String publicNotes = 'public_notes';
static const String shouldBeInvoiced = 'should_be_invoiced'; static const String shouldBeInvoiced = 'should_be_invoiced';
@ -86,6 +87,7 @@ abstract class ExpenseEntity extends Object
final company = state?.company; final company = state?.company;
return _$ExpenseEntity._( return _$ExpenseEntity._(
id: id ?? BaseEntity.nextId, id: id ?? BaseEntity.nextId,
number: '',
isChanged: false, isChanged: false,
privateNotes: '', privateNotes: '',
publicNotes: '', publicNotes: '',
@ -249,6 +251,9 @@ abstract class ExpenseEntity extends Object
BuiltList<DocumentEntity> get documents; BuiltList<DocumentEntity> get documents;
@nullable // TODO remove this
String get number;
@override @override
List<EntityAction> getActions( List<EntityAction> getActions(
{UserCompanyEntity userCompany, {UserCompanyEntity userCompany,

View File

@ -240,6 +240,12 @@ class _$ExpenseEntitySerializer implements StructuredSerializer<ExpenseEntity> {
..add(serializers.serialize(object.customValue4, ..add(serializers.serialize(object.customValue4,
specifiedType: const FullType(String))); specifiedType: const FullType(String)));
} }
if (object.number != null) {
result
..add('number')
..add(serializers.serialize(object.number,
specifiedType: const FullType(String)));
}
if (object.isChanged != null) { if (object.isChanged != null) {
result result
..add('isChanged') ..add('isChanged')
@ -397,6 +403,10 @@ class _$ExpenseEntitySerializer implements StructuredSerializer<ExpenseEntity> {
BuiltList, const [const FullType(DocumentEntity)])) BuiltList, const [const FullType(DocumentEntity)]))
as BuiltList<Object>); as BuiltList<Object>);
break; break;
case 'number':
result.number = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'isChanged': case 'isChanged':
result.isChanged = serializers.deserialize(value, result.isChanged = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool; specifiedType: const FullType(bool)) as bool;
@ -861,6 +871,8 @@ class _$ExpenseEntity extends ExpenseEntity {
@override @override
final BuiltList<DocumentEntity> documents; final BuiltList<DocumentEntity> documents;
@override @override
final String number;
@override
final bool isChanged; final bool isChanged;
@override @override
final int createdAt; final int createdAt;
@ -911,6 +923,7 @@ class _$ExpenseEntity extends ExpenseEntity {
this.customValue3, this.customValue3,
this.customValue4, this.customValue4,
this.documents, this.documents,
this.number,
this.isChanged, this.isChanged,
this.createdAt, this.createdAt,
this.updatedAt, this.updatedAt,
@ -1045,6 +1058,7 @@ class _$ExpenseEntity extends ExpenseEntity {
customValue3 == other.customValue3 && customValue3 == other.customValue3 &&
customValue4 == other.customValue4 && customValue4 == other.customValue4 &&
documents == other.documents && documents == other.documents &&
number == other.number &&
isChanged == other.isChanged && isChanged == other.isChanged &&
createdAt == other.createdAt && createdAt == other.createdAt &&
updatedAt == other.updatedAt && updatedAt == other.updatedAt &&
@ -1076,18 +1090,18 @@ class _$ExpenseEntity extends ExpenseEntity {
$jc( $jc(
$jc( $jc(
$jc( $jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, privateNotes.hashCode), publicNotes.hashCode), shouldBeInvoiced.hashCode), invoiceDocuments.hashCode), transactionId.hashCode), transactionReference.hashCode), bankId.hashCode), expenseCurrencyId.hashCode), categoryId.hashCode), amount.hashCode), expenseDate.hashCode), paymentDate.hashCode), exchangeRate.hashCode), invoiceCurrencyId.hashCode), paymentTypeId.hashCode), taxName1.hashCode), taxName2.hashCode), taxRate1.hashCode), taxRate2.hashCode), $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, privateNotes.hashCode), publicNotes.hashCode), shouldBeInvoiced.hashCode), invoiceDocuments.hashCode), transactionId.hashCode), transactionReference.hashCode), bankId.hashCode), expenseCurrencyId.hashCode), categoryId.hashCode), amount.hashCode), expenseDate.hashCode), paymentDate.hashCode), exchangeRate.hashCode), invoiceCurrencyId.hashCode), paymentTypeId.hashCode), taxName1.hashCode), taxName2.hashCode), taxRate1.hashCode), taxRate2.hashCode), taxName3.hashCode),
taxName3.hashCode), taxRate3.hashCode),
taxRate3.hashCode), clientId.hashCode),
clientId.hashCode), invoiceId.hashCode),
invoiceId.hashCode), vendorId.hashCode),
vendorId.hashCode), projectId.hashCode),
projectId.hashCode), customValue1.hashCode),
customValue1.hashCode), customValue2.hashCode),
customValue2.hashCode), customValue3.hashCode),
customValue3.hashCode), customValue4.hashCode),
customValue4.hashCode), documents.hashCode),
documents.hashCode), number.hashCode),
isChanged.hashCode), isChanged.hashCode),
createdAt.hashCode), createdAt.hashCode),
updatedAt.hashCode), updatedAt.hashCode),
@ -1131,6 +1145,7 @@ class _$ExpenseEntity extends ExpenseEntity {
..add('customValue3', customValue3) ..add('customValue3', customValue3)
..add('customValue4', customValue4) ..add('customValue4', customValue4)
..add('documents', documents) ..add('documents', documents)
..add('number', number)
..add('isChanged', isChanged) ..add('isChanged', isChanged)
..add('createdAt', createdAt) ..add('createdAt', createdAt)
..add('updatedAt', updatedAt) ..add('updatedAt', updatedAt)
@ -1276,6 +1291,10 @@ class ExpenseEntityBuilder
set documents(ListBuilder<DocumentEntity> documents) => set documents(ListBuilder<DocumentEntity> documents) =>
_$this._documents = documents; _$this._documents = documents;
String _number;
String get number => _$this._number;
set number(String number) => _$this._number = number;
bool _isChanged; bool _isChanged;
bool get isChanged => _$this._isChanged; bool get isChanged => _$this._isChanged;
set isChanged(bool isChanged) => _$this._isChanged = isChanged; set isChanged(bool isChanged) => _$this._isChanged = isChanged;
@ -1344,6 +1363,7 @@ class ExpenseEntityBuilder
_customValue3 = _$v.customValue3; _customValue3 = _$v.customValue3;
_customValue4 = _$v.customValue4; _customValue4 = _$v.customValue4;
_documents = _$v.documents?.toBuilder(); _documents = _$v.documents?.toBuilder();
_number = _$v.number;
_isChanged = _$v.isChanged; _isChanged = _$v.isChanged;
_createdAt = _$v.createdAt; _createdAt = _$v.createdAt;
_updatedAt = _$v.updatedAt; _updatedAt = _$v.updatedAt;
@ -1406,6 +1426,7 @@ class ExpenseEntityBuilder
customValue3: customValue3, customValue3: customValue3,
customValue4: customValue4, customValue4: customValue4,
documents: documents.build(), documents: documents.build(),
number: number,
isChanged: isChanged, isChanged: isChanged,
createdAt: createdAt, createdAt: createdAt,
updatedAt: updatedAt, updatedAt: updatedAt,

View File

@ -44,6 +44,7 @@ abstract class ProjectItemResponse
} }
class ProjectFields { class ProjectFields {
static const String number = 'number';
static const String name = 'name'; static const String name = 'name';
static const String clientId = 'client_id'; static const String clientId = 'client_id';
static const String client = 'client'; static const String client = 'client';
@ -68,6 +69,7 @@ abstract class ProjectEntity extends Object
factory ProjectEntity({String id, AppState state}) { factory ProjectEntity({String id, AppState state}) {
return _$ProjectEntity._( return _$ProjectEntity._(
id: id ?? BaseEntity.nextId, id: id ?? BaseEntity.nextId,
number: '',
isChanged: false, isChanged: false,
name: '', name: '',
clientId: '', clientId: '',
@ -139,6 +141,9 @@ abstract class ProjectEntity extends Object
@BuiltValueField(wireName: 'custom_value4') @BuiltValueField(wireName: 'custom_value4')
String get customValue4; String get customValue4;
@nullable // TODO remove this
String get number;
BuiltList<DocumentEntity> get documents; BuiltList<DocumentEntity> get documents;
@override @override

View File

@ -166,6 +166,12 @@ class _$ProjectEntitySerializer implements StructuredSerializer<ProjectEntity> {
'id', 'id',
serializers.serialize(object.id, specifiedType: const FullType(String)), serializers.serialize(object.id, specifiedType: const FullType(String)),
]; ];
if (object.number != null) {
result
..add('number')
..add(serializers.serialize(object.number,
specifiedType: const FullType(String)));
}
if (object.isChanged != null) { if (object.isChanged != null) {
result result
..add('isChanged') ..add('isChanged')
@ -249,6 +255,10 @@ class _$ProjectEntitySerializer implements StructuredSerializer<ProjectEntity> {
result.customValue4 = serializers.deserialize(value, result.customValue4 = serializers.deserialize(value,
specifiedType: const FullType(String)) as String; specifiedType: const FullType(String)) as String;
break; break;
case 'number':
result.number = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'documents': case 'documents':
result.documents.replace(serializers.deserialize(value, result.documents.replace(serializers.deserialize(value,
specifiedType: const FullType( specifiedType: const FullType(
@ -509,6 +519,8 @@ class _$ProjectEntity extends ProjectEntity {
@override @override
final String customValue4; final String customValue4;
@override @override
final String number;
@override
final BuiltList<DocumentEntity> documents; final BuiltList<DocumentEntity> documents;
@override @override
final bool isChanged; final bool isChanged;
@ -542,6 +554,7 @@ class _$ProjectEntity extends ProjectEntity {
this.customValue2, this.customValue2,
this.customValue3, this.customValue3,
this.customValue4, this.customValue4,
this.number,
this.documents, this.documents,
this.isChanged, this.isChanged,
this.createdAt, this.createdAt,
@ -624,6 +637,7 @@ class _$ProjectEntity extends ProjectEntity {
customValue2 == other.customValue2 && customValue2 == other.customValue2 &&
customValue3 == other.customValue3 && customValue3 == other.customValue3 &&
customValue4 == other.customValue4 && customValue4 == other.customValue4 &&
number == other.number &&
documents == other.documents && documents == other.documents &&
isChanged == other.isChanged && isChanged == other.isChanged &&
createdAt == other.createdAt && createdAt == other.createdAt &&
@ -656,27 +670,17 @@ class _$ProjectEntity extends ProjectEntity {
$jc( $jc(
$jc( $jc(
$jc( $jc(
$jc( $jc($jc($jc(0, name.hashCode), clientId.hashCode),
$jc( taskRate.hashCode),
0, dueDate.hashCode),
name privateNotes.hashCode),
.hashCode), publicNotes.hashCode),
clientId budgetedHours.hashCode),
.hashCode), customValue1.hashCode),
taskRate customValue2.hashCode),
.hashCode), customValue3.hashCode),
dueDate customValue4.hashCode),
.hashCode), number.hashCode),
privateNotes
.hashCode),
publicNotes
.hashCode),
budgetedHours
.hashCode),
customValue1.hashCode),
customValue2.hashCode),
customValue3.hashCode),
customValue4.hashCode),
documents.hashCode), documents.hashCode),
isChanged.hashCode), isChanged.hashCode),
createdAt.hashCode), createdAt.hashCode),
@ -702,6 +706,7 @@ class _$ProjectEntity extends ProjectEntity {
..add('customValue2', customValue2) ..add('customValue2', customValue2)
..add('customValue3', customValue3) ..add('customValue3', customValue3)
..add('customValue4', customValue4) ..add('customValue4', customValue4)
..add('number', number)
..add('documents', documents) ..add('documents', documents)
..add('isChanged', isChanged) ..add('isChanged', isChanged)
..add('createdAt', createdAt) ..add('createdAt', createdAt)
@ -764,6 +769,10 @@ class ProjectEntityBuilder
String get customValue4 => _$this._customValue4; String get customValue4 => _$this._customValue4;
set customValue4(String customValue4) => _$this._customValue4 = customValue4; set customValue4(String customValue4) => _$this._customValue4 = customValue4;
String _number;
String get number => _$this._number;
set number(String number) => _$this._number = number;
ListBuilder<DocumentEntity> _documents; ListBuilder<DocumentEntity> _documents;
ListBuilder<DocumentEntity> get documents => ListBuilder<DocumentEntity> get documents =>
_$this._documents ??= new ListBuilder<DocumentEntity>(); _$this._documents ??= new ListBuilder<DocumentEntity>();
@ -819,6 +828,7 @@ class ProjectEntityBuilder
_customValue2 = _$v.customValue2; _customValue2 = _$v.customValue2;
_customValue3 = _$v.customValue3; _customValue3 = _$v.customValue3;
_customValue4 = _$v.customValue4; _customValue4 = _$v.customValue4;
_number = _$v.number;
_documents = _$v.documents?.toBuilder(); _documents = _$v.documents?.toBuilder();
_isChanged = _$v.isChanged; _isChanged = _$v.isChanged;
_createdAt = _$v.createdAt; _createdAt = _$v.createdAt;
@ -863,6 +873,7 @@ class ProjectEntityBuilder
customValue2: customValue2, customValue2: customValue2,
customValue3: customValue3, customValue3: customValue3,
customValue4: customValue4, customValue4: customValue4,
number: number,
documents: documents.build(), documents: documents.build(),
isChanged: isChanged, isChanged: isChanged,
createdAt: createdAt, createdAt: createdAt,

View File

@ -48,7 +48,7 @@ abstract class TaskItemResponse
} }
class TaskFields { class TaskFields {
static const String name = 'name'; static const String number = 'number';
static const String description = 'description'; static const String description = 'description';
static const String duration = 'duration'; static const String duration = 'duration';
static const String invoiceId = 'invoice_id'; static const String invoiceId = 'invoice_id';
@ -150,6 +150,7 @@ abstract class TaskEntity extends Object
final isRunning = state?.prefState?.autoStartTasks ?? false; final isRunning = state?.prefState?.autoStartTasks ?? false;
return _$TaskEntity._( return _$TaskEntity._(
id: id ?? BaseEntity.nextId, id: id ?? BaseEntity.nextId,
number: '',
isChanged: false, isChanged: false,
description: '', description: '',
duration: 0, duration: 0,
@ -212,6 +213,8 @@ abstract class TaskEntity extends Object
String get description; String get description;
String get number;
int get duration; int get duration;
bool get areTimesValid { bool get areTimesValid {

View File

@ -164,6 +164,9 @@ class _$TaskEntitySerializer implements StructuredSerializer<TaskEntity> {
'description', 'description',
serializers.serialize(object.description, serializers.serialize(object.description,
specifiedType: const FullType(String)), specifiedType: const FullType(String)),
'number',
serializers.serialize(object.number,
specifiedType: const FullType(String)),
'duration', 'duration',
serializers.serialize(object.duration, serializers.serialize(object.duration,
specifiedType: const FullType(int)), specifiedType: const FullType(int)),
@ -285,6 +288,10 @@ class _$TaskEntitySerializer implements StructuredSerializer<TaskEntity> {
result.description = serializers.deserialize(value, result.description = serializers.deserialize(value,
specifiedType: const FullType(String)) as String; specifiedType: const FullType(String)) as String;
break; break;
case 'number':
result.number = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'duration': case 'duration':
result.duration = serializers.deserialize(value, result.duration = serializers.deserialize(value,
specifiedType: const FullType(int)) as int; specifiedType: const FullType(int)) as int;
@ -717,6 +724,8 @@ class _$TaskEntity extends TaskEntity {
@override @override
final String description; final String description;
@override @override
final String number;
@override
final int duration; final int duration;
@override @override
final String invoiceId; final String invoiceId;
@ -766,6 +775,7 @@ class _$TaskEntity extends TaskEntity {
_$TaskEntity._( _$TaskEntity._(
{this.description, {this.description,
this.number,
this.duration, this.duration,
this.invoiceId, this.invoiceId,
this.clientId, this.clientId,
@ -792,6 +802,9 @@ class _$TaskEntity extends TaskEntity {
if (description == null) { if (description == null) {
throw new BuiltValueNullFieldError('TaskEntity', 'description'); throw new BuiltValueNullFieldError('TaskEntity', 'description');
} }
if (number == null) {
throw new BuiltValueNullFieldError('TaskEntity', 'number');
}
if (duration == null) { if (duration == null) {
throw new BuiltValueNullFieldError('TaskEntity', 'duration'); throw new BuiltValueNullFieldError('TaskEntity', 'duration');
} }
@ -836,6 +849,7 @@ class _$TaskEntity extends TaskEntity {
if (identical(other, this)) return true; if (identical(other, this)) return true;
return other is TaskEntity && return other is TaskEntity &&
description == other.description && description == other.description &&
number == other.number &&
duration == other.duration && duration == other.duration &&
invoiceId == other.invoiceId && invoiceId == other.invoiceId &&
clientId == other.clientId && clientId == other.clientId &&
@ -881,7 +895,7 @@ class _$TaskEntity extends TaskEntity {
$jc( $jc(
$jc( $jc(
$jc( $jc(
$jc($jc($jc($jc($jc(0, description.hashCode), duration.hashCode), invoiceId.hashCode), clientId.hashCode), $jc($jc($jc($jc($jc($jc(0, description.hashCode), number.hashCode), duration.hashCode), invoiceId.hashCode), clientId.hashCode),
projectId.hashCode), projectId.hashCode),
timeLog.hashCode), timeLog.hashCode),
isRunning.hashCode), isRunning.hashCode),
@ -907,6 +921,7 @@ class _$TaskEntity extends TaskEntity {
String toString() { String toString() {
return (newBuiltValueToStringHelper('TaskEntity') return (newBuiltValueToStringHelper('TaskEntity')
..add('description', description) ..add('description', description)
..add('number', number)
..add('duration', duration) ..add('duration', duration)
..add('invoiceId', invoiceId) ..add('invoiceId', invoiceId)
..add('clientId', clientId) ..add('clientId', clientId)
@ -940,6 +955,10 @@ class TaskEntityBuilder implements Builder<TaskEntity, TaskEntityBuilder> {
String get description => _$this._description; String get description => _$this._description;
set description(String description) => _$this._description = description; set description(String description) => _$this._description = description;
String _number;
String get number => _$this._number;
set number(String number) => _$this._number = number;
int _duration; int _duration;
int get duration => _$this._duration; int get duration => _$this._duration;
set duration(int duration) => _$this._duration = duration; set duration(int duration) => _$this._duration = duration;
@ -1038,6 +1057,7 @@ class TaskEntityBuilder implements Builder<TaskEntity, TaskEntityBuilder> {
TaskEntityBuilder get _$this { TaskEntityBuilder get _$this {
if (_$v != null) { if (_$v != null) {
_description = _$v.description; _description = _$v.description;
_number = _$v.number;
_duration = _$v.duration; _duration = _$v.duration;
_invoiceId = _$v.invoiceId; _invoiceId = _$v.invoiceId;
_clientId = _$v.clientId; _clientId = _$v.clientId;
@ -1085,6 +1105,7 @@ class TaskEntityBuilder implements Builder<TaskEntity, TaskEntityBuilder> {
_$result = _$v ?? _$result = _$v ??
new _$TaskEntity._( new _$TaskEntity._(
description: description, description: description,
number: number,
duration: duration, duration: duration,
invoiceId: invoiceId, invoiceId: invoiceId,
clientId: clientId, clientId: clientId,

View File

@ -45,6 +45,7 @@ abstract class VendorItemResponse
class VendorFields { class VendorFields {
static const String name = 'name'; static const String name = 'name';
static const String number = 'number';
static const String balance = 'balance'; static const String balance = 'balance';
static const String address1 = 'address1'; static const String address1 = 'address1';
static const String address2 = 'address2'; static const String address2 = 'address2';
@ -74,6 +75,7 @@ abstract class VendorEntity extends Object
factory VendorEntity({String id, AppState state}) { factory VendorEntity({String id, AppState state}) {
return _$VendorEntity._( return _$VendorEntity._(
id: id ?? BaseEntity.nextId, id: id ?? BaseEntity.nextId,
number: '',
isChanged: false, isChanged: false,
name: '', name: '',
address1: '', address1: '',
@ -147,6 +149,9 @@ abstract class VendorEntity extends Object
String get website; String get website;
@nullable // TODO remove this
String get number;
@BuiltValueField(wireName: 'vat_number') @BuiltValueField(wireName: 'vat_number')
String get vatNumber; String get vatNumber;

View File

@ -177,6 +177,12 @@ class _$VendorEntitySerializer implements StructuredSerializer<VendorEntity> {
'id', 'id',
serializers.serialize(object.id, specifiedType: const FullType(String)), serializers.serialize(object.id, specifiedType: const FullType(String)),
]; ];
if (object.number != null) {
result
..add('number')
..add(serializers.serialize(object.number,
specifiedType: const FullType(String)));
}
if (object.documents != null) { if (object.documents != null) {
result result
..add('documents') ..add('documents')
@ -262,6 +268,10 @@ class _$VendorEntitySerializer implements StructuredSerializer<VendorEntity> {
result.website = serializers.deserialize(value, result.website = serializers.deserialize(value,
specifiedType: const FullType(String)) as String; specifiedType: const FullType(String)) as String;
break; break;
case 'number':
result.number = serializers.deserialize(value,
specifiedType: const FullType(String)) as String;
break;
case 'vat_number': case 'vat_number':
result.vatNumber = serializers.deserialize(value, result.vatNumber = serializers.deserialize(value,
specifiedType: const FullType(String)) as String; specifiedType: const FullType(String)) as String;
@ -694,6 +704,8 @@ class _$VendorEntity extends VendorEntity {
@override @override
final String website; final String website;
@override @override
final String number;
@override
final String vatNumber; final String vatNumber;
@override @override
final String idNumber; final String idNumber;
@ -742,6 +754,7 @@ class _$VendorEntity extends VendorEntity {
this.phone, this.phone,
this.privateNotes, this.privateNotes,
this.website, this.website,
this.number,
this.vatNumber, this.vatNumber,
this.idNumber, this.idNumber,
this.currencyId, this.currencyId,
@ -849,6 +862,7 @@ class _$VendorEntity extends VendorEntity {
phone == other.phone && phone == other.phone &&
privateNotes == other.privateNotes && privateNotes == other.privateNotes &&
website == other.website && website == other.website &&
number == other.number &&
vatNumber == other.vatNumber && vatNumber == other.vatNumber &&
idNumber == other.idNumber && idNumber == other.idNumber &&
currencyId == other.currencyId && currencyId == other.currencyId &&
@ -889,9 +903,9 @@ class _$VendorEntity extends VendorEntity {
$jc( $jc(
$jc( $jc(
$jc( $jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), privateNotes.hashCode),
privateNotes.hashCode), website.hashCode),
website.hashCode), number.hashCode),
vatNumber.hashCode), vatNumber.hashCode),
idNumber.hashCode), idNumber.hashCode),
currencyId.hashCode), currencyId.hashCode),
@ -924,6 +938,7 @@ class _$VendorEntity extends VendorEntity {
..add('phone', phone) ..add('phone', phone)
..add('privateNotes', privateNotes) ..add('privateNotes', privateNotes)
..add('website', website) ..add('website', website)
..add('number', number)
..add('vatNumber', vatNumber) ..add('vatNumber', vatNumber)
..add('idNumber', idNumber) ..add('idNumber', idNumber)
..add('currencyId', currencyId) ..add('currencyId', currencyId)
@ -989,6 +1004,10 @@ class VendorEntityBuilder
String get website => _$this._website; String get website => _$this._website;
set website(String website) => _$this._website = website; set website(String website) => _$this._website = website;
String _number;
String get number => _$this._number;
set number(String number) => _$this._number = number;
String _vatNumber; String _vatNumber;
String get vatNumber => _$this._vatNumber; String get vatNumber => _$this._vatNumber;
set vatNumber(String vatNumber) => _$this._vatNumber = vatNumber; set vatNumber(String vatNumber) => _$this._vatNumber = vatNumber;
@ -1077,6 +1096,7 @@ class VendorEntityBuilder
_phone = _$v.phone; _phone = _$v.phone;
_privateNotes = _$v.privateNotes; _privateNotes = _$v.privateNotes;
_website = _$v.website; _website = _$v.website;
_number = _$v.number;
_vatNumber = _$v.vatNumber; _vatNumber = _$v.vatNumber;
_idNumber = _$v.idNumber; _idNumber = _$v.idNumber;
_currencyId = _$v.currencyId; _currencyId = _$v.currencyId;
@ -1128,6 +1148,7 @@ class VendorEntityBuilder
phone: phone, phone: phone,
privateNotes: privateNotes, privateNotes: privateNotes,
website: website, website: website,
number: number,
vatNumber: vatNumber, vatNumber: vatNumber,
idNumber: idNumber, idNumber: idNumber,
currencyId: currencyId, currencyId: currencyId,

View File

@ -266,7 +266,6 @@ void handleProjectAction(
final state = store.state; final state = store.state;
final project = projects.first as ProjectEntity; final project = projects.first as ProjectEntity;
final projectIds = projects.map((project) => project.id).toList(); final projectIds = projects.map((project) => project.id).toList();
final client = state.clientState.get(project.clientId);
switch (action) { switch (action) {
case EntityAction.edit: case EntityAction.edit: