Work on orders and order lines

This commit is contained in:
Scott Idem
2022-03-16 16:26:37 -04:00
parent e254f8f181
commit 490a1362c3

View File

@@ -474,7 +474,7 @@ def save_order_obj(order_obj_new:Order_Base, repl_order_line_li: bool=False):
order_obj_new.total_bill = order_total_amount # "amount" is used by order_cart and Stripe order_obj_new.total_bill = order_total_amount # "amount" is used by order_cart and Stripe
order_obj_new.total_quantity = order_total_quantity order_obj_new.total_quantity = order_total_quantity
order_obj_new.balance = order_total_amount - order_obj_new.total_paid # order_obj_new.balance = order_total_amount - order_obj_new.total_paid # No longer used 2022-03-16
log.debug(order_obj_new.dict(by_alias=False, exclude_defaults=False, exclude_unset=True, exclude={'order_line_li', 'cfg', 'created_on', 'updated_on'})) log.debug(order_obj_new.dict(by_alias=False, exclude_defaults=False, exclude_unset=True, exclude={'order_line_li', 'cfg', 'created_on', 'updated_on'}))
order_obj_data = order_obj_new.dict(by_alias=False, exclude_defaults=False, exclude_unset=True, exclude={'order_line_li', 'cfg', 'created_on', 'updated_on'}) order_obj_data = order_obj_new.dict(by_alias=False, exclude_defaults=False, exclude_unset=True, exclude={'order_line_li', 'cfg', 'created_on', 'updated_on'})