Просмотр исходного кода

161107
Fixed:
load sync saved pdf crash.

Ray Zhang 9 лет назад
Родитель
Сommit
53570e7bc3

BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 2 - 2
RedAnt ERP Mobile/common/Functions/offline/OLDataProvider.m

@@ -245,10 +245,10 @@ NSString* gprice = [self get_portfolio_price :appDelegate.contact_id item_id:ite
              {
              {
                  line_note=valueitem[@"linenotes"];
                  line_note=valueitem[@"linenotes"];
                  qty=[valueitem[@"available_qty"] intValue];
                  qty=[valueitem[@"available_qty"] intValue];
-                 s_qty=valueitem[@"available_qty"] ;
+                 s_qty=[valueitem[@"available_qty"] stringValue] ;
                  if(valueitem[@"regular_price"]!=nil)
                  if(valueitem[@"regular_price"]!=nil)
                  gprice=[NSString stringWithFormat:@"%.2f",[valueitem[@"regular_price"] floatValue]];
                  gprice=[NSString stringWithFormat:@"%.2f",[valueitem[@"regular_price"] floatValue]];
-                 s_price=valueitem[@"special_price"];
+                 s_price=[valueitem[@"special_price"] stringValue];
                  price=[valueitem[@"special_price"] floatValue];
                  price=[valueitem[@"special_price"] floatValue];
                  discount=0;
                  discount=0;