perbaikan data report
This commit is contained in:
@@ -25,16 +25,16 @@ class DueCollection {
|
||||
this.branch});
|
||||
|
||||
DueCollection.fromJson(dynamic json) {
|
||||
id = json['id'];
|
||||
businessId = json['business_id'];
|
||||
partyId = json['party_id'];
|
||||
userId = json['user_id'];
|
||||
saleId = json['sale_id'];
|
||||
purchaseId = json['purchase_id'];
|
||||
totalDue = json['totalDue'];
|
||||
dueAmountAfterPay = json['dueAmountAfterPay'];
|
||||
payDueAmount = json['payDueAmount'];
|
||||
paymentTypeId = int.tryParse(json["payment_type_id"].toString());
|
||||
id = num.tryParse(json['id']?.toString() ?? '');
|
||||
businessId = num.tryParse(json['business_id']?.toString() ?? '');
|
||||
partyId = num.tryParse(json['party_id']?.toString() ?? '');
|
||||
userId = num.tryParse(json['user_id']?.toString() ?? '');
|
||||
saleId = num.tryParse(json['sale_id']?.toString() ?? '');
|
||||
purchaseId = num.tryParse(json['purchase_id']?.toString() ?? '');
|
||||
totalDue = num.tryParse(json['totalDue']?.toString() ?? '');
|
||||
dueAmountAfterPay = num.tryParse(json['dueAmountAfterPay']?.toString() ?? '');
|
||||
payDueAmount = num.tryParse(json['payDueAmount']?.toString() ?? '');
|
||||
paymentTypeId = int.tryParse(json["payment_type_id"]?.toString() ?? '');
|
||||
// paymentType = json['paymentType'];
|
||||
paymentDate = json['paymentDate'];
|
||||
invoiceNumber = json['invoiceNumber'];
|
||||
@@ -131,7 +131,7 @@ class Branch {
|
||||
});
|
||||
|
||||
Branch.fromJson(dynamic json) {
|
||||
id = json['id'];
|
||||
id = num.tryParse(json['id']?.toString() ?? '');
|
||||
name = json['name'];
|
||||
phone = json['phone'];
|
||||
address = json['address'];
|
||||
|
||||
Reference in New Issue
Block a user