Fix stop_on_unpaid_recurring

This commit is contained in:
Hillel Coren 2023-02-28 15:46:17 +02:00
parent beb14f4591
commit de06b4b198
2 changed files with 3 additions and 3 deletions

View File

@ -448,7 +448,7 @@ abstract class CompanyEntity extends Object
@BuiltValueField(wireName: 'calculate_expense_tax_by_amount')
bool get calculateExpenseTaxByAmount;
@BuiltValueField(wireName: 'stop_on_unpaid_recurring ')
@BuiltValueField(wireName: 'stop_on_unpaid_recurring')
bool get stopOnUnpaidRecurring;
String get displayName => settings.name ?? '';

View File

@ -368,7 +368,7 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
'calculate_expense_tax_by_amount',
serializers.serialize(object.calculateExpenseTaxByAmount,
specifiedType: const FullType(bool)),
'stop_on_unpaid_recurring ',
'stop_on_unpaid_recurring',
serializers.serialize(object.stopOnUnpaidRecurring,
specifiedType: const FullType(bool)),
'created_at',
@ -898,7 +898,7 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
result.calculateExpenseTaxByAmount = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
case 'stop_on_unpaid_recurring ':
case 'stop_on_unpaid_recurring':
result.stopOnUnpaidRecurring = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;