mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 18:07:35 -04:00 
			
		
		
		
	Prevent selecting product from updating task details
This commit is contained in:
		
							parent
							
								
									9dfb419379
								
							
						
					
					
						commit
						538c66cb80
					
				| @ -1043,11 +1043,11 @@ ko.bindingHandlers.productTypeahead = { | |||||||
|                 if (model.expense_public_id()) { |                 if (model.expense_public_id()) { | ||||||
|                     return; |                     return; | ||||||
|                 } |                 } | ||||||
|                 if (datum.notes && (!model.notes() || !model.task_public_id())) { |                 if (datum.notes && (! model.notes() || ! model.isTask())) { | ||||||
|                     model.notes(datum.notes); |                     model.notes(datum.notes); | ||||||
|                 } |                 } | ||||||
|                 if (parseFloat(datum.cost)) { |                 if (parseFloat(datum.cost)) { | ||||||
|                     if (! NINJA.parseFloat(model.cost()) || ! model.task_public_id()) { |                     if (! NINJA.parseFloat(model.cost()) || ! model.isTask()) { | ||||||
|                         var cost = datum.cost; |                         var cost = datum.cost; | ||||||
| 
 | 
 | ||||||
|                         // optionally handle curency conversion
 |                         // optionally handle curency conversion
 | ||||||
| @ -1077,7 +1077,7 @@ ko.bindingHandlers.productTypeahead = { | |||||||
|                         model.cost(roundToTwo(cost, true)); |                         model.cost(roundToTwo(cost, true)); | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|                 if (!model.qty() && ! model.task_public_id()) { |                 if (! model.qty() && ! model.isTask()) { | ||||||
|                     model.qty(1); |                     model.qty(1); | ||||||
|                 } |                 } | ||||||
|                 @if ($account->invoice_item_taxes) |                 @if ($account->invoice_item_taxes) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user