mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:07:33 -05:00 
			
		
		
		
	Prevent marking quote as paid
This commit is contained in:
		
							parent
							
								
									45ee040146
								
							
						
					
					
						commit
						faa1889d19
					
				@ -123,8 +123,8 @@ class InvoiceDatatable extends EntityDatatable
 | 
				
			|||||||
                function ($model) use ($entityType) {
 | 
					                function ($model) use ($entityType) {
 | 
				
			||||||
                    return "javascript:submitForm_{$entityType}('markPaid', {$model->public_id})";
 | 
					                    return "javascript:submitForm_{$entityType}('markPaid', {$model->public_id})";
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                function ($model) {
 | 
					                function ($model) use ($entityType) {
 | 
				
			||||||
                    return $model->balance > 0 && Auth::user()->can('editByOwner', [ENTITY_INVOICE, $model->user_id]);
 | 
					                    return $entityType == ENTITY_INVOICE && $model->balance > 0 && Auth::user()->can('editByOwner', [ENTITY_INVOICE, $model->user_id]);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            [
 | 
					            [
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user