X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_view.inc;h=9306aa5d0a84ba1d1598dc9ead62afe924d4d83a;hb=7b9032da05f92d030cf5ba36e1d524d123129159;hp=a798586e63f3c3f4b4ec0ceff04eabe5f4cac079;hpb=bb441af7e4d3c63526af2bb3b3bea95ee8fc557e;p=fa-stable.git diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index a798586e..9306aa5d 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -368,18 +368,18 @@ function view_stock_status_cell($stock_id, $description=null) //-------------------------------------------------------------------------------------- -function display_debit_or_credit_cells($value) +function display_debit_or_credit_cells($value, $bold=false) { $value = round2($value, user_price_dec()); if ($value >= 0) { - amount_cell($value); + amount_cell($value, $bold); label_cell(""); } elseif ($value < 0) { label_cell(""); - amount_cell(abs($value)); + amount_cell(abs($value), $bold); } } @@ -1290,7 +1290,6 @@ if (!function_exists('_vd')) { function _vd($mixed, $title = '', $exit = false) { - // Only the site admin is able to proceed here. $str = (!empty($title) ? ($title .':') : '') .'
';
     	$str .= print_r($mixed, true); //var_dump($mixed);
     	$str .= "
\n"; @@ -1300,6 +1299,13 @@ if (!function_exists('_vd')) } } +function _vl($mixed, $title = '', $exit = false) +{ + error_log((!empty($title) ? ($title .':') : '') . var_export($mixed, true)); + if ($exit) + exit; +} + function display_backtrace($cond=true, $msg='') { if ($cond) {