mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-30 09:53:58 +00:00
E-Invoice - Partial completion of => Doc Delivery - E-INVOICE, E-CN, E-RN
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Remarks;
|
||||
|
||||
use App\Classes\ValueObjects\Constants\RemarkRefundReason;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ListRefundRemarksController
|
||||
{
|
||||
/**
|
||||
* @param Request $request
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function list(Request $request): JsonResponse {
|
||||
// $allReasons = RemarkRefundReason::REFUND_REASONS;
|
||||
// $returnArray = [];
|
||||
// foreach ($allReasons as $reason => $category) {
|
||||
// $returnArray[] = [
|
||||
// 'name' => $reason
|
||||
// ];
|
||||
// }
|
||||
// $row['payload']["data"] = $returnArray;
|
||||
|
||||
$allReasons = RemarkRefundReason::REFUND_REASONS;
|
||||
$row['payload']['data'] = array_keys($allReasons);
|
||||
return response()->json($row);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user