Removing user_id related from order.

This commit is contained in:
Scott Idem
2022-03-16 16:54:46 -04:00
parent 8d5b4c7fc0
commit 810569202a

View File

@@ -280,7 +280,7 @@ def load_order_obj(
person_id = order_rec.get('person_id'), person_id = order_rec.get('person_id'),
inc_address = inc_address, inc_address = inc_address,
inc_contact = inc_contact, inc_contact = inc_contact,
inc_user = inc_user, # NOTE: inc_user = inc_user,
enabled = enabled, enabled = enabled,
limit = limit, limit = limit,
offset = offset, offset = offset,
@@ -397,11 +397,11 @@ def save_order_obj(order_obj_new:Order_Base, repl_order_line_li: bool=False):
log.info(f'No order_line records were found') log.info(f'No order_line records were found')
elif order_obj_new.account_id_random and (order_obj_new.person_id_random or order_obj_new.user_id_random): elif order_obj_new.account_id_random and order_obj_new.person_id_random:
log.info(f'An account.id_random {order_obj_new.account_id_random} was passed. And either a person.id_random {order_obj_new.person_id_random} or user.id_random {order_obj_new.user_id_random} was passed. We can create a new order.') log.info(f'An account.id_random {order_obj_new.account_id_random} was passed. And a person.id_random {order_obj_new.person_id_random} was passed. We can create a new order.')
# Because there was not an order ID, assume there are no order lines yet. So no look up. # Because there was not an order ID, assume there are no order lines yet. So no look up.
else: else:
log.info('Either an order ID is required to update an order or an account ID along with a person ID or user ID is required to create an order.') log.info('Either an order ID is required to update an order or an account ID along with a person ID is required to create an order.')
return False return False
#log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL #log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL