feat: enhance reconciliation job processing and reporting features
- Updated ReconcileItemIndexController to include admin user validation and improved transfer order handling. - Refactored ReconcileJobStoreController to ensure date range handling is more precise with start and end of day adjustments. - Enhanced various report controllers to include currency code in responses for better financial clarity. - Introduced new methods in AdminReconcileJobService for wallet transfer job creation and improved item scanning logic. - Added wallet lookup idempotent path configuration for integration services to enhance API interactions.
This commit is contained in:
@@ -30,11 +30,12 @@ final class ReconcileJobStoreController extends Controller
|
||||
(string) ($data['reconcile_type'] ?? 'wallet_transfer'),
|
||||
isset($data['period_start'])
|
||||
? Carbon::parse((string) $data['period_start'])
|
||||
: (isset($data['date_from']) ? Carbon::parse((string) $data['date_from']) : null),
|
||||
: (isset($data['date_from']) ? Carbon::parse((string) $data['date_from'])->startOfDay() : null),
|
||||
isset($data['period_end'])
|
||||
? Carbon::parse((string) $data['period_end'])
|
||||
: (isset($data['date_to']) ? Carbon::parse((string) $data['date_to']) : null),
|
||||
: (isset($data['date_to']) ? Carbon::parse((string) $data['date_to'])->endOfDay() : null),
|
||||
$items,
|
||||
isset($data['player_id']) ? (int) $data['player_id'] : null,
|
||||
);
|
||||
|
||||
return ApiResponse::success([
|
||||
|
||||
Reference in New Issue
Block a user