Fix delete payment (#3983)

This commit is contained in:
jekkos
2024-05-02 22:02:36 +02:00
committed by jekkos
parent 8886cac056
commit bd1af2b854
2 changed files with 2 additions and 2 deletions

View File

@@ -483,7 +483,7 @@ class Sales extends Secure_Controller
* @param string $payment_id
* @return void
*/
public function postDelete_payment(string $payment_id): void
public function getDeletePayment(string $payment_id): void
{
$this->sale_lib->delete_payment($payment_id);

View File

@@ -595,7 +595,7 @@ if(isset($success))
{
?>
<tr>
<td><?= anchor("$controller_name/delete_payment/$payment_id", '<span class="glyphicon glyphicon-trash"></span>') ?></td>
<td><?= anchor("$controller_name/deletePayment/$payment_id", '<span class="glyphicon glyphicon-trash"></span>') ?></td>
<td><?= esc($payment['payment_type']) ?></td>
<td style="text-align: right;"><?= to_currency($payment['payment_amount']) ?></td>
</tr>