Se hace una depuración inicial del proyecto
This commit is contained in:
@@ -133,7 +133,6 @@ def search_sale_order(order_id: int):
|
||||
|
||||
return response_sale
|
||||
|
||||
|
||||
@tool
|
||||
def add_lines_to_order(
|
||||
order_id: int, product: str, unit: str, quantity: str, unitprice: str
|
||||
@@ -210,36 +209,3 @@ tools = [
|
||||
add_lines_to_order,
|
||||
search_associate_party_to_contact_mechanism,
|
||||
]
|
||||
|
||||
# if __name__ == "__main__":
|
||||
# # Crear una orden de venta
|
||||
# party = 2573
|
||||
# pickup_location = "at_home"
|
||||
# order_id = create_sale_order(party=party, pickup_location=pickup_location)
|
||||
# print(f"\nOrden creada con ID: {order_id}")
|
||||
|
||||
# # Agregar líneas a la orden
|
||||
# product = "1"
|
||||
# unit = "1"
|
||||
# quantity = "3"
|
||||
# unitprice = "15"
|
||||
|
||||
# add_line_response = add_lines_to_order(order_id, product, unit, quantity, unitprice)
|
||||
# print(f"\nRespuesta al agregar línea: {add_line_response.text}")
|
||||
|
||||
# # Verificar la orden actualizada
|
||||
# updated_order = search_sale_order(order_id)
|
||||
# print(f"\nOrden actualizada: {updated_order.text}")
|
||||
|
||||
# # Agregar otra línea a la orden
|
||||
# product = "2"
|
||||
# unit = "1"
|
||||
# quantity = "3"
|
||||
# unitprice = "15"
|
||||
|
||||
# add_line_response = add_lines_to_order(order_id, product, unit, quantity, unitprice)
|
||||
# print(f"\nRespuesta al agregar línea: {add_line_response.text}")
|
||||
|
||||
# # Verificar la orden actualizada
|
||||
# updated_order = search_sale_order(order_id)
|
||||
# print(f"\nOrden actualizada: {updated_order.text}")
|
||||
|
||||
Reference in New Issue
Block a user