string double issue fixed
[outofuni/tavern2.git] / lib / product_component.dart
index 6fb5461..7e429f8 100644 (file)
@@ -31,7 +31,7 @@ class ProductComponent implements OnInit {
        String prod_category_name;
 
        String prod_name;
-       double prod_price;
+       String prod_price;
        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+'/'+
-                     prod_price.toString());
+                     prod_price);
                String id = await _prodSrv.createProduct(prod_name,
                                             double.parse(prod_price),
                                             catid);