projects
/
outofuni
/
tavern2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
string double issue fixed
[outofuni/tavern2.git]
/
lib
/
product_component.dart
diff --git
a/lib/product_component.dart
b/lib/product_component.dart
index
6fb5461
..
7e429f8
100644
(file)
--- a/
lib/product_component.dart
+++ b/
lib/product_component.dart
@@
-31,7
+31,7
@@
class ProductComponent implements OnInit {
String prod_category_name;
String prod_name;
String prod_category_name;
String prod_name;
-
double
prod_price;
+
String
prod_price;
int prodcnt;
List<Product> products;
int prodcnt;
List<Product> products;
@@
-73,7
+73,7
@@
class ProductComponent implements OnInit {
if(prod_name==null || prod_price==null)
return;
print('Debug: Creating product '+prod_name+'/'+
if(prod_name==null || prod_price==null)
return;
print('Debug: Creating product '+prod_name+'/'+
- prod_price
.toString()
);
+ prod_price);
String id = await _prodSrv.createProduct(prod_name,
double.parse(prod_price),
catid);
String id = await _prodSrv.createProduct(prod_name,
double.parse(prod_price),
catid);