Login...
This commit is contained in:
parent
1fd8543085
commit
d977cfd0fc
|
|
@ -56,7 +56,7 @@ abstract class ClientEntity extends Object
|
||||||
implements Built<ClientEntity, ClientEntityBuilder> {
|
implements Built<ClientEntity, ClientEntityBuilder> {
|
||||||
factory ClientEntity({String id}) {
|
factory ClientEntity({String id}) {
|
||||||
return _$ClientEntity._(
|
return _$ClientEntity._(
|
||||||
id: id ?? '${--ClientEntity.counter}',
|
id: id ?? BaseEntity.nextId,
|
||||||
name: '',
|
name: '',
|
||||||
displayName: '',
|
displayName: '',
|
||||||
balance: 0.0,
|
balance: 0.0,
|
||||||
|
|
@ -105,8 +105,6 @@ abstract class ClientEntity extends Object
|
||||||
|
|
||||||
ClientEntity._();
|
ClientEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
ClientEntity get clone => rebuild((b) => b
|
ClientEntity get clone => rebuild((b) => b
|
||||||
..id = BaseEntity.nextId
|
..id = BaseEntity.nextId
|
||||||
..isDeleted = false);
|
..isDeleted = false);
|
||||||
|
|
@ -477,8 +475,6 @@ abstract class ContactEntity extends Object
|
||||||
|
|
||||||
ContactEntity._();
|
ContactEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
@BuiltValueField(wireName: 'first_name')
|
@BuiltValueField(wireName: 'first_name')
|
||||||
String get firstName;
|
String get firstName;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -369,8 +369,6 @@ abstract class PaymentTermEntity extends Object
|
||||||
|
|
||||||
PaymentTermEntity._();
|
PaymentTermEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
static Serializer<PaymentTermEntity> get serializer =>
|
static Serializer<PaymentTermEntity> get serializer =>
|
||||||
_$paymentTermEntitySerializer;
|
_$paymentTermEntitySerializer;
|
||||||
|
|
||||||
|
|
@ -407,8 +405,6 @@ abstract class TaxRateEntity extends Object
|
||||||
|
|
||||||
TaxRateEntity._();
|
TaxRateEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
static Serializer<TaxRateEntity> get serializer => _$taxRateEntitySerializer;
|
static Serializer<TaxRateEntity> get serializer => _$taxRateEntitySerializer;
|
||||||
|
|
||||||
String get name;
|
String get name;
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,6 @@ abstract class CreditEntity extends Object
|
||||||
|
|
||||||
CreditEntity._();
|
CreditEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
CreditEntity get clone => rebuild((b) => b
|
CreditEntity get clone => rebuild((b) => b
|
||||||
..id = BaseEntity.nextId
|
..id = BaseEntity.nextId
|
||||||
..isDeleted = false);
|
..isDeleted = false);
|
||||||
|
|
|
||||||
|
|
@ -64,8 +64,6 @@ abstract class DocumentEntity extends Object
|
||||||
|
|
||||||
DocumentEntity._();
|
DocumentEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
String get name;
|
String get name;
|
||||||
|
|
||||||
String get type;
|
String get type;
|
||||||
|
|
|
||||||
|
|
@ -109,8 +109,6 @@ abstract class ExpenseEntity extends Object
|
||||||
|
|
||||||
ExpenseEntity._();
|
ExpenseEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
ExpenseEntity get clone => rebuild((b) => b
|
ExpenseEntity get clone => rebuild((b) => b
|
||||||
..id = BaseEntity.nextId
|
..id = BaseEntity.nextId
|
||||||
..isDeleted = false
|
..isDeleted = false
|
||||||
|
|
@ -390,8 +388,6 @@ abstract class ExpenseCategoryEntity extends Object
|
||||||
|
|
||||||
ExpenseCategoryEntity._();
|
ExpenseCategoryEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool matchesFilter(String filter) {
|
bool matchesFilter(String filter) {
|
||||||
if (filter == null || filter.isEmpty) {
|
if (filter == null || filter.isEmpty) {
|
||||||
|
|
|
||||||
|
|
@ -145,8 +145,6 @@ abstract class InvoiceEntity extends Object
|
||||||
|
|
||||||
InvoiceEntity._();
|
InvoiceEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
InvoiceEntity get clone => rebuild((b) => b
|
InvoiceEntity get clone => rebuild((b) => b
|
||||||
..id = BaseEntity.nextId
|
..id = BaseEntity.nextId
|
||||||
..isDeleted = false
|
..isDeleted = false
|
||||||
|
|
@ -551,8 +549,6 @@ abstract class InvoiceItemEntity extends Object
|
||||||
|
|
||||||
InvoiceItemEntity._();
|
InvoiceItemEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
EntityType get entityType {
|
EntityType get entityType {
|
||||||
return EntityType.invoiceItem;
|
return EntityType.invoiceItem;
|
||||||
|
|
@ -676,8 +672,6 @@ abstract class InvitationEntity extends Object
|
||||||
|
|
||||||
InvitationEntity._();
|
InvitationEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
String get key;
|
String get key;
|
||||||
|
|
||||||
String get link;
|
String get link;
|
||||||
|
|
|
||||||
|
|
@ -80,8 +80,6 @@ abstract class PaymentEntity extends Object
|
||||||
|
|
||||||
PaymentEntity._();
|
PaymentEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
EntityType get entityType {
|
EntityType get entityType {
|
||||||
return EntityType.payment;
|
return EntityType.payment;
|
||||||
|
|
|
||||||
|
|
@ -67,8 +67,6 @@ abstract class ProductEntity extends Object
|
||||||
|
|
||||||
ProductEntity._();
|
ProductEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
ProductEntity get clone => rebuild((b) => b
|
ProductEntity get clone => rebuild((b) => b
|
||||||
..id = BaseEntity.nextId
|
..id = BaseEntity.nextId
|
||||||
..isDeleted = false);
|
..isDeleted = false);
|
||||||
|
|
|
||||||
|
|
@ -70,8 +70,6 @@ abstract class ProjectEntity extends Object
|
||||||
|
|
||||||
ProjectEntity._();
|
ProjectEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
ProjectEntity get clone => rebuild((b) => b
|
ProjectEntity get clone => rebuild((b) => b
|
||||||
..id = BaseEntity.nextId
|
..id = BaseEntity.nextId
|
||||||
..isDeleted = false);
|
..isDeleted = false);
|
||||||
|
|
|
||||||
|
|
@ -149,8 +149,6 @@ abstract class TaskEntity extends Object
|
||||||
|
|
||||||
TaskEntity._();
|
TaskEntity._();
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
TaskEntity get clone => rebuild((b) => b
|
TaskEntity get clone => rebuild((b) => b
|
||||||
..id = BaseEntity.nextId
|
..id = BaseEntity.nextId
|
||||||
..isDeleted = false
|
..isDeleted = false
|
||||||
|
|
|
||||||
|
|
@ -298,8 +298,6 @@ abstract class VendorContactEntity extends Object
|
||||||
return EntityType.vendorContact;
|
return EntityType.vendorContact;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
|
|
||||||
@BuiltValueField(wireName: 'first_name')
|
@BuiltValueField(wireName: 'first_name')
|
||||||
String get firstName;
|
String get firstName;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14598,8 +14598,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
String get thankYouForYourPurchase =>
|
String get thankYouForYourPurchase =>
|
||||||
_localizedValues[localeCode]['thank_you_for_your_purchase'];
|
_localizedValues[localeCode]['thank_you_for_your_purchase'];
|
||||||
|
|
||||||
String get all =>
|
String get all => _localizedValues[localeCode]['all'];
|
||||||
_localizedValues[localeCode]['all'];
|
|
||||||
|
|
||||||
String lookup(String key) {
|
String lookup(String key) {
|
||||||
final lookupKey = toSnakeCase(key);
|
final lookupKey = toSnakeCase(key);
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ abstract class StubEntity extends Object with BaseEntity implements Built<StubEn
|
||||||
|
|
||||||
// STARTER: properties - do not remove comment
|
// STARTER: properties - do not remove comment
|
||||||
|
|
||||||
static int counter = 0;
|
|
||||||
factory StubEntity() {
|
factory StubEntity() {
|
||||||
return _$StubEntity._(
|
return _$StubEntity._(
|
||||||
id: 0,
|
id: 0,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue