X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fincludes%2Fui%2Fgl_journal_ui.inc;h=0a6b45545470989f68634cec8fb16891bd13940a;hb=4deaa6ba6e084655989c30cfb7d9dd307408c7dc;hp=69ed170ce15652ebf177d3639681ebbeca197339;hpb=a451be636774783e63c2fcdd9c7869c9aad48ba9;p=fa-stable.git diff --git a/gl/includes/ui/gl_journal_ui.inc b/gl/includes/ui/gl_journal_ui.inc index 69ed170c..0a6b4554 100644 --- a/gl/includes/ui/gl_journal_ui.inc +++ b/gl/includes/ui/gl_journal_ui.inc @@ -79,16 +79,12 @@ function display_order_header(&$Order) } check_row(_('Include in tax register:'), 'taxable_trans', null, true); + // Query the user to retain the reconciled status - if (!$new) { - $result = get_bank_trans(ST_JOURNAL, $Order->order_id); - $row = db_fetch($result); - if ($row - && $row['reconciled']) { - check_row(_('Reconciled:'), 'reconciled', 1, true); - hidden('reconciled_date', $row['reconciled']); - } - } + if (!$new && $Order->reconcile_date) { + check_row(_('Reconciled:'), 'reconciled', 1, true); + hidden('reconcile_date', $Order->reconcile_date); + } end_outer_table(1); }