Fix demo data
This commit is contained in:
parent
e6392c5f4b
commit
1a33cc36e2
File diff suppressed because one or more lines are too long
|
|
@ -156,6 +156,7 @@ abstract class ClientEntity extends Object
|
||||||
@BuiltValueField(wireName: 'balance')
|
@BuiltValueField(wireName: 'balance')
|
||||||
double get balance;
|
double get balance;
|
||||||
|
|
||||||
|
@nullable
|
||||||
@BuiltValueField(wireName: 'credit_balance')
|
@BuiltValueField(wireName: 'credit_balance')
|
||||||
double get creditBalance;
|
double get creditBalance;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -120,9 +120,6 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
|
||||||
'balance',
|
'balance',
|
||||||
serializers.serialize(object.balance,
|
serializers.serialize(object.balance,
|
||||||
specifiedType: const FullType(double)),
|
specifiedType: const FullType(double)),
|
||||||
'credit_balance',
|
|
||||||
serializers.serialize(object.creditBalance,
|
|
||||||
specifiedType: const FullType(double)),
|
|
||||||
'paid_to_date',
|
'paid_to_date',
|
||||||
serializers.serialize(object.paidToDate,
|
serializers.serialize(object.paidToDate,
|
||||||
specifiedType: const FullType(double)),
|
specifiedType: const FullType(double)),
|
||||||
|
|
@ -207,6 +204,12 @@ class _$ClientEntitySerializer implements StructuredSerializer<ClientEntity> {
|
||||||
..add(serializers.serialize(object.lastUpdatedActivities,
|
..add(serializers.serialize(object.lastUpdatedActivities,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.creditBalance != null) {
|
||||||
|
result
|
||||||
|
..add('credit_balance')
|
||||||
|
..add(serializers.serialize(object.creditBalance,
|
||||||
|
specifiedType: const FullType(double)));
|
||||||
|
}
|
||||||
if (object.countryId != null) {
|
if (object.countryId != null) {
|
||||||
result
|
result
|
||||||
..add('country_id')
|
..add('country_id')
|
||||||
|
|
@ -1034,9 +1037,6 @@ class _$ClientEntity extends ClientEntity {
|
||||||
if (balance == null) {
|
if (balance == null) {
|
||||||
throw new BuiltValueNullFieldError('ClientEntity', 'balance');
|
throw new BuiltValueNullFieldError('ClientEntity', 'balance');
|
||||||
}
|
}
|
||||||
if (creditBalance == null) {
|
|
||||||
throw new BuiltValueNullFieldError('ClientEntity', 'creditBalance');
|
|
||||||
}
|
|
||||||
if (paidToDate == null) {
|
if (paidToDate == null) {
|
||||||
throw new BuiltValueNullFieldError('ClientEntity', 'paidToDate');
|
throw new BuiltValueNullFieldError('ClientEntity', 'paidToDate');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -148,14 +148,14 @@ class ReportsScreen extends StatelessWidget {
|
||||||
//kReportActivity,
|
//kReportActivity,
|
||||||
//kReportAging,
|
//kReportAging,
|
||||||
kReportClient,
|
kReportClient,
|
||||||
kReportCredit,
|
//kReportCredit,
|
||||||
kReportDocument,
|
//kReportDocument,
|
||||||
kReportExpense,
|
//kReportExpense,
|
||||||
kReportInvoice,
|
kReportInvoice,
|
||||||
kReportPayment,
|
kReportPayment,
|
||||||
kReportProduct,
|
kReportProduct,
|
||||||
//kReportProfitAndLoss,
|
//kReportProfitAndLoss,
|
||||||
kReportTask,
|
//kReportTask,
|
||||||
//kReportTaxRate,
|
//kReportTaxRate,
|
||||||
//kReportQuote,
|
//kReportQuote,
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue