- if (isset($_POST['trans_no']) && $_POST['trans_no'] > 0 )
- submit_center('AddPaymentItem', _("Update Payment"), true, '', 'default');
- else
- submit_center('AddPaymentItem', _("Add Payment"), true, '', 'default');
- }
+amount_row(_("Amount of Discount:"), 'discount', null, '', $cust_currency);
+
+amount_row(_("Amount:"), 'amount', null, '', $cust_currency);
+
+textarea_row(_("Memo:"), 'memo_', null, 22, 4);
+end_table(1);
+
+if ($new)
+ submit_center('AddPaymentItem', _("Add Payment"), true, '', 'default');
+else
+ submit_center('AddPaymentItem', _("Update Payment"), true, '', 'default');