| Line 170... |
Line 170... |
| 170 |
$creditValueArray['fortbatchid'] = $value['batch'];
|
170 |
$creditValueArray['fortbatchid'] = $value['batch'];
|
| 171 |
$creditValueArray['creditedDate'] = date('Y-m-d',strtotime($value['timestamp']));
|
171 |
$creditValueArray['creditedDate'] = date('Y-m-d',strtotime($value['timestamp']));
|
| 172 |
$creditValueArray['description'] = $value['description'];
|
172 |
$creditValueArray['description'] = $value['description'];
|
| 173 |
$creditKeyArray[$value['batch'].$value['type']] = $creditValueArray;
|
173 |
$creditKeyArray[$value['batch'].$value['type']] = $creditValueArray;
|
| 174 |
}
|
174 |
}
|
| - |
|
175 |
elseif($value['type']== 'Offer'){
|
| - |
|
176 |
$creditValueArray['amount'] = $value['userAmount'];
|
| - |
|
177 |
$creditValueArray['type'] = $value['type'];
|
| - |
|
178 |
$creditValueArray['fortbatchid'] = $value['batch'];
|
| - |
|
179 |
$creditValueArray['creditedDate'] = date('Y-m-d',strtotime($value['timestamp']));
|
| - |
|
180 |
$creditValueArray['description'] = $value['description'];
|
| - |
|
181 |
$creditKeyArray[$value['batch'].$value['type']] = $creditValueArray;
|
| - |
|
182 |
}
|
| 175 |
}
|
183 |
}
|
| 176 |
}
|
184 |
}
|
| 177 |
$storemapping = Configure::read('storemapping');
|
185 |
$storemapping = Configure::read('storemapping');
|
| 178 |
$activestores = Configure::read('activestores');
|
186 |
$activestores = Configure::read('activestores');
|
| 179 |
//App related cashbacks
|
187 |
//App related cashbacks
|
| Line 411... |
Line 419... |
| 411 |
$creditValueArray['amount'] = $value['userAmount'];
|
419 |
$creditValueArray['amount'] = $value['userAmount'];
|
| 412 |
$creditValueArray['type'] = $value['type'];
|
420 |
$creditValueArray['type'] = $value['type'];
|
| 413 |
$creditValueArray['fortbatchid'] = $value['batch'];
|
421 |
$creditValueArray['fortbatchid'] = $value['batch'];
|
| 414 |
$creditValueArray['creditedDate'] = date('Y-m-d',strtotime($value['timestamp']));
|
422 |
$creditValueArray['creditedDate'] = date('Y-m-d',strtotime($value['timestamp']));
|
| 415 |
$creditValueArray['description'] = $value['description'];
|
423 |
$creditValueArray['description'] = $value['description'];
|
| - |
|
424 |
$creditKeyArray[$value['batch'].$value['type']] = $creditValueArray;
|
| - |
|
425 |
}
|
| - |
|
426 |
|
| - |
|
427 |
elseif($value['type']== 'Offer'){
|
| - |
|
428 |
$creditValueArray['amount'] = $value['userAmount'];
|
| - |
|
429 |
$creditValueArray['type'] = $value['type'];
|
| - |
|
430 |
$creditValueArray['fortbatchid'] = $value['batch'];
|
| - |
|
431 |
$creditValueArray['creditedDate'] = date('Y-m-d',strtotime($value['timestamp']));
|
| - |
|
432 |
$creditValueArray['description'] = $value['description'];
|
| 416 |
$creditKeyArray[$value['batch'].$value['type']] = $creditValueArray;
|
433 |
$creditKeyArray[$value['batch'].$value['type']] = $creditValueArray;
|
| 417 |
}
|
434 |
}
|
| 418 |
|
435 |
|
| 419 |
}
|
436 |
}
|
| 420 |
}
|
437 |
}
|