浏览代码

1.导入More Color裁剪后的图。
2.修改NPD,离线Portfolio增加More Color。
3.修改NPD,离线TearSheet增加Group By。

Pen Li 9 年之前
父节点
当前提交
7076e8c539

二进制
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


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

@@ -144,16 +144,17 @@
     data[@"CURRENT_PAGE"]=0;
     NSMutableDictionary* grid = [[NSMutableDictionary alloc]init];
     
-    
+    BOOL show_group_by = [[params objectForKey:@"show_group_by"] boolValue];
     bool show_stockout=[params[@"show_stockout"] boolValue];
     NSString *sql = nil;
+    // v1.90 more color
     if(values==nil)
     {
-    sql=[NSString stringWithFormat:@"select a.product_id,a.name,a.description,a.price,a.sheet_discount,a.qty,a.is_percentage,a.item_id,a.fashion_id,a.line_note,a.percent,a._id,b.availability,b.color,b.legcolor,b.demension,b.seat_height,b.material,b.box_dim,b.volume,b.weight,stockuom,b.load_ability,b.fabric_content,b.assembling,b.made_in from (select _id, product_id,name,description,ifnull(sheet_price,'null') as price,sheet_discount,ifnull(available_qty,'null') as qty,percentage as is_percentage,item_id,fashion_id,line_note,percent from offline_portfolio where product_id in(%@)) a left join (select * from product where product_id in(%@)) b on a.product_id=b.product_id order by a.name",params[@"product_ids"],params[@"product_ids"]];
+    sql=[NSString stringWithFormat:@"select a.product_id,a.name,a.description,a.price,a.sheet_discount,a.qty,a.is_percentage,a.item_id,a.fashion_id,a.line_note,a.percent,a._id,b.availability,b.color,b.legcolor,b.demension,b.seat_height,b.material,b.box_dim,b.volume,b.weight,stockuom,b.load_ability,b.fabric_content,b.assembling,b.made_in,b.more_color from (select _id, product_id,name,description,ifnull(sheet_price,'null') as price,sheet_discount,ifnull(available_qty,'null') as qty,percentage as is_percentage,item_id,fashion_id,line_note,percent from offline_portfolio where product_id in(%@)) a left join (select * from product where product_id in(%@)) b on a.product_id=b.product_id order by a.name",params[@"product_ids"],params[@"product_ids"]];
     }
     else
     {
-            sql=[NSString stringWithFormat:@"select product_id,name,description,null,null,null,null,item_id,null,null,null,-1,availability,color,legcolor,demension,seat_height,material,box_dim,volume,weight,stockuom,load_ability,fabric_content,assembling,made_in from  product where product_id in(%@) order by name",params[@"product_ids"]];
+            sql=[NSString stringWithFormat:@"select product_id,name,description,null,null,null,null,item_id,null,null,null,-1,availability,color,legcolor,demension,seat_height,material,box_dim,volume,weight,stockuom,load_ability,fabric_content,assembling,made_in,more_color from  product where product_id in(%@) order by name",params[@"product_ids"]];
     }
     
     __block NSMutableDictionary *dic = [NSMutableDictionary dictionary];
@@ -207,7 +208,7 @@
         NSString *fabric_content = [self textAtColumn:23 statement:stmt];
         NSString *assembling = [self textAtColumn:24 statement:stmt];
         NSString *made_in = [self textAtColumn:25 statement:stmt];
-         
+        NSInteger more_color_int = sqlite3_column_int(stmt, 26);
          
          
 NSString* gprice = [self get_portfolio_price :appDelegate.contact_id item_id:item_id   price:[params[@"regular_price"] intValue] db:db];
@@ -402,7 +403,7 @@ NSString* gprice = [self get_portfolio_price :appDelegate.contact_id item_id:ite
              [UIImagePNGRepresentation(qrimg)writeToFile: qrpath    atomically:YES];
          }
 
-        
+         NSString *more_color_path = [[NSBundle mainBundle] pathForResource:@"more_color_64" ofType:@"png"];
         
         
         
@@ -415,6 +416,9 @@ NSString* gprice = [self get_portfolio_price :appDelegate.contact_id item_id:ite
          item[@"description"]=description;
          item[@"detail"]=detail;
          item[@"img"]=img_path;
+         if (show_group_by && more_color_int != 0) {
+             item[@"more_color"] = more_color_path;
+         }
   
 //  @{
 //                                      //@"linenotes": line_note,
@@ -12001,7 +12005,10 @@ NSString* gprice = [self get_portfolio_price :appDelegate.contact_id item_id:ite
     
     
     // model info
-    NSString *sql = [NSString stringWithFormat:@"select product_id,ifnull(sheet_price,'null'),ifnull(sheet_discount,'null'),ifnull(available_qty,'null'),percentage,item_id,line_note,percent from offline_portfolio where product_id in (%@);",product_ids];
+//    NSString *sql = [NSString stringWithFormat:@"select product_id,ifnull(sheet_price,'null'),ifnull(sheet_discount,'null'),ifnull(available_qty,'null'),percentage,item_id,line_note,percent from offline_portfolio where product_id in (%@);",product_ids];
+
+    // V1.90 more color
+    NSString *sql = [NSString stringWithFormat:@"select p.product_id,ifnull(p.sheet_price,'null'),ifnull(p.sheet_discount,'null'),ifnull(p.available_qty,'null'),p.percentage,p.item_id,p.line_note,p.percent,m.more_color from offline_portfolio as p left join product as m on p.product_id = m.product_id where p.product_id in (%@);",product_ids];
     
     __block NSMutableDictionary *dic = [NSMutableDictionary dictionary];
     __block NSMutableString *product_ids_string = [NSMutableString string]; // configure参数
@@ -12023,6 +12030,7 @@ NSString* gprice = [self get_portfolio_price :appDelegate.contact_id item_id:ite
         int item_id = sqlite3_column_int(stmt, 5);
         NSString *line_note = [self textAtColumn:6 statement:stmt];
         double percent = sqlite3_column_double(stmt, 7);
+        int more_color = sqlite3_column_int(stmt, 8);
         
         NSString *price_null = [self textAtColumn:1 statement:stmt];
 /*        if ([price_null isEqualToString:@"null"]) {
@@ -12063,6 +12071,7 @@ NSString* gprice = [self get_portfolio_price :appDelegate.contact_id item_id:ite
                                       @"line_note": line_note,
                                       @"product_id": product_id_string,
                                       @"available_qty": @(qty),
+                                      @"more_color":@(more_color),
                                       @"item_id": [NSString stringWithFormat:@"%d",item_id],
                                       @"regular_price" : regular_price_str,
                                       @"special_price" : [NSString stringWithFormat:@"%.2f",price]

+ 4 - 0
RedAnt ERP Mobile/iSales-NPD.xcodeproj/project.pbxproj

@@ -53,6 +53,7 @@
 		42D9A0231EB02DA6008AF7AF /* AdSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 42D9A0221EB02DA6008AF7AF /* AdSupport.framework */; };
 		42D9A0251EB03994008AF7AF /* libAdIdAccess.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 42D9A0241EB03994008AF7AF /* libAdIdAccess.a */; };
 		42DC31131D546FBE00BCD1C6 /* category.json in Resources */ = {isa = PBXBuildFile; fileRef = 42DC31121D546FBE00BCD1C6 /* category.json */; };
+		42E489611EE63F4E007256A0 /* more_color_64.png in Resources */ = {isa = PBXBuildFile; fileRef = 42E489601EE63F4E007256A0 /* more_color_64.png */; };
 		710274251CC606C4009FD219 /* UserListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 710274241CC606C4009FD219 /* UserListViewController.m */; };
 		71073AE61DD41DD8001BC653 /* so_thumb.json in Resources */ = {isa = PBXBuildFile; fileRef = 71073AE51DD41DD8001BC653 /* so_thumb.json */; };
 		7111E5721C76C557004763B3 /* customer_info_template_edit.json in Resources */ = {isa = PBXBuildFile; fileRef = 7111E5711C76C557004763B3 /* customer_info_template_edit.json */; };
@@ -348,6 +349,7 @@
 		42D9A0221EB02DA6008AF7AF /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; };
 		42D9A0241EB03994008AF7AF /* libAdIdAccess.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libAdIdAccess.a; sourceTree = "<group>"; };
 		42DC31121D546FBE00BCD1C6 /* category.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = category.json; sourceTree = "<group>"; };
+		42E489601EE63F4E007256A0 /* more_color_64.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = more_color_64.png; sourceTree = "<group>"; };
 		56528CA8B8A71F67C2EE5366 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
 		6C826876B24EFB83AC94A464 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
 		710274231CC606C4009FD219 /* UserListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UserListViewController.h; path = common/Functions/sidemenu/UserListViewController.h; sourceTree = SOURCE_ROOT; };
@@ -1201,6 +1203,7 @@
 				71073AE51DD41DD8001BC653 /* so_thumb.json */,
 				718E71081DE7CEA20035D1FF /* so.json */,
 				71D5016B1DC32C3300971FBB /* portfolio_2x3.json */,
+				42E489601EE63F4E007256A0 /* more_color_64.png */,
 			);
 			name = template;
 			sourceTree = "<group>";
@@ -1817,6 +1820,7 @@
 				7142E87A1DBF577A0077EFA2 /* KALINGA.TTF in Resources */,
 				7142E87B1DBF577A0077EFA2 /* KALINGAB.TTF in Resources */,
 				713F76C21929F4A7006A7305 /* Images.xcassets in Resources */,
+				42E489611EE63F4E007256A0 /* more_color_64.png in Resources */,
 				713F76B41929F4A7006A7305 /* InfoPlist.strings in Resources */,
 				7162A5A01C58733400AB630E /* status_filter_cadedate_open.json in Resources */,
 				71D30A211CFBEDC6006F9477 /* default_appearance.json in Resources */,

+ 13 - 13
RedAnt ERP Mobile/iSales-NPD/Base.lproj/Main.storyboard

@@ -1356,7 +1356,7 @@
                                 </collectionViewFlowLayout>
                                 <cells>
                                     <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="CategoryCellNPD" id="cah-A8-bXi" customClass="CategoryCellNPD">
-                                        <rect key="frame" x="0.0" y="95" width="180" height="251"/>
+                                        <rect key="frame" x="0.0" y="94.5" width="180" height="251"/>
                                         <autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
                                         <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
                                             <rect key="frame" x="0.0" y="0.0" width="180" height="251"/>
@@ -1379,7 +1379,7 @@
                                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
                                                     <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                 </imageView>
-                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color" id="7fM-wP-luR">
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color_larger" id="7fM-wP-luR">
                                                     <rect key="frame" x="8" y="153" width="16" height="16"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
                                                 </imageView>
@@ -1454,7 +1454,7 @@
                                                     <rect key="frame" x="8" y="8" width="32" height="32"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                                                 </imageView>
-                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color" id="Luv-07-ZAU">
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color_larger" id="Luv-07-ZAU">
                                                     <rect key="frame" x="8" y="320" width="32" height="32"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
                                                 </imageView>
@@ -1513,7 +1513,7 @@
                                                     <rect key="frame" x="673" y="88" width="24" height="24"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
                                                 </imageView>
-                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color" id="Z2a-02-p0m">
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color_larger" id="Z2a-02-p0m">
                                                     <rect key="frame" x="636" y="88" width="24" height="24"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
                                                 </imageView>
@@ -6036,7 +6036,7 @@ Email: redantsupport@united-us.net</string>
                                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
                                                     <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                 </imageView>
-                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color" id="Km8-l7-rIl">
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color_larger" id="Km8-l7-rIl">
                                                     <rect key="frame" x="8" y="320" width="32" height="32"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
                                                 </imageView>
@@ -6086,7 +6086,7 @@ Email: redantsupport@united-us.net</string>
                                         </connections>
                                     </collectionViewCell>
                                     <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="CategoryCellNPD" id="Cox-ku-WUC" customClass="CategoryCellNPD">
-                                        <rect key="frame" x="588" y="94.5" width="180" height="251"/>
+                                        <rect key="frame" x="588" y="95" width="180" height="251"/>
                                         <autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
                                         <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
                                             <rect key="frame" x="0.0" y="0.0" width="180" height="251"/>
@@ -6111,7 +6111,7 @@ Email: redantsupport@united-us.net</string>
                                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
                                                     <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                 </imageView>
-                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color" id="8rb-ze-4cD">
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color_larger" id="8rb-ze-4cD">
                                                     <rect key="frame" x="8" y="153" width="16" height="16"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
                                                 </imageView>
@@ -6186,7 +6186,7 @@ Email: redantsupport@united-us.net</string>
                                                     <rect key="frame" x="673" y="88" width="24" height="24"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
                                                 </imageView>
-                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color" id="yop-ju-4DF">
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color_larger" id="yop-ju-4DF">
                                                     <rect key="frame" x="638" y="88" width="24" height="24"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
                                                 </imageView>
@@ -7149,7 +7149,7 @@ Email: redantsupport@united-us.net</string>
                                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
                                                     <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                 </imageView>
-                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color" id="Byl-UD-AE8">
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color_larger" id="Byl-UD-AE8">
                                                     <rect key="frame" x="8" y="320" width="32" height="32"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
                                                 </imageView>
@@ -7199,7 +7199,7 @@ Email: redantsupport@united-us.net</string>
                                         </connections>
                                     </collectionViewCell>
                                     <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="CategoryCellNPD" id="B2X-jg-ycW" customClass="CategoryCellNPD">
-                                        <rect key="frame" x="588" y="94.5" width="180" height="251"/>
+                                        <rect key="frame" x="588" y="95" width="180" height="251"/>
                                         <autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
                                         <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
                                             <rect key="frame" x="0.0" y="0.0" width="180" height="251"/>
@@ -7224,7 +7224,7 @@ Email: redantsupport@united-us.net</string>
                                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
                                                     <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                                 </imageView>
-                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color" id="scg-Vi-nab">
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color_larger" id="scg-Vi-nab">
                                                     <rect key="frame" x="8" y="153" width="16" height="16"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
                                                 </imageView>
@@ -7299,7 +7299,7 @@ Email: redantsupport@united-us.net</string>
                                                     <rect key="frame" x="673" y="88" width="24" height="24"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
                                                 </imageView>
-                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color" id="DSb-h2-y4N">
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="more_color_larger" id="DSb-h2-y4N">
                                                     <rect key="frame" x="631" y="88" width="24" height="24"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
                                                 </imageView>
@@ -8692,7 +8692,7 @@ Email: redantsupport@united-us.net</string>
         <image name="mark_closeout_32" width="32" height="32"/>
         <image name="mark_wish_32" width="32" height="32"/>
         <image name="menu_open" width="36" height="36"/>
-        <image name="more_color" width="32" height="32"/>
+        <image name="more_color_larger" width="32" height="32"/>
         <image name="newcustomer" width="32" height="32"/>
         <image name="neworder" width="40" height="40"/>
         <image name="notifyMe" width="124" height="39"/>

二进制
RedAnt ERP Mobile/iSales-NPD/Images.xcassets/more_color.imageset/more_color.png


二进制
RedAnt ERP Mobile/iSales-NPD/Images.xcassets/more_color.imageset/more_color@3x.png


+ 3 - 3
RedAnt ERP Mobile/iSales-NPD/Images.xcassets/more_color.imageset/Contents.json → RedAnt ERP Mobile/iSales-NPD/Images.xcassets/more_color_larger.imageset/Contents.json

@@ -2,17 +2,17 @@
   "images" : [
     {
       "idiom" : "universal",
-      "filename" : "more_color.png",
+      "filename" : "more_color_larger.png",
       "scale" : "1x"
     },
     {
       "idiom" : "universal",
-      "filename" : "more_color@2x.png",
+      "filename" : "more_color_larger@2x.png",
       "scale" : "2x"
     },
     {
       "idiom" : "universal",
-      "filename" : "more_color@3x.png",
+      "filename" : "more_color_larger@3x.png",
       "scale" : "3x"
     }
   ],

二进制
RedAnt ERP Mobile/iSales-NPD/Images.xcassets/more_color_larger.imageset/more_color_larger.png


二进制
RedAnt ERP Mobile/iSales-NPD/Images.xcassets/more_color_larger.imageset/more_color_larger@2x.png


二进制
RedAnt ERP Mobile/iSales-NPD/Images.xcassets/more_color_larger.imageset/more_color_larger@3x.png


+ 10 - 4
RedAnt ERP Mobile/iSales-NPD/TearSheet.json

@@ -1,7 +1,7 @@
 {
 	"section_0": {
 		"title": "General Information",
-		"count": 8,
+		"count": 9,
 		"item_1": {
 			"control": "edit",
 			"keyboard": "text",
@@ -42,7 +42,7 @@
 			"value": "true",
 			"aname": "Show Line Note"
 		},
-		"item_7": {
+		"item_8": {
 			"control": "enum",
 			"name": "pdf_style",
 			"cadedate": {
@@ -60,12 +60,18 @@
 			"single_select": "true",
 			"aname": "PDF Style"
 		},
-		"item_6": {
+		"item_7": {
 			"control": "switch",
 			"name": "show_barcode",
 			"value": "false",
 			"aname": "Show 2D barcode"
-		}
+		},
+        "item_6": {
+            "control": "switch",
+            "name": "show_group_by",
+            "value": "false",
+            "aname": "Group By"
+        }
 	},
 	"result": 2,
 	"section_1": {

+ 0 - 0
RedAnt ERP Mobile/iSales-NPD/Images.xcassets/more_color.imageset/more_color@2x.png → RedAnt ERP Mobile/iSales-NPD/more_color_64.png


+ 14 - 1
RedAnt ERP Mobile/iSales-NPD/portfolio_2x3.json

@@ -169,7 +169,7 @@
                         "width": 286,
                         "height": 231,
                         "items": {
-                            "count": 7,
+                            "count": 8,
                             "item_1": {
                                 "type": "img",
                                 "source": "img_qr",
@@ -249,7 +249,20 @@
                                 "y": 157,
                                 "width": 282,
                                 "height": 72
+                            },
+                            "item_7": {
+                                "type": "img",
+                                "source": "more_color",
+                                "source_type": "data",
+                                "source_path_type": "local",
+                                "hAlign": "Center",
+                                "vAlign": "Middle",
+                                "x": 195,
+                                "y": 0,
+                                "width": 24,
+                                "height": 25
                             }
+
                             
                         }
                     },

+ 13 - 1
RedAnt ERP Mobile/iSales-NPD/portfolio_3x2.json

@@ -169,7 +169,7 @@
                         "width": 250.66,
                         "height": 244,
                         "items": {
-                            "count": 7,
+                            "count": 8,
                             "item_1": {
                                 "type": "img",
                                 "source": "img_qr",
@@ -249,6 +249,18 @@
                                 "y": 191,
                                 "width": 230,
                                 "height": 53
+                            },
+                            "item_7": {
+                                "type": "img",
+                                "source": "more_color",
+                                "source_type": "data",
+                                "source_path_type": "local",
+                                "hAlign": "Center",
+                                "vAlign": "Middle",
+                                "x": 160,
+                                "y": 13,
+                                "width": 26,
+                                "height": 26
                             }
                             
                         }