Tuned ui to support ecommerce product catalogue and purchases.
This commit is contained in:
@@ -21,6 +21,8 @@ class InventoryItem {
|
||||
final int? vendorId;
|
||||
final int? branchId;
|
||||
final String? purchaseRef;
|
||||
final String? salesRef;
|
||||
final double? saleRate;
|
||||
final String? photoUrl;
|
||||
final String? status;
|
||||
final DateTime? createdAt;
|
||||
@@ -48,6 +50,8 @@ class InventoryItem {
|
||||
this.vendorId,
|
||||
this.branchId,
|
||||
this.purchaseRef,
|
||||
this.salesRef,
|
||||
this.saleRate,
|
||||
this.photoUrl,
|
||||
this.status,
|
||||
this.createdAt,
|
||||
@@ -77,6 +81,8 @@ class InventoryItem {
|
||||
vendorId: json['vendorId'],
|
||||
branchId: json['branchId'],
|
||||
purchaseRef: json['purchaseRef'],
|
||||
salesRef: json['salesRef'] ?? json['sales_ref'],
|
||||
saleRate: (json['saleRate'] ?? json['sale_rate'])?.toDouble(),
|
||||
photoUrl: json['photoUrl'] ?? json['photo_url'],
|
||||
status: json['status'],
|
||||
createdAt: json['createdAt'] != null ? DateTime.parse(json['createdAt']) : null,
|
||||
|
||||
Reference in New Issue
Block a user