Add support for "missing" credit in mobile receiving
This commit is contained in:
		
							parent
							
								
									12e4779093
								
							
						
					
					
						commit
						4e2125d613
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -414,8 +414,8 @@ class ReceivingBatchRowViews(APIBatchRowView):
 | 
				
			||||||
        # TODO: this seems hacky, but avoids "complex" date value parsing
 | 
					        # TODO: this seems hacky, but avoids "complex" date value parsing
 | 
				
			||||||
        form.set_widget('expiration_date', dfwidget.TextInputWidget())
 | 
					        form.set_widget('expiration_date', dfwidget.TextInputWidget())
 | 
				
			||||||
        if not form.validate():
 | 
					        if not form.validate():
 | 
				
			||||||
            log.debug("form did not validate: %s",
 | 
					            log.warning("form did not validate: %s",
 | 
				
			||||||
                      form.make_deform_form().error)
 | 
					                        form.make_deform_form().error)
 | 
				
			||||||
            return {'error': "Form did not validate"}
 | 
					            return {'error': "Form did not validate"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # fetch / validate row object
 | 
					        # fetch / validate row object
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -52,6 +52,7 @@ class ReceiveRow(colander.MappingSchema):
 | 
				
			||||||
                                   'received',
 | 
					                                   'received',
 | 
				
			||||||
                                   'damaged',
 | 
					                                   'damaged',
 | 
				
			||||||
                                   'expired',
 | 
					                                   'expired',
 | 
				
			||||||
 | 
					                                   'missing',
 | 
				
			||||||
                                   # 'mispick',
 | 
					                                   # 'mispick',
 | 
				
			||||||
                               ]))
 | 
					                               ]))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue