Skip to content

Commit

Permalink
BAH-3657 | Fix. Remove unnecessary colon
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 authored Mar 11, 2024
1 parent 3b6019e commit 5679cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bahmni_sale/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_available_batch_details(self, product_id, sale_order):
if len(already_used_batch_ids) > 0 else [('product_id','=', product_id.id if type(product_id) != list else product_id[0])]

for prodlot in stock_prod_lot.search(query, order='expiration_date asc'):
if prodlot.expiration_date and prodlot.product_qty::
if prodlot.expiration_date and prodlot.product_qty:
date_lenth = len(str(prodlot.expiration_date))
if len(str(prodlot.expiration_date)) > 20:
formatted_ts = datetime.strptime(str(prodlot.expiration_date), "%Y-%m-%d %H:%M:%S.%f").strftime("%Y-%m-%d %H:%M:%S")
Expand Down

0 comments on commit 5679cc5

Please sign in to comment.