Fix bug when viewing certain receiving batches
This commit is contained in:
		
							parent
							
								
									1509b6fce5
								
							
						
					
					
						commit
						6ac07e1255
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -975,7 +975,7 @@ class ReceivingBatchView(PurchasingBatchView):
 | 
				
			||||||
        # nb. only show PO *or* invoice cost; prefer the latter unless
 | 
					        # nb. only show PO *or* invoice cost; prefer the latter unless
 | 
				
			||||||
        # we have a PO and no invoice
 | 
					        # we have a PO and no invoice
 | 
				
			||||||
        if (self.batch_handler.has_purchase_order(batch)
 | 
					        if (self.batch_handler.has_purchase_order(batch)
 | 
				
			||||||
            and not self.batch_handler.has_invoice(batch)):
 | 
					            and not self.batch_handler.has_invoice_file(batch)):
 | 
				
			||||||
            g.remove('invoice_unit_cost')
 | 
					            g.remove('invoice_unit_cost')
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            g.remove('po_unit_cost')
 | 
					            g.remove('po_unit_cost')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue