0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-15 02:28:48 +00:00
salesagility_SuiteCRM/modules/AOS_Invoices/views/view.edit.php
Dillon-Brown 4ee7a709a0 Remove PHP4 constructors
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-26 21:50:24 +00:00

35 lines
788 B
PHP
Executable file

<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
class AOS_InvoicesViewEdit extends ViewEdit
{
public function __construct()
{
parent::__construct();
}
public function display()
{
$this->populateInvoiceTemplates();
parent::display();
}
public function populateInvoiceTemplates()
{
global $app_list_strings;
$sql = "SELECT id, name FROM aos_pdf_templates WHERE deleted='0' AND type='AOS_Invoices'";
$res = $this->bean->db->query($sql);
$app_list_strings['template_ddown_c_list'] = array();
while ($row = $this->bean->db->fetchByAssoc($res)) {
$app_list_strings['template_ddown_c_list'][$row['id']] = $row['name'];
}
}
}