mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-22 20:46:33 +00:00 
			
		
		
		
	Show the plural form of stock QU unit when showing purchase to stock conversion factor on purchase page when QU units are different (references #169)
This commit is contained in:
		| @@ -114,7 +114,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e) | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					$('#amount_qu_unit').text(productDetails.quantity_unit_purchase.name + " (" + L("will be multiplied a factor of #1 to get #2", parseInt(productDetails.product.qu_factor_purchase_to_stock).toString(), productDetails.quantity_unit_stock.name) + ")"); | ||||
| 					$('#amount_qu_unit').text(productDetails.quantity_unit_purchase.name + " (" + L("will be multiplied a factor of #1 to get #2", parseInt(productDetails.product.qu_factor_purchase_to_stock).toString(), Pluralize(2, productDetails.quantity_unit_stock.name, productDetails.quantity_unit_stock.name_plural)) + ")"); | ||||
| 				} | ||||
|  | ||||
| 				if (productDetails.product.allow_partial_units_in_stock == 1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user