"; // outer table
@@ -228,7 +251,7 @@ function display_credit_items()
// $_POST['ref'] = references::get_next(11);
if ($_SESSION['Items']->trans_no==0) {
- ref_cells(_("Reference"), 'ref', '', $_SESSION['Items']->reference, "class='tableheader2'");
+ ref_cells(_("Reference"), 'ref', '', null, "class='tableheader2'");
} else {
label_cells(_("Reference"), $_SESSION['Items']->reference, "class='tableheader2'");
}
@@ -254,7 +277,7 @@ function display_credit_items()
label_row(_("Invoice Date"), $_SESSION['Items']->src_date, "class='tableheader2'");
- date_row(_("Credit Note Date"), 'CreditDate', '', null, 0, 0, 0, "class='tableheader2'");
+ date_row(_("Credit Note Date"), 'CreditDate', '', $_SESSION['Items']->trans_no==0, 0, 0, 0, "class='tableheader2'");
end_table();
@@ -271,8 +294,8 @@ function display_credit_items()
$k = 0; //row colour counter
foreach ($_SESSION['Items']->line_items as $line_no=>$ln_itm) {
- if ($ln_itm->quantity==$ln_itm->qty_done) {
- continue; // this line was fully credited
+ if ($ln_itm->quantity == $ln_itm->qty_done) {
+ continue; // this line was fully credited/removed
}
alt_table_row_color($k);
@@ -354,7 +377,7 @@ if (isset($_POST['_CreditType_update']))
}
//-----------------------------------------------------------------------------
-if (get_post('Update'))
+if (get_post('Update'))
{
$Ajax->activate('credit_items');
}
@@ -366,7 +389,7 @@ display_credit_options();
echo " ";
submit('Update', _("Update"), true, _('Update credit value for quantities entered'), true);
echo " ";
-submit('ProcessCredit', _("Process Credit Note"), true, '', true);
+submit('ProcessCredit', _("Process Credit Note"), true, '', 'default');
echo "";
end_form();
|