From e593fd68bba8598ba85ee7a313d326560082bf46 Mon Sep 17 00:00:00 2001
From: Hulk <guanpengfei@gomoretech.com>
Date: Mon, 7 Mar 2016 14:10:49 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=8E=E6=96=B0=E5=BB=BA=E9=87=87=E8=B4=AD?=
 =?UTF-8?q?=E5=8D=95=E3=80=8F=E5=A2=9E=E5=8A=A0=E8=B4=B9=E7=94=A8=E6=98=8E?=
 =?UTF-8?q?=E7=BB=86=E3=80=81=E6=8F=90=E4=BA=A4=E8=AF=B7=E6=B1=82=20=20San?=
 =?UTF-8?q?dy?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Purchase/Controllers/NewPurchaseViewController.m     | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/XFFruit/ViewControllers/Purchase/Controllers/NewPurchaseViewController.m b/XFFruit/ViewControllers/Purchase/Controllers/NewPurchaseViewController.m
index 27936b8..4d318f7 100644
--- a/XFFruit/ViewControllers/Purchase/Controllers/NewPurchaseViewController.m
+++ b/XFFruit/ViewControllers/Purchase/Controllers/NewPurchaseViewController.m
@@ -18,6 +18,7 @@
 #import "NoticeProduct.h"
 #import "BottomPurchaseView.h"
 #import "NewCostViewController.h"
+#import "FeeAcountDetail.h"
 #define TopHeight 328
 #define BottomHeight 300
 #define SpaceHeight 20
@@ -314,6 +315,11 @@ typedef enum : NSUInteger {
     for (PurchaseBillProduct *billProduct in _aBottomView.productVC.productArr) {        [billProducts  addObject:[billProduct dictForCommit]];
     }
     self.state = state;
+    
+    NSMutableArray *costs = [NSMutableArray array];
+    for (FeeAcountDetail *fee in _aBottomView.costVC.costArr) {
+        [costs  addObject:[fee dictForCommit]];
+    }
     NSDictionary *dict = @{@"uuid":uuidObject,
                            @"version":versionObject,
                            @"billnumber":billNumberObject,
@@ -330,7 +336,8 @@ typedef enum : NSUInteger {
                            @"total":_purchaseView.total,
                            @"charge":_purchaseView.chargePurchase,
                            @"remark":[IBTCommon checkString:_purchaseView.remark],
-                           @"products":billProducts};
+                           @"products":billProducts,
+                           @"accountDetails":costs0};
     [IBTLoadingView showProgressLabel:msg];
     [[ICRHTTPController sharedController] savePurchaseWithData:dict success:succ failure:fail];
 }
-- 
2.18.1