Skip to content

Commit

Permalink
Add delete to payment history table.
Browse files Browse the repository at this point in the history
  • Loading branch information
elplatt committed Aug 28, 2013
1 parent 3b31694 commit eb36ddc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crm/modules/payment/payment.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -759,9 +759,14 @@ function payment_history_table ($opts) {
$row[] = $payment['method'];
$row[] = $contactName;
$row[] = payment_format_currency($balance);
$ops = '';
if (user_access('payment_edit')) {
$row[] = '<a href=' . crm_url('payment&pmtid=' . $payment[pmtid]) . '>edit</a>';
$ops .= '<a href=' . crm_url('payment&pmtid=' . $payment[pmtid]) . '>edit</a> ';
}
if (user_access('payment_delete')) {
$ops .= '<a href=' . crm_url('delete&type=payment&id=' . $payment['pmtid']) . '>delete</a>';
}
$row[] = $ops;
$table['rows'][] = $row;
}

Expand Down

0 comments on commit eb36ddc

Please sign in to comment.