|
@@ -21,8 +21,9 @@ discard block |
|
|
block discarded – undo |
|
21
|
21
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
22
|
22
|
############################################################################### |
|
23
|
23
|
|
|
24
|
|
-if (!defined('BASEPATH')) |
|
|
24
|
+if (!defined('BASEPATH')) { |
|
25
|
25
|
exit('No direct script access allowed'); |
|
|
26
|
+} |
|
26
|
27
|
|
|
27
|
28
|
class Accounts_form { |
|
28
|
29
|
function __construct($library_name = '') { |
|
@@ -279,8 +280,7 @@ discard block |
|
|
block discarded – undo |
|
279
|
280
|
array(gettext('Tax'), 'tax_id', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', 'id', 'taxes_description', 'taxes', 'build_dropdown', 'where_arr', array('status' => 0, 'reseller_id' => $loginid), 'multi'), |
|
280
|
281
|
); |
|
281
|
282
|
|
|
282
|
|
-} |
|
283
|
|
-else{ |
|
|
283
|
+} else{ |
|
284
|
284
|
$form[gettext('Billing Information')] = array( |
|
285
|
285
|
array(gettext('Rate Group'), 'pricelist_id', 'SELECT', '', array("name" => "pricelist_id", 'rules' => 'required'), 'tOOL TIP', 'Please Enter account number', 'id', 'name', 'pricelists', 'build_dropdown', 'where_arr', array("status" => "0", "reseller_id" => "0")), |
|
286
|
286
|
|
|
@@ -442,8 +442,7 @@ discard block |
|
|
block discarded – undo |
|
442
|
442
|
array('', 'HIDDEN', 'advance_search', '1', '', '', '') |
|
443
|
443
|
); |
|
444
|
444
|
|
|
445
|
|
- } |
|
446
|
|
- else |
|
|
445
|
+ } else |
|
447
|
446
|
{ |
|
448
|
447
|
|
|
449
|
448
|
$form['forms'] = array("", array('id' => "account_search")); |
|
@@ -603,8 +602,9 @@ discard block |
|
|
block discarded – undo |
|
603
|
602
|
function build_grid_buttons_customer() { |
|
604
|
603
|
$logintype = $this->CI->session->userdata('userlevel_logintype'); |
|
605
|
604
|
$provider = null; |
|
606
|
|
- if ($logintype != 1) |
|
607
|
|
- $provider = array(gettext("Create Provider"), "btn btn-line-blue btn", "fa fa-plus-circle fa-lg", "button_action", "/accounts/provider_add/"); |
|
|
605
|
+ if ($logintype != 1) { |
|
|
606
|
+ $provider = array(gettext("Create Provider"), "btn btn-line-blue btn", "fa fa-plus-circle fa-lg", "button_action", "/accounts/provider_add/"); |
|
|
607
|
+ } |
|
608
|
608
|
// array(display name, width, db_field_parent_table,feidname, db_field_child_table,function name); |
|
609
|
609
|
$buttons_json = json_encode(array( |
|
610
|
610
|
array(gettext("Create Customer"), "btn btn-line-warning btn", "fa fa-plus-circle fa-lg", "button_action", "/accounts/customer_add/"), |