feature/catalog-importation

This commit is contained in:
2026-03-18 08:28:20 -06:00
parent 3e6cc07003
commit d37d6ef699
8 changed files with 271 additions and 22 deletions

View File

@@ -78,7 +78,7 @@ async def delete_incoterm(
db: Session = Depends(get_core_db),
current_user: dict = Depends(has_role("admin")),
):
obj = db.query(Incoterm).filter(Incoterm.key == key).first()
obj = db.query(Incoterm).filter(Incoterm.code == key).first()
if not obj:
raise HTTPException(status_code=404, detail="Not found")
db.delete(obj)