forked from kevinowino869/mitrobill
Download PDF invoice Customers
This commit is contained in:
@ -87,7 +87,7 @@ class File
|
||||
$src_img = $image_create($source_file);
|
||||
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $nwidth, $nheight, $width, $height);
|
||||
|
||||
$image($dst_img, $dst_dir, $quality);
|
||||
imagepng($dst_img, $dst_dir);
|
||||
|
||||
if ($dst_img) imagedestroy($dst_img);
|
||||
if ($src_img) imagedestroy($src_img);
|
||||
|
@ -64,6 +64,17 @@ switch ($action) {
|
||||
}
|
||||
if ($in) {
|
||||
Package::createInvoice($in);
|
||||
$UPLOAD_URL_PATH = str_replace($root_path, '', $UPLOAD_PATH);
|
||||
$logo = '';
|
||||
if (file_exists($UPLOAD_PATH . DIRECTORY_SEPARATOR . 'logo.png')) {
|
||||
$logo = $UPLOAD_URL_PATH . DIRECTORY_SEPARATOR . 'logo.png';
|
||||
$imgsize = getimagesize($logo);
|
||||
$width = $imgsize[0];
|
||||
$height = $imgsize[1];
|
||||
$ui->assign('wlogo', $width);
|
||||
$ui->assign('hlogo', $height);
|
||||
}
|
||||
$ui->assign('logo', $logo);
|
||||
$ui->display('customer/invoice-customer.tpl');
|
||||
} else {
|
||||
r2(getUrl('voucher/list-activated'), 'e', Lang::T('Not Found'));
|
||||
|
@ -1145,5 +1145,7 @@
|
||||
"If_you_Download_manual_the_update_file__sometime_update_change_database__after_uploading__click_this_button_to_update_database_structure_": "If you Download manual the update file, sometime update change database, after uploading, click this button to update database structure.",
|
||||
"Update_Database": "Update Database",
|
||||
"Credits": "Credits",
|
||||
"Continue_the_process_of_sending_messages": "Continue the process of sending messages"
|
||||
"Continue_the_process_of_sending_messages": "Continue the process of sending messages",
|
||||
"Yours_Balances": "Yours Balances",
|
||||
"Friend_username": "Friend username"
|
||||
}
|
Reference in New Issue
Block a user