From 75426233a283ef559a93f6cc1453fd4f8c539799 Mon Sep 17 00:00:00 2001 From: Sarthak Pol Date: Wed, 2 Oct 2019 18:26:06 +0530 Subject: [PATCH] Update brain.dart --- lib/brain.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/brain.dart b/lib/brain.dart index 6e11497..3621207 100644 --- a/lib/brain.dart +++ b/lib/brain.dart @@ -85,15 +85,17 @@ class CalculatorBrain { return discou; } double insuType(){ - base=insuType(); + + base=ecPrice(); dep=timeDep(); discou=disco(); var price = double.parse(orgPri); iDV= price-dep; odc=iDV-discou; if(it=='3rd party'){ - finalPrice=ecPric; + finalPrice=iDV;//ecPric+dep; return finalPrice; + } else if(it=='Own Damage Cover'){ finalPrice=odc; @@ -113,4 +115,4 @@ class CalculatorBrain { double hi=carInsu.insuType(); return hi; } -} \ No newline at end of file +}