Add initial support for expiration date for mobile receiving
This commit is contained in:
parent
4aa91414a5
commit
a03083efdd
3 changed files with 34 additions and 4 deletions
|
@ -205,7 +205,7 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
# if mode in ('damaged', 'expired', 'mispick'):
|
||||
if mode in ('damaged', 'expired'):
|
||||
self.attach_credit(row, mode, cases, units,
|
||||
# expiration_date=update_form.data['expiration_date'],
|
||||
expiration_date=update_form.data['expiration_date'],
|
||||
# discarded=update_form.data['trash'],
|
||||
# mispick_product=shipped_product)
|
||||
)
|
||||
|
@ -313,7 +313,7 @@ class ReceivingForm(forms.Schema):
|
|||
# case_quantity = fe.validators.Number()
|
||||
cases = fe.validators.Number()
|
||||
units = fe.validators.Number()
|
||||
# expiration_date = fe.validators.DateValidator()
|
||||
expiration_date = fe.validators.DateValidator()
|
||||
# trash = fe.validators.Bool()
|
||||
# ordered_product = forms.validators.ValidProduct()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue