mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:07:32 -05:00 
			
		
		
		
	Display unit cost with currency symbol
This commit is contained in:
		
							parent
							
								
									badd6fb7e7
								
							
						
					
					
						commit
						b324248c68
					
				@ -497,7 +497,7 @@ NINJA.invoiceLines = function(invoice, isSecondTable) {
 | 
			
		||||
 | 
			
		||||
        var row = [];
 | 
			
		||||
        var item = invoice.invoice_items[i];
 | 
			
		||||
        var cost = formatMoneyInvoice(item.cost, invoice, 'none', getPrecision(item.cost));
 | 
			
		||||
        var cost = formatMoneyInvoice(item.cost, invoice, null, getPrecision(item.cost));
 | 
			
		||||
        var qty = NINJA.parseFloat(item.qty) ? roundSignificant(NINJA.parseFloat(item.qty)) + '' : '';
 | 
			
		||||
        var notes = item.notes;
 | 
			
		||||
        var productKey = item.product_key;
 | 
			
		||||
@ -526,7 +526,7 @@ NINJA.invoiceLines = function(invoice, isSecondTable) {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // show at most one blank line
 | 
			
		||||
        if (shownItem && !notes && !productKey && (!cost || cost == '0' || cost == '0.00' || cost == '0,00')) {
 | 
			
		||||
        if (shownItem && !notes && !productKey && !item.cost) {
 | 
			
		||||
            continue;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user