Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jul 8, 2024
2 parents 444c7c5 + 85d39b5 commit f798212
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 74 deletions.
12 changes: 7 additions & 5 deletions lib/data/models/company_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ abstract class CompanyEntity extends Object
transactions: BuiltList<TransactionEntity>(),
transactionRules: BuiltList<TransactionRuleEntity>(),
schedules: BuiltList<ScheduleEntity>(),
eInvoice: BuiltMap<String, dynamic>(),
//eInvoice: BuiltMap<String, dynamic>(),
);
}

Expand Down Expand Up @@ -518,8 +518,8 @@ abstract class CompanyEntity extends Object
@BuiltValueField(wireName: 'e_invoice_certificate_passphrase')
String get eInvoiceCertificatePassphrase;

@BuiltValueField(wireName: 'e_invoice')
BuiltMap<String, dynamic> get eInvoice;
//@BuiltValueField(wireName: 'e_invoice')
//BuiltMap<String, dynamic> get eInvoice;

String get displayName => settings.name ?? '';

Expand Down Expand Up @@ -610,6 +610,8 @@ abstract class CompanyEntity extends Object

bool get hasItemTaxes => numberOfItemTaxRates > 0;

bool get hasExpenseTaxes => numberOfExpenseTaxRates > 0;

bool get hasTaxes => hasInvoiceTaxes || hasItemTaxes;

bool get isSmall => !isLarge;
Expand Down Expand Up @@ -889,8 +891,8 @@ abstract class CompanyEntity extends Object
..bankAccounts.replace(BuiltList<BankAccountEntity>())
..transactions.replace(BuiltList<TransactionEntity>())
..transactionRules.replace(BuiltList<TransactionRuleEntity>())
..schedules.replace(BuiltList<ScheduleEntity>())
..eInvoice.replace(BuiltMap<String, dynamic>());
..schedules.replace(BuiltList<ScheduleEntity>());
//..eInvoice.replace(BuiltMap<String, dynamic>())

static Serializer<CompanyEntity> get serializer => _$companyEntitySerializer;
}
Expand Down
28 changes: 0 additions & 28 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.

8 changes: 4 additions & 4 deletions lib/data/models/invoice_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ abstract class InvoiceEntity extends Object
saveDefaultTerms: false,
saveDefaultFooter: false,
taxData: TaxDataEntity(),
eInvoice: BuiltMap<String, dynamic>(),
//eInvoice: BuiltMap<String, dynamic>(),
);
}

Expand Down Expand Up @@ -578,8 +578,8 @@ abstract class InvoiceEntity extends Object
@BuiltValueField(wireName: 'tax_info')
TaxDataEntity get taxData;

@BuiltValueField(wireName: 'e_invoice')
BuiltMap<String, dynamic> get eInvoice;
//@BuiltValueField(wireName: 'e_invoice')
//BuiltMap<String, dynamic> get eInvoice;

bool get isApproved {
if (isQuote &&
Expand Down Expand Up @@ -1561,7 +1561,7 @@ abstract class InvoiceEntity extends Object
..autoBillEnabled = false
..nextSendDatetime = ''
..taxData.replace(TaxDataEntity())
..eInvoice.replace(BuiltMap<String, dynamic>())
//..eInvoice.replace(BuiltMap<String, dynamic>())
..subscriptionId = '';

static Serializer<InvoiceEntity> get serializer => _$invoiceEntitySerializer;
Expand Down
27 changes: 0 additions & 27 deletions lib/data/models/invoice_model.g.dart

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

8 changes: 0 additions & 8 deletions lib/data/models/serializers.g.dart

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

2 changes: 0 additions & 2 deletions lib/ui/invoice/edit/invoice_item_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ class _InvoiceItemSelectorState extends State<InvoiceItemSelector>

void _toggleEntity(BaseEntity entity) {
setState(() {
_filter = '';
_textController.text = '';
if (_selected.contains(entity)) {
_selected.remove(entity);
} else {
Expand Down

0 comments on commit f798212

Please sign in to comment.