コード例 #1
0
def view_journal_entry(entrycode):
    data = AccountingAPI.GetCategories()
    jrns = AccountingAPI.GetJournals()
    data1, data2, data3 = AccountingAPI.GrabJournalEntry(entrycode)
    FCurr = AccountingAPI.GetFuntionalCurrency()
    if request.method == 'POST':
        return redirect(url_for('accounting.journal'))
    return render_template('accounting/view-journal-entry.html', username = session['username'], role = session['role'], data = data,  jrns = jrns, data1 = data1, data2 = data2, data3 = data3, FC = FCurr)
コード例 #2
0
def GranJournalEntry(entrycode):
    data = AccountingAPI.GrabJournalEntry(entrycode)
    return jsonify([{'Account-type': d[0], 'Account-Category': d[1], 'Account-Name': d[2], 'Currency':d[3], 'Debit': d[4], 'Credit':d[5], 'Comments':d[6]} for d in data])