From 4e2125d613df71169100d13abed55fd6373e30e7 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 29 Aug 2023 16:10:14 -0500 Subject: [PATCH] Add support for "missing" credit in mobile receiving --- tailbone/api/batch/receiving.py | 4 ++-- tailbone/forms/receiving.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tailbone/api/batch/receiving.py b/tailbone/api/batch/receiving.py index b02215d2..a0b61f38 100644 --- a/tailbone/api/batch/receiving.py +++ b/tailbone/api/batch/receiving.py @@ -414,8 +414,8 @@ 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", - form.make_deform_form().error) + log.warning("form did not validate: %s", + form.make_deform_form().error) return {'error': "Form did not validate"} # fetch / validate row object diff --git a/tailbone/forms/receiving.py b/tailbone/forms/receiving.py index 20c4774f..9f5706c7 100644 --- a/tailbone/forms/receiving.py +++ b/tailbone/forms/receiving.py @@ -52,6 +52,7 @@ class ReceiveRow(colander.MappingSchema): 'received', 'damaged', 'expired', + 'missing', # 'mispick', ]))