Skip to content

Commit

Permalink
Improve auto-taxes
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jul 19, 2023
1 parent e181dce commit 87ca35b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/data/models/company_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ abstract class CompanyEntity extends Object
hasEInvoiceCertificate: false,
hasEInvoiceCertificatePassphrase: false,
eInvoiceCertificatePassphrase: '',
//taxData: TaxDataEntity(),
taxData: TaxDataEntity(),
taxConfig: TaxConfigEntity(),
groups: BuiltList<GroupEntity>(),
taxRates: BuiltList<TaxRateEntity>(),
Expand Down Expand Up @@ -472,8 +472,8 @@ abstract class CompanyEntity extends Object
@BuiltValueField(wireName: 'tax_data')
TaxConfigEntity get taxConfig;

//@BuiltValueField(wireName: 'origin_tax_data')
//TaxDataEntity get taxData;
@BuiltValueField(wireName: 'origin_tax_data')
TaxDataEntity get taxData;

@BuiltValueField(wireName: 'has_e_invoice_certificate')
bool get hasEInvoiceCertificate;
Expand Down Expand Up @@ -787,7 +787,7 @@ abstract class CompanyEntity extends Object
..hasEInvoiceCertificatePassphrase = false
..eInvoiceCertificatePassphrase = ''
..taxConfig.replace(TaxConfigEntity())
//..taxData.replace(TaxDataEntity())
..taxData.replace(TaxDataEntity())
..systemLogs.replace(BuiltList<SystemLogEntity>())
..subscriptions.replace(BuiltList<SubscriptionEntity>())
..recurringExpenses.replace(BuiltList<ExpenseEntity>())
Expand Down
23 changes: 23 additions & 0 deletions lib/data/models/company_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87ca35b

Please sign in to comment.