Tax model
This commit is contained in:
parent
f6bb719569
commit
9d04deaabb
|
|
@ -1671,7 +1671,7 @@ abstract class InvoiceItemEntity
|
||||||
int get createdAt;
|
int get createdAt;
|
||||||
|
|
||||||
@BuiltValueField(wireName: 'tax_id')
|
@BuiltValueField(wireName: 'tax_id')
|
||||||
String get tax_id;
|
String get taxId;
|
||||||
|
|
||||||
double taxAmount(InvoiceEntity invoice, int precision) {
|
double taxAmount(InvoiceEntity invoice, int precision) {
|
||||||
double calculateTaxAmount(double rate) {
|
double calculateTaxAmount(double rate) {
|
||||||
|
|
|
||||||
|
|
@ -814,7 +814,7 @@ class _$InvoiceItemEntitySerializer
|
||||||
serializers.serialize(object.discount,
|
serializers.serialize(object.discount,
|
||||||
specifiedType: const FullType(double)),
|
specifiedType: const FullType(double)),
|
||||||
'tax_id',
|
'tax_id',
|
||||||
serializers.serialize(object.tax_id,
|
serializers.serialize(object.taxId,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
];
|
];
|
||||||
Object value;
|
Object value;
|
||||||
|
|
@ -941,7 +941,7 @@ class _$InvoiceItemEntitySerializer
|
||||||
specifiedType: const FullType(int)) as int;
|
specifiedType: const FullType(int)) as int;
|
||||||
break;
|
break;
|
||||||
case 'tax_id':
|
case 'tax_id':
|
||||||
result.tax_id = serializers.deserialize(value,
|
result.taxId = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -2630,7 +2630,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
@override
|
@override
|
||||||
final int createdAt;
|
final int createdAt;
|
||||||
@override
|
@override
|
||||||
final String tax_id;
|
final String taxId;
|
||||||
|
|
||||||
factory _$InvoiceItemEntity(
|
factory _$InvoiceItemEntity(
|
||||||
[void Function(InvoiceItemEntityBuilder) updates]) =>
|
[void Function(InvoiceItemEntityBuilder) updates]) =>
|
||||||
|
|
@ -2657,7 +2657,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
this.taskId,
|
this.taskId,
|
||||||
this.expenseId,
|
this.expenseId,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
this.tax_id})
|
this.taxId})
|
||||||
: super._() {
|
: super._() {
|
||||||
BuiltValueNullFieldError.checkNotNull(
|
BuiltValueNullFieldError.checkNotNull(
|
||||||
productKey, r'InvoiceItemEntity', 'productKey');
|
productKey, r'InvoiceItemEntity', 'productKey');
|
||||||
|
|
@ -2689,8 +2689,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
customValue4, r'InvoiceItemEntity', 'customValue4');
|
customValue4, r'InvoiceItemEntity', 'customValue4');
|
||||||
BuiltValueNullFieldError.checkNotNull(
|
BuiltValueNullFieldError.checkNotNull(
|
||||||
discount, r'InvoiceItemEntity', 'discount');
|
discount, r'InvoiceItemEntity', 'discount');
|
||||||
BuiltValueNullFieldError.checkNotNull(
|
BuiltValueNullFieldError.checkNotNull(taxId, r'InvoiceItemEntity', 'taxId');
|
||||||
tax_id, r'InvoiceItemEntity', 'tax_id');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -2725,7 +2724,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
taskId == other.taskId &&
|
taskId == other.taskId &&
|
||||||
expenseId == other.expenseId &&
|
expenseId == other.expenseId &&
|
||||||
createdAt == other.createdAt &&
|
createdAt == other.createdAt &&
|
||||||
tax_id == other.tax_id;
|
taxId == other.taxId;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __hashCode;
|
int __hashCode;
|
||||||
|
|
@ -2753,7 +2752,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
_$hash = $jc(_$hash, taskId.hashCode);
|
_$hash = $jc(_$hash, taskId.hashCode);
|
||||||
_$hash = $jc(_$hash, expenseId.hashCode);
|
_$hash = $jc(_$hash, expenseId.hashCode);
|
||||||
_$hash = $jc(_$hash, createdAt.hashCode);
|
_$hash = $jc(_$hash, createdAt.hashCode);
|
||||||
_$hash = $jc(_$hash, tax_id.hashCode);
|
_$hash = $jc(_$hash, taxId.hashCode);
|
||||||
_$hash = $jf(_$hash);
|
_$hash = $jf(_$hash);
|
||||||
return __hashCode ??= _$hash;
|
return __hashCode ??= _$hash;
|
||||||
}
|
}
|
||||||
|
|
@ -2781,7 +2780,7 @@ class _$InvoiceItemEntity extends InvoiceItemEntity {
|
||||||
..add('taskId', taskId)
|
..add('taskId', taskId)
|
||||||
..add('expenseId', expenseId)
|
..add('expenseId', expenseId)
|
||||||
..add('createdAt', createdAt)
|
..add('createdAt', createdAt)
|
||||||
..add('tax_id', tax_id))
|
..add('taxId', taxId))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2870,9 +2869,9 @@ class InvoiceItemEntityBuilder
|
||||||
int get createdAt => _$this._createdAt;
|
int get createdAt => _$this._createdAt;
|
||||||
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
||||||
|
|
||||||
String _tax_id;
|
String _taxId;
|
||||||
String get tax_id => _$this._tax_id;
|
String get taxId => _$this._taxId;
|
||||||
set tax_id(String tax_id) => _$this._tax_id = tax_id;
|
set taxId(String taxId) => _$this._taxId = taxId;
|
||||||
|
|
||||||
InvoiceItemEntityBuilder() {
|
InvoiceItemEntityBuilder() {
|
||||||
InvoiceItemEntity._initializeBuilder(this);
|
InvoiceItemEntity._initializeBuilder(this);
|
||||||
|
|
@ -2901,7 +2900,7 @@ class InvoiceItemEntityBuilder
|
||||||
_taskId = $v.taskId;
|
_taskId = $v.taskId;
|
||||||
_expenseId = $v.expenseId;
|
_expenseId = $v.expenseId;
|
||||||
_createdAt = $v.createdAt;
|
_createdAt = $v.createdAt;
|
||||||
_tax_id = $v.tax_id;
|
_taxId = $v.taxId;
|
||||||
_$v = null;
|
_$v = null;
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
@ -2953,7 +2952,7 @@ class InvoiceItemEntityBuilder
|
||||||
taskId: taskId,
|
taskId: taskId,
|
||||||
expenseId: expenseId,
|
expenseId: expenseId,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
tax_id: BuiltValueNullFieldError.checkNotNull(tax_id, r'InvoiceItemEntity', 'tax_id'));
|
taxId: BuiltValueNullFieldError.checkNotNull(taxId, r'InvoiceItemEntity', 'taxId'));
|
||||||
replace(_$result);
|
replace(_$result);
|
||||||
return _$result;
|
return _$result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue