Live Fixes 2 : ps

This commit is contained in:
VE10-Sanjeev 2022-09-09 22:13:51 +05:30
parent 0e6bbb919c
commit 44cc68da0a
3 changed files with 6587 additions and 8092 deletions

File diff suppressed because it is too large Load Diff

View File

@ -768,11 +768,12 @@ class SMC_Credit_PD_Controller extends REST_Controller {
//echo 'final';die(); //echo 'final';die();
$id = $this->SMC_Credit_PD_Model->updateRecords($records,SMC_CREDIT_PD,array('smc_credit_pd' => $records['smc_credit_pd'])); $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']); log_message('ERROR','####COMPLETE SMC Credit PD = '.$records['smc_credit_pd']);
$random_string = $records['random_string']; // $random_string = $this->SMC_Credit_PD_Model->selectCustomRecords(array('rand_string'),array('smc_credit_pd' => $records['smc_credit_pd'],'isactive' => 1),SMC_CREDIT_PD);
$ZIP = smc_creditpd::covertSMCImgs2ZIP($records['smc_credit_pd'],$random_string,array(),0); // $random_string = $random_string[0]['rand_string'];
log_message('ERROR','####COMPLETE SMC IMAGE ZIP = '.$ZIP); // $ZIP = smc_creditpd::covertSMCImgs2ZIP($records['smc_credit_pd'],$random_string,array(),0);
$PDF = smc_creditpd::covertSMCImgs2PDF($records['smc_credit_pd'],$random_string,array(),0); // log_message('ERROR','####COMPLETE SMC IMAGE ZIP = '.$ZIP);
log_message('ERROR','####COMPLETE SMC IMAGE PDF = '.$PDF); // $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); //$this->prepareSalesPDReport($records['smc_credit_pd'],false);
// sleep(10); // sleep(10);
// log_message('ERROR','####SALESPD AFTER 10 PREPARED REPORT'.$records['smc_credit_pd']); // log_message('ERROR','####SALESPD AFTER 10 PREPARED REPORT'.$records['smc_credit_pd']);

View File

@ -669,9 +669,9 @@ class smc_creditpd
} }
public static function covertSMCImgs2PDF($pdid,$random_string,$pd_master_details = array(),$regenerate = 0) public static function covertSMCImgs2PDF($pdid,$random_string,$pd_master_details = array(),$regenerate = 0)
{ {
//echo 'this is from daiu';
$CI =&get_instance(); $CI =&get_instance();
$CI->load->model('PD_Model'); $CI->load->model('PD_Model');
$CI->load->model('SMC_Credit_PD_Model');
$CI->load->library('pdfgenerator'); $CI->load->library('pdfgenerator');
if(!count($pd_master_details)) if(!count($pd_master_details))