feat(pos): register invoicing + accounting blueprints
This commit is contained in:
14
pos/app.py
14
pos/app.py
@@ -25,6 +25,12 @@ def create_app():
|
|||||||
from blueprints.cashregister_bp import cashregister_bp
|
from blueprints.cashregister_bp import cashregister_bp
|
||||||
app.register_blueprint(cashregister_bp)
|
app.register_blueprint(cashregister_bp)
|
||||||
|
|
||||||
|
from blueprints.invoicing_bp import invoicing_bp
|
||||||
|
app.register_blueprint(invoicing_bp)
|
||||||
|
|
||||||
|
from blueprints.accounting_bp import accounting_bp
|
||||||
|
app.register_blueprint(accounting_bp)
|
||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
@app.route('/pos/health')
|
@app.route('/pos/health')
|
||||||
def health():
|
def health():
|
||||||
@@ -52,6 +58,14 @@ def create_app():
|
|||||||
def pos_customers():
|
def pos_customers():
|
||||||
return render_template('customers.html')
|
return render_template('customers.html')
|
||||||
|
|
||||||
|
@app.route('/pos/invoicing')
|
||||||
|
def pos_invoicing():
|
||||||
|
return render_template('invoicing.html')
|
||||||
|
|
||||||
|
@app.route('/pos/accounting')
|
||||||
|
def pos_accounting():
|
||||||
|
return render_template('accounting.html')
|
||||||
|
|
||||||
@app.route('/pos/static/<path:filename>')
|
@app.route('/pos/static/<path:filename>')
|
||||||
def pos_static(filename):
|
def pos_static(filename):
|
||||||
return send_from_directory('static', filename)
|
return send_from_directory('static', filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user