User interface to allow admin to waive warehouse storage invoice transaction

This commit is contained in:
Dillon Ngo
2024-02-15 21:01:50 +08:00
parent 1b6fe7445e
commit 8a7a4ce38a
@@ -10,6 +10,8 @@ use App\Classes\Modules\Transactions\Services\UpdatesTransactionIsWaived;
use App\Classes\Modules\Transactions\Standards\Rules\CanWaiveTransaction;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Log;
class WaiveTransactionLogic extends AbstractControllerLogic
{
@@ -56,6 +58,7 @@ class WaiveTransactionLogic extends AbstractControllerLogic
$this->canWaiveTransaction->passes($object);
$this->updatesTransactionIsWaived->execute($transaction);
Log::info(Auth::user()->email." waive storage invoice charges with bill_no: ".$transaction->bill_no);
return $this->response([]);
}