Skip to content
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

Updated: Default invoice will be shown even in case of b2b invoice #1141

Merged
merged 3 commits into from
Jul 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Updated: Default invoice will be shown even in case of b2b invoice
shreesh-webkul committed Jun 19, 2024

Verified

This commit was signed with the committer’s verified signature.
commit afdef3338f82dc76132bf4d3e3485948edcbf8ec
3 changes: 2 additions & 1 deletion classes/pdf/HTMLTemplateInvoice.php
Original file line number Diff line number Diff line change
@@ -822,7 +822,8 @@ protected function getTaxLabel($tax_breakdowns)
*/
protected function getTemplateByCountry($iso_country)
{
$file = Configuration::get('PS_INVOICE_MODEL');
// $file = Configuration::get('PS_INVOICE_MODEL');
$file = 'invoice';

// try to fetch the iso template
$template = $this->getTemplate($file.'.'.$iso_country);