fix bug of pargar 4
This commit is contained in:
@@ -33,6 +33,15 @@ class PargarController extends Controller
|
||||
return response()->json(PargarSyncLog::with('customer')->findOrFail($id));
|
||||
}
|
||||
|
||||
/** اسناد پنل که پرگار هنوز تحویل نگرفته — ماندهٔ این مشتریها قفل است */
|
||||
public function stuckOutbound(Request $request)
|
||||
{
|
||||
$minutes = (int) $request->query('minutes', 15);
|
||||
$minutes = max(0, min($minutes, 60 * 24 * 30));
|
||||
|
||||
return response()->json($this->sync()->stuckOutboundDocuments($minutes));
|
||||
}
|
||||
|
||||
public function customerSyncStatus(Request $request)
|
||||
{
|
||||
$panelTotal = Customer::whereNull('deleted_at')->count();
|
||||
|
||||
Reference in New Issue
Block a user