Subversion Repositories SmartDukaan

Rev

Rev 14561 | Rev 14700 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14561 Rev 14673
Line 71... Line 71...
71
							$approvedOrders[] = $suborder;
71
							$approvedOrders[] = $suborder;
72
							$approvedAmount += $suborder['cashBackAmount'];
72
							$approvedAmount += $suborder['cashBackAmount'];
73
							break;
73
							break;
74
							case 'Pending':
74
							case 'Pending':
75
							$pendingOrders[] = $suborder;
75
							$pendingOrders[] = $suborder;
76
							$pendingAmount += $suborder['cashBackAmount'];
76
							// $pendingAmount += $suborder['cashBackAmount'];
77
						}
77
						}
78
					}
78
					}
79
				}
79
				}
80
			}
80
			}
81
		}
81
		}
-
 
82
		$url = $this->apihost.'pending-cashbacks/user/'.$userId;
-
 
83
		$result = $this->make_request($url,null);
-
 
84
		$pendingAmount = $result['amount'];
82
		//Get pending cashbacks
85
		//Get pending cashbacks
83
		$url = $this->apihost.'pending-refunds/user/'.$userId;
86
		$url = $this->apihost.'pending-refunds/user/'.$userId;
84
		$pendingCashbacks = $this->make_request($url,null);
87
		$pendingCashbacks = $this->make_request($url,null);
85
		//Get credited cashbacks
88
		//Get credited cashbacks
86
		$url = $this->apihost.'refund/user/'.$userId;
89
		$url = $this->apihost.'refund/user/'.$userId;