Debit Note add in database
This commit is contained in:
@@ -298,7 +298,9 @@ def save_data():
|
|||||||
else:
|
else:
|
||||||
print("Hold columns data is not a valid list of dictionaries.")
|
print("Hold columns data is not a valid list of dictionaries.")
|
||||||
#-----------------------------------Credit Note----------------------------------------------------------------
|
#-----------------------------------Credit Note----------------------------------------------------------------
|
||||||
elif any(keyword in Invoice_Details.lower() for keyword in ['credit', 'logging report']):
|
# elif any(keyword in Invoice_Details.lower() for keyword in ['credit', 'logging report']):
|
||||||
|
elif any(keyword in Invoice_Details.lower() for keyword in ['credit','debit', 'logging report']):
|
||||||
|
|
||||||
cursor.callproc(
|
cursor.callproc(
|
||||||
'AddCreditNoteFromExcel',
|
'AddCreditNoteFromExcel',
|
||||||
[
|
[
|
||||||
|
|||||||
3
main.py
3
main.py
@@ -1,6 +1,6 @@
|
|||||||
# main.py
|
# main.py
|
||||||
from flask import Flask, render_template
|
from flask import Flask, render_template
|
||||||
from flask_login import LoginManager
|
from flask_login import LoginManager, login_required
|
||||||
from model.Auth import User
|
from model.Auth import User
|
||||||
|
|
||||||
# Import Blueprints / Controllers
|
# Import Blueprints / Controllers
|
||||||
@@ -40,6 +40,7 @@ def load_user(user_id):
|
|||||||
|
|
||||||
# ---------------- Home Route ----------------
|
# ---------------- Home Route ----------------
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
@login_required
|
||||||
def index():
|
def index():
|
||||||
return render_template("index.html")
|
return render_template("index.html")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user