-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UBL+ and PDF in modal windows #591
Conversation
View your generated Pdf-Invoices in a modal window.
Based on the individual XML version of your customer (Zugferd, UBL +), a PDF (+ zugferd?) or an extra (UBL) XML file is added to the e-mail. All selectable e-invoicing XML capabilities are based on the correct xml templates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly, the whole pull request is a mess. You re-introduce bugs by reverting code.
That's why the contribution guide states that you should rebase your changes on top of the existing changes. This would have prevented this situation where I had to review for almost one hour and requesting you to change half of your code.
@@ -5,7 +5,7 @@ | |||
* InvoicePlane | |||
* | |||
* @author InvoicePlane Developers & Contributors | |||
* @copyright Copyright (c) 2012 - 2018 InvoicePlane.com | |||
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change
application/helpers/mpdf_helper.php
Outdated
* @license https://invoiceplane.com/license.txt | ||
* @link https://invoiceplane.com | ||
* @author InvoicePlane Developers & Contributors | ||
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. Please revert
application/helpers/mpdf_helper.php
Outdated
define('_MPDF_TEMP_PATH', UPLOADS_TEMP_MPDF_FOLDER); | ||
define('_MPDF_TTFONTDATAPATH', UPLOADS_TEMP_MPDF_FOLDER); | ||
define('_MPDF_TEMP_PATH', FCPATH . 'uploads/temp/mpdf/'); | ||
define('_MPDF_TTFONTDATAPATH', FCPATH . 'uploads/temp/mpdf/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same. Revert please.
application/helpers/mpdf_helper.php
Outdated
@@ -72,32 +70,26 @@ function pdf_create( | |||
} | |||
|
|||
// Check if the archive folder is available | |||
if (!(is_dir(UPLOADS_ARCHIVE_FOLDER) || is_link(UPLOADS_ARCHIVE_FOLDER))) { | |||
mkdir(UPLOADS_ARCHIVE_FOLDER, '0777'); | |||
if (!(is_dir('./uploads/archive/') || is_link('./uploads/archive/'))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same. Revert please.
application/helpers/mpdf_helper.php
Outdated
// Watermark | ||
if (get_setting('pdf_watermark')) { | ||
$mpdf->showWatermarkText = true; | ||
} | ||
|
||
$mpdf->WriteHTML((string) $html); | ||
$mpdf->WriteHTML($html); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same. Revert please.
@@ -31,11 +31,13 @@ function phpmail_send( | |||
$bcc = null, | |||
$more_attachments = null | |||
) { | |||
require_once(FCPATH . 'vendor/phpmailer/phpmailer/PHPMailerAutoload.php'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert the whole file please!
* @license https://invoiceplane.com/license.txt | ||
* @link https://invoiceplane.com | ||
* @author InvoicePlane Developers & Contributors | ||
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert please
@@ -55,7 +55,7 @@ public function validation_rules() | |||
'user_email' => array( | |||
'field' => 'user_email', | |||
'label' => trans('email'), | |||
'rules' => 'required|valid_email|is_unique[ip_users.user_email]' | |||
'rules' => 'required|callback_validate_email|is_unique[ip_users.user_email]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert please
@@ -147,7 +158,7 @@ public function validation_rules_existing() | |||
'user_email' => array( | |||
'field' => 'user_email', | |||
'label' => trans('email'), | |||
'rules' => 'required|valid_email' | |||
'rules' => 'required|callback_validate_email' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert please
* @param string $str | ||
* @return bool | ||
*/ | ||
public function validate_email($str) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert please
@Verony-12BaDev Could we re-do this pull request and split it up from the PDF modal feature? Would really like to implement the feature. |
@Verony-12BaDev Could you do this pull request again on top of the current version? |
Needs label : 1.6 or 1.5.11 or something. Needs Milestone? |
It's not scheduled for a version yet. |
Issue https://development.invoiceplane.com/browse/IP-762 created. We either fix the pull-request or make a new one |
Some preparations to see how contributing works before I commit my "Client UBL+" implementation.
If something is not added in the right or correct way, please inform me how to do it just as it should.