Moved from paper_id to paper_name

pull/2367/head
int2001 2023-08-02 09:46:19 +00:00
rodzic ed6ca09b67
commit 4a19e00965
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DFB1C13CD2DB037B
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -158,7 +158,7 @@ class Labels extends CI_Controller {
try {
if ($label) {
$ptype=$this->labels_model->getPaperType($label->paper_type); // fetch papersize out of paper-table
var_dump($ptype);
// var_dump($ptype);
$pdf = new PDF_Label(array(
'paper-size' => 'custom', // $label->paper_type, // The only Type left is "custom" because A4 and so on are also defined at paper_types
'metric' => $label->metric,

Wyświetl plik

@ -119,7 +119,7 @@ class Labels_model extends CI_Model {
function getPaperType($ptype) {
$this->db->where('user_id', $this->session->userdata('user_id'));
$this->db->where('id',$ptype);
$this->db->where('paper_name',$ptype);
$query = $this->db->get('paper_types');
return $query->row();

Wyświetl plik

@ -72,7 +72,7 @@ class PDF_Label extends tfpdf {
function __construct($format, $unit='mm', $posX=1, $posY=1, $pgX=0,$pgY=0) {
if (is_array($format)) {
// Custom format
var_dump("X".$pgX);
// var_dump("X".$pgX);
$Tformat = $format;
} else {
// Built-in format