0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-12-22 12:28:31 +00:00
salesagility_SuiteCRM/modules/AOS_Invoices/views/view.edit.php
2023-07-18 15:53:09 +01:00

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'];
}
}
}