Revamp Done - Support for Individual and Jwellery module added
This commit is contained in:
@@ -41,7 +41,7 @@ class Product {
|
||||
this.size,
|
||||
this.priceCalcRule = 'MANUAL',
|
||||
this.autoCalculatePrice = false,
|
||||
this.purityFactor = 1.0,
|
||||
this.purityFactor,
|
||||
this.makingCharges = 0.0,
|
||||
this.makingChargesType = 'FLAT',
|
||||
this.wastagePercentage = 0.0,
|
||||
@@ -72,8 +72,7 @@ class Product {
|
||||
autoCalculatePrice:
|
||||
json['autoCalculatePrice'] ?? json['auto_calculate_price'] ?? false,
|
||||
purityFactor:
|
||||
(json['purityFactor'] ?? json['purity_factor'] as num?)?.toDouble() ??
|
||||
1.0,
|
||||
(json['purityFactor'] ?? json['purity_factor'] as num?)?.toDouble(),
|
||||
makingCharges:
|
||||
(json['makingCharges'] ?? json['making_charges'] as num?)
|
||||
?.toDouble() ??
|
||||
|
||||
Reference in New Issue
Block a user