e-invoicing
This commit is contained in:
parent
9a064e059c
commit
7461b8402e
|
|
@ -104,6 +104,7 @@ class ClientFields {
|
|||
static const String shippingPostalCode = 'shipping_postal_code';
|
||||
static const String shippingCountry = 'shipping_country';
|
||||
static const String group = 'group';
|
||||
static const String routingId = 'routing_id';
|
||||
}
|
||||
|
||||
abstract class ClientEntity extends Object
|
||||
|
|
@ -152,6 +153,7 @@ abstract class ClientEntity extends Object
|
|||
customValue2: '',
|
||||
customValue3: '',
|
||||
customValue4: '',
|
||||
routingId: '',
|
||||
contacts: BuiltList<ClientContactEntity>(
|
||||
<ClientContactEntity>[
|
||||
ClientContactEntity().rebuild((b) => b..isPrimary = true)
|
||||
|
|
@ -303,6 +305,9 @@ abstract class ClientEntity extends Object
|
|||
@BuiltValueField(wireName: 'custom_value4')
|
||||
String get customValue4;
|
||||
|
||||
@BuiltValueField(wireName: 'routing_id')
|
||||
String get routingId;
|
||||
|
||||
BuiltList<ClientContactEntity> get contacts;
|
||||
|
||||
@override
|
||||
|
|
@ -763,6 +768,7 @@ abstract class ClientEntity extends Object
|
|||
// ignore: unused_element
|
||||
static void _initializeBuilder(ClientEntityBuilder builder) => builder
|
||||
..number = ''
|
||||
..routingId = ''
|
||||
..paymentBalance = 0;
|
||||
|
||||
static Serializer<ClientEntity> get serializer => _$clientEntitySerializer;
|
||||
|
|
|
|||
|
|
@ -215,6 +215,9 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
|
|||
'custom_value4',
|
||||
serializers.serialize(object.customValue4,
|
||||
specifiedType: const FullType(String)),
|
||||
'routing_id',
|
||||
serializers.serialize(object.routingId,
|
||||
specifiedType: const FullType(String)),
|
||||
'contacts',
|
||||
serializers.serialize(object.contacts,
|
||||
specifiedType: const FullType(
|
||||
|
|
@ -444,6 +447,10 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
|
|||
result.customValue4 = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String;
|
||||
break;
|
||||
case 'routing_id':
|
||||
result.routingId = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String;
|
||||
break;
|
||||
case 'contacts':
|
||||
result.contacts.replace(serializers.deserialize(value,
|
||||
specifiedType: const FullType(
|
||||
|
|
@ -997,6 +1004,8 @@ class _$ClientEntity extends ClientEntity {
|
|||
@override
|
||||
final String customValue4;
|
||||
@override
|
||||
final String routingId;
|
||||
@override
|
||||
final BuiltList<ClientContactEntity> contacts;
|
||||
@override
|
||||
final BuiltList<ActivityEntity> activities;
|
||||
|
|
@ -1065,6 +1074,7 @@ class _$ClientEntity extends ClientEntity {
|
|||
this.customValue2,
|
||||
this.customValue3,
|
||||
this.customValue4,
|
||||
this.routingId,
|
||||
this.contacts,
|
||||
this.activities,
|
||||
this.ledger,
|
||||
|
|
@ -1141,6 +1151,8 @@ class _$ClientEntity extends ClientEntity {
|
|||
customValue3, r'ClientEntity', 'customValue3');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
customValue4, r'ClientEntity', 'customValue4');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
routingId, r'ClientEntity', 'routingId');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
contacts, r'ClientEntity', 'contacts');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
|
|
@ -1207,6 +1219,7 @@ class _$ClientEntity extends ClientEntity {
|
|||
customValue2 == other.customValue2 &&
|
||||
customValue3 == other.customValue3 &&
|
||||
customValue4 == other.customValue4 &&
|
||||
routingId == other.routingId &&
|
||||
contacts == other.contacts &&
|
||||
activities == other.activities &&
|
||||
ledger == other.ledger &&
|
||||
|
|
@ -1263,6 +1276,7 @@ class _$ClientEntity extends ClientEntity {
|
|||
_$hash = $jc(_$hash, customValue2.hashCode);
|
||||
_$hash = $jc(_$hash, customValue3.hashCode);
|
||||
_$hash = $jc(_$hash, customValue4.hashCode);
|
||||
_$hash = $jc(_$hash, routingId.hashCode);
|
||||
_$hash = $jc(_$hash, contacts.hashCode);
|
||||
_$hash = $jc(_$hash, activities.hashCode);
|
||||
_$hash = $jc(_$hash, ledger.hashCode);
|
||||
|
|
@ -1320,6 +1334,7 @@ class _$ClientEntity extends ClientEntity {
|
|||
..add('customValue2', customValue2)
|
||||
..add('customValue3', customValue3)
|
||||
..add('customValue4', customValue4)
|
||||
..add('routingId', routingId)
|
||||
..add('contacts', contacts)
|
||||
..add('activities', activities)
|
||||
..add('ledger', ledger)
|
||||
|
|
@ -1494,6 +1509,10 @@ class ClientEntityBuilder
|
|||
String get customValue4 => _$this._customValue4;
|
||||
set customValue4(String customValue4) => _$this._customValue4 = customValue4;
|
||||
|
||||
String _routingId;
|
||||
String get routingId => _$this._routingId;
|
||||
set routingId(String routingId) => _$this._routingId = routingId;
|
||||
|
||||
ListBuilder<ClientContactEntity> _contacts;
|
||||
ListBuilder<ClientContactEntity> get contacts =>
|
||||
_$this._contacts ??= new ListBuilder<ClientContactEntity>();
|
||||
|
|
@ -1606,6 +1625,7 @@ class ClientEntityBuilder
|
|||
_customValue2 = $v.customValue2;
|
||||
_customValue3 = $v.customValue3;
|
||||
_customValue4 = $v.customValue4;
|
||||
_routingId = $v.routingId;
|
||||
_contacts = $v.contacts.toBuilder();
|
||||
_activities = $v.activities.toBuilder();
|
||||
_ledger = $v.ledger.toBuilder();
|
||||
|
|
@ -1688,6 +1708,7 @@ class ClientEntityBuilder
|
|||
customValue2: BuiltValueNullFieldError.checkNotNull(customValue2, r'ClientEntity', 'customValue2'),
|
||||
customValue3: BuiltValueNullFieldError.checkNotNull(customValue3, r'ClientEntity', 'customValue3'),
|
||||
customValue4: BuiltValueNullFieldError.checkNotNull(customValue4, r'ClientEntity', 'customValue4'),
|
||||
routingId: BuiltValueNullFieldError.checkNotNull(routingId, r'ClientEntity', 'routingId'),
|
||||
contacts: contacts.build(),
|
||||
activities: activities.build(),
|
||||
ledger: ledger.build(),
|
||||
|
|
|
|||
|
|
@ -459,6 +459,9 @@ abstract class CompanyEntity extends Object
|
|||
//@BuiltValueField(wireName: 'tax_data')
|
||||
//TaxDataEntity get taxData;
|
||||
|
||||
@BuiltValueField(wireName: 'enable_e_invoice')
|
||||
bool get enableEInvoice;
|
||||
|
||||
String get displayName => settings.name ?? '';
|
||||
|
||||
@override
|
||||
|
|
|
|||
|
|
@ -380,6 +380,9 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
|
|||
'calculate_taxes',
|
||||
serializers.serialize(object.calculateTaxes,
|
||||
specifiedType: const FullType(bool)),
|
||||
'enable_e_invoice',
|
||||
serializers.serialize(object.enableEInvoice,
|
||||
specifiedType: const FullType(bool)),
|
||||
'created_at',
|
||||
serializers.serialize(object.createdAt,
|
||||
specifiedType: const FullType(int)),
|
||||
|
|
@ -915,6 +918,10 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
|
|||
result.calculateTaxes = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool)) as bool;
|
||||
break;
|
||||
case 'enable_e_invoice':
|
||||
result.enableEInvoice = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool)) as bool;
|
||||
break;
|
||||
case 'isChanged':
|
||||
result.isChanged = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool)) as bool;
|
||||
|
|
@ -2013,6 +2020,8 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
@override
|
||||
final bool calculateTaxes;
|
||||
@override
|
||||
final bool enableEInvoice;
|
||||
@override
|
||||
final bool isChanged;
|
||||
@override
|
||||
final int createdAt;
|
||||
|
|
@ -2136,6 +2145,7 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
this.calculateExpenseTaxByAmount,
|
||||
this.stopOnUnpaidRecurring,
|
||||
this.calculateTaxes,
|
||||
this.enableEInvoice,
|
||||
this.isChanged,
|
||||
this.createdAt,
|
||||
this.updatedAt,
|
||||
|
|
@ -2337,6 +2347,8 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
stopOnUnpaidRecurring, r'CompanyEntity', 'stopOnUnpaidRecurring');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
calculateTaxes, r'CompanyEntity', 'calculateTaxes');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
enableEInvoice, r'CompanyEntity', 'enableEInvoice');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
createdAt, r'CompanyEntity', 'createdAt');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
|
|
@ -2458,6 +2470,7 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
calculateExpenseTaxByAmount == other.calculateExpenseTaxByAmount &&
|
||||
stopOnUnpaidRecurring == other.stopOnUnpaidRecurring &&
|
||||
calculateTaxes == other.calculateTaxes &&
|
||||
enableEInvoice == other.enableEInvoice &&
|
||||
isChanged == other.isChanged &&
|
||||
createdAt == other.createdAt &&
|
||||
updatedAt == other.updatedAt &&
|
||||
|
|
@ -2575,6 +2588,7 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
_$hash = $jc(_$hash, calculateExpenseTaxByAmount.hashCode);
|
||||
_$hash = $jc(_$hash, stopOnUnpaidRecurring.hashCode);
|
||||
_$hash = $jc(_$hash, calculateTaxes.hashCode);
|
||||
_$hash = $jc(_$hash, enableEInvoice.hashCode);
|
||||
_$hash = $jc(_$hash, isChanged.hashCode);
|
||||
_$hash = $jc(_$hash, createdAt.hashCode);
|
||||
_$hash = $jc(_$hash, updatedAt.hashCode);
|
||||
|
|
@ -2692,6 +2706,7 @@ class _$CompanyEntity extends CompanyEntity {
|
|||
..add('calculateExpenseTaxByAmount', calculateExpenseTaxByAmount)
|
||||
..add('stopOnUnpaidRecurring', stopOnUnpaidRecurring)
|
||||
..add('calculateTaxes', calculateTaxes)
|
||||
..add('enableEInvoice', enableEInvoice)
|
||||
..add('isChanged', isChanged)
|
||||
..add('createdAt', createdAt)
|
||||
..add('updatedAt', updatedAt)
|
||||
|
|
@ -3230,6 +3245,11 @@ class CompanyEntityBuilder
|
|||
set calculateTaxes(bool calculateTaxes) =>
|
||||
_$this._calculateTaxes = calculateTaxes;
|
||||
|
||||
bool _enableEInvoice;
|
||||
bool get enableEInvoice => _$this._enableEInvoice;
|
||||
set enableEInvoice(bool enableEInvoice) =>
|
||||
_$this._enableEInvoice = enableEInvoice;
|
||||
|
||||
bool _isChanged;
|
||||
bool get isChanged => _$this._isChanged;
|
||||
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
||||
|
|
@ -3376,6 +3396,7 @@ class CompanyEntityBuilder
|
|||
_calculateExpenseTaxByAmount = $v.calculateExpenseTaxByAmount;
|
||||
_stopOnUnpaidRecurring = $v.stopOnUnpaidRecurring;
|
||||
_calculateTaxes = $v.calculateTaxes;
|
||||
_enableEInvoice = $v.enableEInvoice;
|
||||
_isChanged = $v.isChanged;
|
||||
_createdAt = $v.createdAt;
|
||||
_updatedAt = $v.updatedAt;
|
||||
|
|
@ -3524,6 +3545,7 @@ class CompanyEntityBuilder
|
|||
calculateExpenseTaxByAmount: BuiltValueNullFieldError.checkNotNull(calculateExpenseTaxByAmount, r'CompanyEntity', 'calculateExpenseTaxByAmount'),
|
||||
stopOnUnpaidRecurring: BuiltValueNullFieldError.checkNotNull(stopOnUnpaidRecurring, r'CompanyEntity', 'stopOnUnpaidRecurring'),
|
||||
calculateTaxes: BuiltValueNullFieldError.checkNotNull(calculateTaxes, r'CompanyEntity', 'calculateTaxes'),
|
||||
enableEInvoice: BuiltValueNullFieldError.checkNotNull(enableEInvoice, r'CompanyEntity', 'enableEInvoice'),
|
||||
isChanged: isChanged,
|
||||
createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, r'CompanyEntity', 'createdAt'),
|
||||
updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, r'CompanyEntity', 'updatedAt'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue