Add support for "missing" credit in mobile receiving

This commit is contained in:
Lance Edgar 2023-08-29 16:10:14 -05:00
parent 12e4779093
commit 4e2125d613
2 changed files with 3 additions and 2 deletions

View file

@ -414,7 +414,7 @@ class ReceivingBatchRowViews(APIBatchRowView):
# TODO: this seems hacky, but avoids "complex" date value parsing
form.set_widget('expiration_date', dfwidget.TextInputWidget())
if not form.validate():
log.debug("form did not validate: %s",
log.warning("form did not validate: %s",
form.make_deform_form().error)
return {'error': "Form did not validate"}

View file

@ -52,6 +52,7 @@ class ReceiveRow(colander.MappingSchema):
'received',
'damaged',
'expired',
'missing',
# 'mispick',
]))