mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-11-14 12:26:41 +00:00
37 lines
815 B
PHP
Executable File
37 lines
815 B
PHP
Executable File
<?php
|
|
if (!defined('sugarEntry') || !sugarEntry) {
|
|
die('Not A Valid Entry Point');
|
|
}
|
|
|
|
|
|
#[\AllowDynamicProperties]
|
|
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'];
|
|
}
|
|
}
|
|
}
|