add fiscal_year, drop due_to

This commit is contained in:
2022-01-21 20:46:28 +01:00
parent 0e4fd12238
commit ab365c65a1
6 changed files with 14 additions and 15 deletions

View File

@ -1365,7 +1365,7 @@ SELECT
,description
,account
,created_at
,due_at
,fiscal_year
,amount
,document_no
,account_entry_category
@ -1383,7 +1383,7 @@ def insert_account_entry(user, token_info, **args):
v_description = body["description"]
v_account = body["account"]
v_created_at = body["created_at"]
v_due_at = body["due_at"]
v_fiscal_year = body["fiscal_year"]
v_amount = body["amount"]
v_document_no = body["document_no"]
v_account_entry_category = body["account_entry_category"]
@ -1394,7 +1394,7 @@ INSERT INTO account_entry_t
description
,account
,created_at
,due_at
,fiscal_year
,amount
,document_no
,account_entry_category
@ -1413,7 +1413,7 @@ INSERT INTO account_entry_t
v_description
,v_account
,v_created_at
,v_due_at
,v_fiscal_year
,v_amount
,v_document_no
,v_account_entry_category
@ -1432,7 +1432,7 @@ SELECT
,description
,account
,created_at
,due_at
,fiscal_year
,amount
,document_no
,account_entry_category
@ -1453,7 +1453,7 @@ SELECT
,description
,account
,created_at
,due_at
,fiscal_year
,amount
,document_no
,account_entry_category
@ -1474,7 +1474,7 @@ SELECT
,description
,account
,created_at
,due_at
,fiscal_year
,amount
,document_no
,account_entry_category

View File

@ -1793,9 +1793,8 @@ components:
type: integer
created_at:
type: string
due_at:
type: string
nullable: true
fiscal_year:
type: integer
amount:
type: number
document_no:

View File

@ -5,6 +5,6 @@ from flask_cors import CORS
logging.basicConfig(level=logging.DEBUG)
app = connexion.App('hv2-api')
app.add_api('./openapi.yaml')
app.add_api('./openapi.yaml', options = {"swagger_ui": True})
CORS(app.app)
app.run(port=8080)