fixed #248
This commit is contained in:
		@@ -24,7 +24,7 @@ class Payments extends Controller
 | 
			
		||||
     */
 | 
			
		||||
    public function index()
 | 
			
		||||
    {
 | 
			
		||||
        $payments = Payment::with(['vendor', 'account', 'category'])->collect(['paid_at'=> 'desc']);
 | 
			
		||||
        $payments = Payment::with(['vendor', 'account', 'category'])->isNotTransfer()->collect(['paid_at'=> 'desc']);
 | 
			
		||||
 | 
			
		||||
        $vendors = collect(Vendor::enabled()->pluck('name', 'id'))
 | 
			
		||||
            ->prepend(trans('general.all_type', ['type' => trans_choice('general.vendors', 2)]), '');
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ class Revenues extends Controller
 | 
			
		||||
     */
 | 
			
		||||
    public function index()
 | 
			
		||||
    {
 | 
			
		||||
        $revenues = Revenue::with(['account', 'category', 'customer'])->collect(['paid_at'=> 'desc']);
 | 
			
		||||
        $revenues = Revenue::with(['account', 'category', 'customer'])->isNotTransfer()->collect(['paid_at'=> 'desc']);
 | 
			
		||||
 | 
			
		||||
        $customers = collect(Customer::enabled()->pluck('name', 'id'))
 | 
			
		||||
            ->prepend(trans('general.all_type', ['type' => trans_choice('general.customers', 2)]), '');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user