|
|
@@ -3829,7 +3829,7 @@
|
|
|
int modulus= [[bitem valueForKey:@"modulus"] intValue];
|
|
|
citem+= modulus;
|
|
|
double uprice= [[bitem valueForKey:@"unit_price"]doubleValue];
|
|
|
- dprice+= uprice*modulus*count;
|
|
|
+ dprice+= uprice*modulus;
|
|
|
|
|
|
}
|
|
|
if(citem==1)
|
|
|
@@ -3862,8 +3862,12 @@
|
|
|
|
|
|
|
|
|
NSString* oldprice =[NSString stringWithFormat:@"%.2f",unitprice];
|
|
|
- NSString* newunitprice = [NSString stringWithFormat:@"%.2f",unitprice* (1.0-discount/100)];
|
|
|
- NSString* totalprice = [NSString stringWithFormat:@"%.2f",unitprice* (1.0-discount/100)*count];
|
|
|
+ NSString* newunitprice=@"";
|
|
|
+ if(dprice>0)
|
|
|
+ newunitprice = [NSString stringWithFormat:@"%.2f+%.2f",unitprice* (1.0-discount/100),dprice];
|
|
|
+ else
|
|
|
+ newunitprice = [NSString stringWithFormat:@"%.2f",unitprice* (1.0-discount/100)];
|
|
|
+ NSString* totalprice = [NSString stringWithFormat:@"%.2f",(unitprice* (1.0-discount/100)+dprice)*count];
|
|
|
|
|
|
|
|
|
|