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

Sort quote and invoice PDF templates by name #9444

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/AOS_Invoices/views/view.detail.php
Expand Up @@ -25,7 +25,7 @@ public function populateInvoiceTemplates()
{
global $app_list_strings;

$sql = "SELECT id, name FROM aos_pdf_templates WHERE deleted = 0 AND type='AOS_Invoices' AND active = 1";
$sql = "SELECT id, name FROM aos_pdf_templates WHERE deleted = 0 AND type='AOS_Invoices' AND active = 1 order by name";

$res = $this->bean->db->query($sql);
$app_list_strings['template_ddown_c_list'] = array();
Expand Down
2 changes: 1 addition & 1 deletion modules/AOS_Quotes/views/view.detail.php
Expand Up @@ -71,7 +71,7 @@ protected function populateQuoteTemplates()
{
global $app_list_strings;

$sql = "SELECT id, name FROM aos_pdf_templates WHERE deleted=0 AND type='AOS_Quotes' AND active = 1";
$sql = "SELECT id, name FROM aos_pdf_templates WHERE deleted=0 AND type='AOS_Quotes' AND active = 1 order by name";

$res = $this->bean->db->query($sql);

Expand Down