COde committed : ps
This commit is contained in:
parent
74ba7ffb05
commit
b83bf0f3ee
@ -1050,27 +1050,20 @@ class Flyhi_Controller extends REST_Controller {
|
||||
public function saveFlyhiPD_post()
|
||||
{
|
||||
$records = $this->post('records');
|
||||
|
||||
$applicant_id = null;
|
||||
$applicant_name = null;
|
||||
$city = null;
|
||||
$lender_id = null;
|
||||
$loan_amount = null;
|
||||
$pd_branch_id = null;
|
||||
$lender_sales_person = null;
|
||||
$lender_credit_person = null;
|
||||
$product_id = null;
|
||||
$is_entry_done = null;
|
||||
$FHFSL_product = (ENVIRONMENT == 'production' ? 27 : 26);
|
||||
$FHFSL_lender = (ENVIRONMENT == 'production' ? 19 : 49);
|
||||
$lender = $records['lender_id'] ? $records['lender_id'] : $FHFSL_lender;
|
||||
$product = $records['product_id'] ? $records['product_id'] : $FHFSL_product;
|
||||
$id = null;
|
||||
// print_r($records);//die();
|
||||
log_message('ERROR','####FLYHIPD SAVE CALLED');
|
||||
$lender_short_name = $this->Flyhi_Model->selectCustomRecords(array('short_name'),array('entity_id' => $records['lender_id']),ENTITY);
|
||||
$lender_short_name = $this->Flyhi_Model->selectCustomRecords(array('short_name'),array('entity_id' => $lender ),ENTITY);
|
||||
|
||||
$product_short_name = $this->Flyhi_Model->selectCustomRecords(array('abbr'),array('product_id' => $records['product_id']),PRODUCTS);
|
||||
$product_short_name = $this->Flyhi_Model->selectCustomRecords(array('abbr'),array('product_id' => $product ),PRODUCTS);
|
||||
|
||||
$section_names = array('1' => 'General Section','2' => 'Photography');
|
||||
|
||||
$count = $this->Flyhi_Model->selectCustomRecords(array('count(*) as count'),array('lender_id' => $records['lender_id'],'product_id' => $records['product_id'],'isactive' => 1),SALES_PD_DATA);
|
||||
$count = $this->Flyhi_Model->selectCustomRecords(array('count(*) as count'),array('lender_id' => $lender,'product_id' => $product,'isactive' => 1),SALES_PD_DATA);
|
||||
|
||||
if($records['sales_pd_id'] == '' || $records['sales_pd_id'] == null)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user