{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "### Fixed Asset" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Connecting engine server -> https://absbox.org/api/dev\n",
"\n"
],
"text/plain": [
"Connecting engine server -> \u001b[4;94mhttps://absbox.org/api/dev\u001b[0m\n"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/xiaoyu/repo/AbsBox/lib/python3.13/site-packages/urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host 'absbox.org'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings\n",
" warnings.warn(\n"
]
},
{
"data": {
"text/html": [
"✅Connected, local lib:0.46.5, server:0.50.1\n", "\n" ], "text/plain": [ "✅Connected, local li\u001b[1;92mb:0\u001b[0m.\u001b[1;36m46.5\u001b[0m, server:\u001b[1;36m0.50\u001b[0m.\u001b[1;36m1\u001b[0m\n" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from absbox import API,EnginePath\n", "\n", "localAPI = API(EnginePath.DEV, lang='english',check=False)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "fixedAsset = [\"FixedAsset\" ,{\"start\":\"2023-11-01\",\"originBalance\":100_0000,\"originTerm\":20\n", " ,\"residual\":10_0000,\"period\":\"Monthly\",\"amortize\":\"Straight\"\n", " ,\"capacity\":(\"Fixed\",24*25*120*30)}\n", " ,{\"remainTerm\":10,\"currentBalance\":50_0000}]" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/xiaoyu/repo/AbsBox/lib/python3.13/site-packages/urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host 'absbox.org'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings\n", " warnings.warn(\n" ] }, { "data": { "text/html": [ "
| \n", " | Balance | \n", "Depreciation | \n", "CumuDepreciation | \n", "Unit | \n", "Cash | \n", "
|---|---|---|---|---|---|
| Date | \n", "\n", " | \n", " | \n", " | \n", " | \n", " |
| 2024-10-01 | \n", "460000 | \n", "40000 | \n", "540000 | \n", "1728000 | \n", "691200000 | \n", "
| 2024-11-01 | \n", "420000 | \n", "40000 | \n", "580000 | \n", "1728000 | \n", "691200000 | \n", "
| 2024-12-01 | \n", "380000 | \n", "40000 | \n", "620000 | \n", "1728000 | \n", "691200000 | \n", "
| 2025-01-01 | \n", "340000 | \n", "40000 | \n", "660000 | \n", "1728000 | \n", "691200000 | \n", "
| 2025-02-01 | \n", "300000 | \n", "40000 | \n", "700000 | \n", "1728000 | \n", "691200000 | \n", "
| 2025-03-01 | \n", "260000 | \n", "40000 | \n", "740000 | \n", "1728000 | \n", "691200000 | \n", "
| 2025-04-01 | \n", "220000 | \n", "40000 | \n", "780000 | \n", "1728000 | \n", "691200000 | \n", "
| 2025-05-01 | \n", "180000 | \n", "40000 | \n", "820000 | \n", "1728000 | \n", "691200000 | \n", "
| 2025-06-01 | \n", "140000 | \n", "40000 | \n", "860000 | \n", "1728000 | \n", "691200000 | \n", "
| 2025-07-01 | \n", "100000 | \n", "40000 | \n", "900000 | \n", "1728000 | \n", "691200000 | \n", "