Subversion Repositories SmartDukaan

Rev

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

Rev 18699 Rev 18718
Line 81... Line 81...
81
			$codAvailable = $cartskus['cod'];
81
			$codAvailable = $cartskus['cod'];
82
			$this->Session->write('cod', $codAvailable);
82
			$this->Session->write('cod', $codAvailable);
83
			$creditTicketSize = 0;
83
			$creditTicketSize = 0;
84
			
84
			
85
			$creditorAssociated = $response ['creditorAssociated'];
85
			$creditorAssociated = $response ['creditorAssociated'];
86
			if(empty($response ['userSanctions'])){
86
			if(!isset($response ['userSanctions'])){
87
				$creditLimit = 0;
87
				$creditLimit = 0;
88
			}else{
88
			}else{
89
				$creditLimit = 0;
89
				$creditLimit = 0;
90
				$creditTicketSize = intval($response ['userSanctions'][0]['ticket_size']);
90
				$creditTicketSize = intval($response ['userSanctions'][0]['ticket_size']);
91
				foreach ( $response ['userSanctions'] as $key => $value ) {
91
				foreach ( $response ['userSanctions'] as $key => $value ) {