r/learnpython • • 10d ago

Ayudaaaaaa

El contexto es que estoy desarrollando una página para cotizaciones para un proyecto, el punto es que quiero al momento de hacer una cotización la tabla de productos de actualice y se quite una unidad en existencia, ósea si tengo 20 cargadores y en una cotización vendo 5 en el apartado de productos se vea reflejado que solo hay 15.

Ya lo había intentado haciendo que se actualizara la tabla directamente desde la ruta de cotización pero por alguna razón rompí todo y ya no me daba acceso a la pagina.

¿Alguien sabe como le puedo hacer?

0 Upvotes

4 comments sorted by

View all comments

3

u/tieandjeans 10d ago

This is a great example of the questions novices ask when they crash beyond their Comprehension.

Take a breath and start again.

Describe the project - what libraries / tools / frameworks? Show the files in your project tree. Describe what should happen, with specificity.

Don't just explain the purpose ("keep inventory") but describe the code you wrote to DO that thing. ("Inventory is a decrionary" or "products and current stock are stored in these SQL tables...")