forked from seb_vallee/BillManager
Code cleanup
This commit is contained in:
@@ -10,7 +10,7 @@ from models import Facture, LigneFacture, Client, StatutFacture
|
||||
from numerotation import generer_numero_facture
|
||||
from config import settings
|
||||
from auth import get_current_user
|
||||
from template_helper import render, render_xml
|
||||
from template_helper import render
|
||||
from generate_facturx_jinja2 import Address, Party, Invoice, InvoiceLine, generate_facturx_xml
|
||||
|
||||
router = APIRouter(prefix="/factures", tags=["factures"], dependencies=[Depends(get_current_user)])
|
||||
@@ -161,7 +161,6 @@ from generate_facturx_jinja2 import Invoice, Party, Address, InvoiceLine, filte
|
||||
@router.get("/{facture_id}/facturx")
|
||||
def telecharger_facturx(request: Request, facture_id: int, db: Session = Depends(get_db)):
|
||||
facture = get_invoice_data(facture_id, db) # votre appel BDD
|
||||
|
||||
# facture = db.query(Facture).get(facture_id)
|
||||
if not facture:
|
||||
raise HTTPException(status_code=404)
|
||||
|
||||
Reference in New Issue
Block a user