X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=1e29770487deff359a401b9349dbb170cbc89398;hb=7b9032da05f92d030cf5ba36e1d524d123129159;hp=9717a95ca34c151ac41b1f6211fd0244cbea4c4e;hpb=c7d6d081bc0512018f8bfc6851e698f752b042b7;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 9717a95c..1e297704 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -257,7 +257,9 @@ function submit_js_confirm($name, $msg) { function set_icon($icon, $title=false) { global $path_to_root; - return "\n"; + if (basename($icon) === $icon) // standard icons does not contain path separator + $icon = "$path_to_root/themes/".user_theme()."/images/$icon"; + return "\n"; } function button($name, $value, $title=false, $icon=false, $aspect='') @@ -899,4 +901,29 @@ function inactive_control_column(&$th) { $Ajax->activate('_page_body'); } } + +function customer_credit_row($customer, $credit, $parms='') +{ + global $path_to_root; + + label_row( _("Current Credit:"), + "" + . price_format($credit) + ."", $parms); +} + +function supplier_credit_row($supplier, $credit, $parms='') +{ + global $path_to_root; + + label_row( _("Current Credit:"), + "" + . price_format($credit) + ."", $parms); +} + ?> \ No newline at end of file