Live Fixes 2 : ps
This commit is contained in:
parent
0e6bbb919c
commit
44cc68da0a
File diff suppressed because it is too large
Load Diff
@ -768,11 +768,12 @@ class SMC_Credit_PD_Controller extends REST_Controller {
|
||||
//echo 'final';die();
|
||||
$id = $this->SMC_Credit_PD_Model->updateRecords($records,SMC_CREDIT_PD,array('smc_credit_pd' => $records['smc_credit_pd']));
|
||||
log_message('ERROR','####COMPLETE SMC Credit PD = '.$records['smc_credit_pd']);
|
||||
$random_string = $records['random_string'];
|
||||
$ZIP = smc_creditpd::covertSMCImgs2ZIP($records['smc_credit_pd'],$random_string,array(),0);
|
||||
log_message('ERROR','####COMPLETE SMC IMAGE ZIP = '.$ZIP);
|
||||
$PDF = smc_creditpd::covertSMCImgs2PDF($records['smc_credit_pd'],$random_string,array(),0);
|
||||
log_message('ERROR','####COMPLETE SMC IMAGE PDF = '.$PDF);
|
||||
// $random_string = $this->SMC_Credit_PD_Model->selectCustomRecords(array('rand_string'),array('smc_credit_pd' => $records['smc_credit_pd'],'isactive' => 1),SMC_CREDIT_PD);
|
||||
// $random_string = $random_string[0]['rand_string'];
|
||||
// $ZIP = smc_creditpd::covertSMCImgs2ZIP($records['smc_credit_pd'],$random_string,array(),0);
|
||||
// log_message('ERROR','####COMPLETE SMC IMAGE ZIP = '.$ZIP);
|
||||
// $PDF = smc_creditpd::covertSMCImgs2PDF($records['smc_credit_pd'],$random_string,array(),0);
|
||||
// log_message('ERROR','####COMPLETE SMC IMAGE PDF = '.$PDF);
|
||||
//$this->prepareSalesPDReport($records['smc_credit_pd'],false);
|
||||
// sleep(10);
|
||||
// log_message('ERROR','####SALESPD AFTER 10 PREPARED REPORT'.$records['smc_credit_pd']);
|
||||
|
||||
@ -669,9 +669,9 @@ class smc_creditpd
|
||||
}
|
||||
public static function covertSMCImgs2PDF($pdid,$random_string,$pd_master_details = array(),$regenerate = 0)
|
||||
{
|
||||
//echo 'this is from daiu';
|
||||
$CI =&get_instance();
|
||||
$CI->load->model('PD_Model');
|
||||
$CI->load->model('SMC_Credit_PD_Model');
|
||||
$CI->load->library('pdfgenerator');
|
||||
|
||||
if(!count($pd_master_details))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user