X-Git-Url: https://hackdaworld.org/gitweb/?p=outofuni%2Ftavern2.git;a=blobdiff_plain;f=lib%2Fproduct_component.dart;fp=lib%2Fproduct_component.dart;h=7e429f8b712b29322cb75d5a1f272527643b9e0e;hp=6fb5461cb7095d3191aa8166e03392b4cc79e93a;hb=f1aaa26928a71a3112f1b7a68615310099ec1364;hpb=678f7561b74d47e36309ac4ee1007a326e4b7650 diff --git a/lib/product_component.dart b/lib/product_component.dart index 6fb5461..7e429f8 100644 --- 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; - double prod_price; + String prod_price; int prodcnt; List 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);