Subversion Repositories SmartDukaan

Rev

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

Rev 17724 Rev 18172
Line 187... Line 187...
187
			 $total_approved_amount += $value["amount"];
187
			 $total_approved_amount += $value["amount"];
188
			 $counter++;
188
			 $counter++;
189
		}
189
		}
190
		$approvedFortnight = array();
190
		$approvedFortnight = array();
191
		for($i=0; $i<count($fortnight); $i++){
191
		for($i=0; $i<count($fortnight); $i++){
192
			$url = $this->apihost.'appUserBatchDrillDown/'.$userId.'/'.$fortnight[$i].'/'.$current_date;
192
			$url = $this->apihost.'appUserBatchDrillDown/'.$userId.'/'.$getapproved["UserAppCashBack"][$i]['fortnightOfYear'].'/'.$getapproved["UserAppCashBack"][$i]['yearVal'];
193
			$approvedFortnight[$i] = $this->make_request($url,null);
193
			$approvedFortnight[$i] = $this->make_request($url,null);
194
		// $url = $this->apihost.'appUserBatchDrillDown/1/16/2015';
194
		// $url = $this->apihost.'appUserBatchDrillDown/1/16/2015';
195
		// $approvedFortnight[] = $this->make_request($url,null);
195
		// $approvedFortnight[] = $this->make_request($url,null);
196
		}
196
		}
197
		// debug($approvedFortnight);
197
		// debug($approvedFortnight);
Line 357... Line 357...
357
			 $total_approved_amount += $value["amount"];
357
			 $total_approved_amount += $value["amount"];
358
			 $counter++;
358
			 $counter++;
359
		}
359
		}
360
		$approvedFortnight = array();
360
		$approvedFortnight = array();
361
		for($i=0; $i<count($fortnight); $i++){
361
		for($i=0; $i<count($fortnight); $i++){
362
			$url = $this->apihost.'appUserBatchDrillDown/'.$userId.'/'.$fortnight[$i].'/'.$current_date;
362
			$url = $this->apihost.'appUserBatchDrillDown/'.$userId.'/'.$getapproved["UserAppCashBack"][$i]['fortnightOfYear'].'/'.$getapproved["UserAppCashBack"][$i]['yearVal'];
363
			$approvedFortnight[$i] = $this->make_request($url,null);
363
			$approvedFortnight[$i] = $this->make_request($url,null);
364
		// $url = $this->apihost.'appUserBatchDrillDown/1/16/2015';
364
		// $url = $this->apihost.'appUserBatchDrillDown/1/16/2015';
365
		// $approvedFortnight[] = $this->make_request($url,null);
365
		// $approvedFortnight[] = $this->make_request($url,null);
366
		}
366
		}
367
		// debug($approvedFortnight);
367
		// debug($approvedFortnight);