From 48941bdd7de22481e720b00b3619eb7deb6b205c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 24 Sep 2021 15:05:42 +0300 Subject: [PATCH] Adjust UI --- lib/data/models/client_model.dart | 1 + lib/data/models/client_model.g.dart | 3 +-- lib/data/models/company_gateway_model.dart | 1 + lib/data/models/company_gateway_model.g.dart | 3 +-- lib/data/models/invoice_model.dart | 1 + lib/data/models/invoice_model.g.dart | 23 ++++++++++---------- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/data/models/client_model.dart b/lib/data/models/client_model.dart index 9a532d7b3..bd369bf73 100644 --- a/lib/data/models/client_model.dart +++ b/lib/data/models/client_model.dart @@ -175,6 +175,7 @@ abstract class ClientEntity extends Object String get groupId; @nullable + @BuiltValueField(compare: false) int get loadedAt; bool get isLoaded => loadedAt != null && loadedAt > 0; diff --git a/lib/data/models/client_model.g.dart b/lib/data/models/client_model.g.dart index ebc0c3bf0..7a821b21a 100644 --- a/lib/data/models/client_model.g.dart +++ b/lib/data/models/client_model.g.dart @@ -1139,7 +1139,6 @@ class _$ClientEntity extends ClientEntity { if (identical(other, this)) return true; return other is ClientEntity && groupId == other.groupId && - loadedAt == other.loadedAt && name == other.name && displayName == other.displayName && balance == other.balance && @@ -1210,7 +1209,7 @@ class _$ClientEntity extends ClientEntity { $jc( $jc( $jc( - $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, groupId.hashCode), loadedAt.hashCode), name.hashCode), displayName.hashCode), balance.hashCode), creditBalance.hashCode), paidToDate.hashCode), clientHash.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), privateNotes.hashCode), publicNotes.hashCode), website.hashCode), industryId.hashCode), sizeId.hashCode), vatNumber.hashCode), idNumber.hashCode), number.hashCode), shippingAddress1.hashCode), shippingAddress2.hashCode), shippingCity.hashCode), shippingState.hashCode), shippingPostalCode.hashCode), shippingCountryId.hashCode), settings.hashCode), + $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, groupId.hashCode), name.hashCode), displayName.hashCode), balance.hashCode), creditBalance.hashCode), paidToDate.hashCode), clientHash.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), privateNotes.hashCode), publicNotes.hashCode), website.hashCode), industryId.hashCode), sizeId.hashCode), vatNumber.hashCode), idNumber.hashCode), number.hashCode), shippingAddress1.hashCode), shippingAddress2.hashCode), shippingCity.hashCode), shippingState.hashCode), shippingPostalCode.hashCode), shippingCountryId.hashCode), settings.hashCode), lastLogin.hashCode), customValue1.hashCode), customValue2.hashCode), diff --git a/lib/data/models/company_gateway_model.dart b/lib/data/models/company_gateway_model.dart index 2761cce11..098a8ec8a 100644 --- a/lib/data/models/company_gateway_model.dart +++ b/lib/data/models/company_gateway_model.dart @@ -106,6 +106,7 @@ abstract class CompanyGatewayEntity extends Object int get hashCode; @nullable + @BuiltValueField(compare: false) int get loadedAt; bool get isLoaded => loadedAt != null && loadedAt > 0; diff --git a/lib/data/models/company_gateway_model.g.dart b/lib/data/models/company_gateway_model.g.dart index 2539d2f67..039f66a95 100644 --- a/lib/data/models/company_gateway_model.g.dart +++ b/lib/data/models/company_gateway_model.g.dart @@ -871,7 +871,6 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity { bool operator ==(Object other) { if (identical(other, this)) return true; return other is CompanyGatewayEntity && - loadedAt == other.loadedAt && gatewayId == other.gatewayId && acceptedCreditCards == other.acceptedCreditCards && requireShippingAddress == other.requireShippingAddress && @@ -924,7 +923,7 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity { $jc( $jc( $jc( - $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, loadedAt.hashCode), gatewayId.hashCode), acceptedCreditCards.hashCode), requireShippingAddress.hashCode), requireBillingAddress.hashCode), requireClientName.hashCode), requirePostalCode.hashCode), requireClientPhone.hashCode), requireContactName.hashCode), requireContactEmail.hashCode), requireCvv.hashCode), + $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, gatewayId.hashCode), acceptedCreditCards.hashCode), requireShippingAddress.hashCode), requireBillingAddress.hashCode), requireClientName.hashCode), requirePostalCode.hashCode), requireClientPhone.hashCode), requireContactName.hashCode), requireContactEmail.hashCode), requireCvv.hashCode), updateDetails.hashCode), feesAndLimitsMap.hashCode), systemLogs.hashCode), diff --git a/lib/data/models/invoice_model.dart b/lib/data/models/invoice_model.dart index 4248beb71..874172298 100644 --- a/lib/data/models/invoice_model.dart +++ b/lib/data/models/invoice_model.dart @@ -475,6 +475,7 @@ abstract class InvoiceEntity extends Object balanceOrAmount - (taxAmount * balanceOrAmount / amount); @nullable + @BuiltValueField(compare: false) int get loadedAt; List get history => activities diff --git a/lib/data/models/invoice_model.g.dart b/lib/data/models/invoice_model.g.dart index ed91f6ea4..a58673c60 100644 --- a/lib/data/models/invoice_model.g.dart +++ b/lib/data/models/invoice_model.g.dart @@ -1763,7 +1763,6 @@ class _$InvoiceEntity extends InvoiceEntity { invitations == other.invitations && documents == other.documents && activities == other.activities && - loadedAt == other.loadedAt && isChanged == other.isChanged && createdAt == other.createdAt && updatedAt == other.updatedAt && @@ -1796,17 +1795,17 @@ class _$InvoiceEntity extends InvoiceEntity { $jc( $jc( $jc( - $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), balance.hashCode), paidToDate.hashCode), clientId.hashCode), subscriptionId.hashCode), statusId.hashCode), number.hashCode), discount.hashCode), poNumber.hashCode), date.hashCode), dueDate.hashCode), publicNotes.hashCode), privateNotes.hashCode), terms.hashCode), footer.hashCode), designId.hashCode), usesInclusiveTaxes.hashCode), taxName1.hashCode), taxRate1.hashCode), taxName2.hashCode), taxRate2.hashCode), taxName3.hashCode), taxRate3.hashCode), isAmountDiscount.hashCode), partial.hashCode), taxAmount.hashCode), partialDueDate.hashCode), autoBill.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), customSurcharge1.hashCode), customSurcharge2.hashCode), customSurcharge3.hashCode), customSurcharge4.hashCode), customTaxes1.hashCode), customTaxes2.hashCode), customTaxes3.hashCode), customTaxes4.hashCode), exchangeRate.hashCode), reminder1Sent.hashCode), reminder2Sent.hashCode), reminder3Sent.hashCode), reminderLastSent.hashCode), frequencyId.hashCode), lastSentDate.hashCode), nextSendDate.hashCode), remainingCycles.hashCode), dueDateDays.hashCode), - invoiceId.hashCode), - recurringId.hashCode), - autoBillEnabled.hashCode), - filename.hashCode), - recurringDates.hashCode), - lineItems.hashCode), - invitations.hashCode), - documents.hashCode), - activities.hashCode), - loadedAt.hashCode), + $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), balance.hashCode), paidToDate.hashCode), clientId.hashCode), subscriptionId.hashCode), statusId.hashCode), number.hashCode), discount.hashCode), poNumber.hashCode), date.hashCode), dueDate.hashCode), publicNotes.hashCode), privateNotes.hashCode), terms.hashCode), footer.hashCode), designId.hashCode), usesInclusiveTaxes.hashCode), taxName1.hashCode), taxRate1.hashCode), taxName2.hashCode), taxRate2.hashCode), taxName3.hashCode), taxRate3.hashCode), isAmountDiscount.hashCode), partial.hashCode), taxAmount.hashCode), partialDueDate.hashCode), autoBill.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), customSurcharge1.hashCode), customSurcharge2.hashCode), customSurcharge3.hashCode), customSurcharge4.hashCode), customTaxes1.hashCode), customTaxes2.hashCode), customTaxes3.hashCode), customTaxes4.hashCode), exchangeRate.hashCode), reminder1Sent.hashCode), reminder2Sent.hashCode), reminder3Sent.hashCode), reminderLastSent.hashCode), frequencyId.hashCode), lastSentDate.hashCode), nextSendDate.hashCode), remainingCycles.hashCode), + dueDateDays.hashCode), + invoiceId.hashCode), + recurringId.hashCode), + autoBillEnabled.hashCode), + filename.hashCode), + recurringDates.hashCode), + lineItems.hashCode), + invitations.hashCode), + documents.hashCode), + activities.hashCode), isChanged.hashCode), createdAt.hashCode), updatedAt.hashCode),