|
|
@@ -4450,7 +4450,7 @@
|
|
|
|
|
|
#pragma mark save
|
|
|
|
|
|
-+ (NSData *)offline_saveContact:(NSDictionary *)params update:(BOOL)update {
|
|
|
++ (NSData *)offline_saveContact:(NSDictionary *)params update:(BOOL)update isCustomer:(BOOL)isCustomer{
|
|
|
|
|
|
NSString *addr = nil;
|
|
|
NSString *contact_name = nil;
|
|
|
@@ -4620,7 +4620,11 @@
|
|
|
NSString *contact_id = [NSUUID UUID].UUIDString;
|
|
|
|
|
|
NSMutableDictionary *sync_dic = [params mutableCopy];
|
|
|
-
|
|
|
+ if (isCustomer) {
|
|
|
+ [sync_dic setValue:@"Sales_Order_Customer" forKey:@"contactType"];
|
|
|
+ } else {
|
|
|
+ [sync_dic setValue:@"Sales_Order_Ship_To" forKey:@"contactType"];
|
|
|
+ }
|
|
|
|
|
|
NSString *sync_data = nil;
|
|
|
|
|
|
@@ -4661,7 +4665,7 @@
|
|
|
|
|
|
+(NSData *) offline_saveNewContact:(NSMutableDictionary *) params
|
|
|
{
|
|
|
- return [self offline_saveContact:params update:NO];
|
|
|
+ return [self offline_saveContact:params update:NO isCustomer:YES];
|
|
|
}
|
|
|
|
|
|
#pragma mark edit contact
|
|
|
@@ -4895,7 +4899,7 @@
|
|
|
|
|
|
+(NSData *) offline_saveContact:(NSMutableDictionary *) params
|
|
|
{
|
|
|
- return [self offline_saveContact:params update:YES];
|
|
|
+ return [self offline_saveContact:params update:YES isCustomer:YES];
|
|
|
}
|
|
|
|
|
|
#pragma mark category
|
|
|
@@ -8216,7 +8220,7 @@
|
|
|
// NSString *email = [self valueInParams:params key:@"email"];
|
|
|
|
|
|
|
|
|
- return [self offline_saveContact:params update:NO];
|
|
|
+ return [self offline_saveContact:params update:NO isCustomer:NO];
|
|
|
}
|
|
|
|
|
|
#pragma mark cancel order
|