From bd1af2b854c3bdce7e240105fb7414b43941cb92 Mon Sep 17 00:00:00 2001 From: jekkos Date: Thu, 2 May 2024 22:02:36 +0200 Subject: [PATCH] Fix delete payment (#3983) --- app/Controllers/Sales.php | 2 +- app/Views/sales/register.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/Sales.php b/app/Controllers/Sales.php index ada40cc50..277c87a1f 100644 --- a/app/Controllers/Sales.php +++ b/app/Controllers/Sales.php @@ -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); diff --git a/app/Views/sales/register.php b/app/Views/sales/register.php index 777a050dd..0ae22721b 100644 --- a/app/Views/sales/register.php +++ b/app/Views/sales/register.php @@ -595,7 +595,7 @@ if(isset($success)) { ?> - ') ?> + ') ?>