Skip to content

Commit

Permalink
Merge pull request #14 from navariltd/fix26
Browse files Browse the repository at this point in the history
feat -creation of URL path function doctype to store the paths after making routs multi-doctype
  • Loading branch information
maniamartial authored Dec 5, 2024
2 parents 9bf3791 + 1170fd8 commit 7269960
Show file tree
Hide file tree
Showing 16 changed files with 320 additions and 263 deletions.
190 changes: 0 additions & 190 deletions kenya_compliance/fixtures/navari_etims_routes.json

This file was deleted.

162 changes: 162 additions & 0 deletions kenya_compliance/fixtures/navari_etims_url_path_function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
[
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:46:21.829990",
"name": "DeviceVerificationReq",
"url_path": "/selectInitOsdcInfo",
"url_path_function": "DeviceVerificationReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:49:22.867299",
"name": "CodeSearchReq",
"url_path": "/selectCodeList",
"url_path_function": "CodeSearchReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:49:36.125893",
"name": "CustSearchReq",
"url_path": "/selectCustomer",
"url_path_function": "CustSearchReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:49:48.368709",
"name": "NoticeSearchReq",
"url_path": "/selectNoticeList",
"url_path_function": "NoticeSearchReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:50:03.904688",
"name": "ItemClsSearchReq",
"url_path": "/selectItemClsList",
"url_path_function": "ItemClsSearchReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:50:21.602288",
"name": "ItemSaveReq",
"url_path": "/saveItem",
"url_path_function": "ItemSaveReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:51:01.653690",
"name": "ItemSearchReq",
"url_path": "/selectItemList",
"url_path_function": "ItemSearchReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:51:13.185851",
"name": "BhfSearchReq",
"url_path": "/selectBhfList",
"url_path_function": "BhfSearchReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:51:23.977923",
"name": "BhfCustSaveReq",
"url_path": "/saveBhfCustomer",
"url_path_function": "BhfCustSaveReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:51:36.958594",
"name": "BhfUserSaveReq",
"url_path": "/saveBhfUser",
"url_path_function": "BhfUserSaveReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:51:49.723380",
"name": "BhfInsuranceSaveReq",
"url_path": "/saveBhfInsurance",
"url_path_function": "BhfInsuranceSaveReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:52:00.719580",
"name": "ImportItemSearchReq",
"url_path": "/selectImportItemList",
"url_path_function": "ImportItemSearchReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:52:12.267777",
"name": "ImportItemUpdateReq",
"url_path": "/updateImportItem",
"url_path_function": "ImportItemUpdateReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:52:34.780316",
"name": "TrnsSalesSaveWrReq",
"url_path": "/saveTrnsSalesOsdc",
"url_path_function": "TrnsSalesSaveWrReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:52:46.325200",
"name": "TrnsPurchaseSalesReq",
"url_path": "/selectTrnsPurchaseSalesList",
"url_path_function": "TrnsPurchaseSalesReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:52:56.554122",
"name": "TrnsPurchaseSaveReq",
"url_path": "/insertTrnsPurchase",
"url_path_function": "TrnsPurchaseSaveReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:53:09.270096",
"name": "StockMoveReq",
"url_path": "/selectStockMoveList",
"url_path_function": "StockMoveReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:53:24.433209",
"name": "StockIOSaveReq",
"url_path": "/insertStockIO",
"url_path_function": "StockIOSaveReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:53:37.551105",
"name": "StockMasterSaveReq",
"url_path": "/saveStockMaster",
"url_path_function": "StockMasterSaveReq"
},
{
"docstatus": 0,
"doctype": "Navari Etims URL Path Function",
"modified": "2024-12-05 11:53:48.476051",
"name": "SaveItemComposition",
"url_path": "/saveItemComposition",
"url_path_function": "SaveItemComposition"
}
]
2 changes: 2 additions & 0 deletions kenya_compliance/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
TRANSACTION_PROGRESS_DOCTYPE_NAME,
TRANSACTION_TYPE_DOCTYPE_NAME,
UNIT_OF_QUANTITY_DOCTYPE_NAME,
ROUTES_URL_FUNCTION_DOCTYPE_NAME
)

app_name = "kenya_compliance"
Expand Down Expand Up @@ -58,6 +59,7 @@
{"dt": UNIT_OF_QUANTITY_DOCTYPE_NAME},
{"dt": IMPORTED_ITEMS_STATUS_DOCTYPE_NAME},
{"dt": ROUTES_TABLE_DOCTYPE_NAME},
{"dt": ROUTES_URL_FUNCTION_DOCTYPE_NAME},
{"dt": COUNTRIES_DOCTYPE_NAME},
{"dt": ITEM_CLASSIFICATIONS_DOCTYPE_NAME},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Doctypes
SETTINGS_DOCTYPE_NAME: Final[str] = "Navari KRA eTims Settings"
ROUTES_TABLE_DOCTYPE_NAME: Final[str] = "Navari eTims Routes"
ROUTES_TABLE_DOCTYPE_NAME: Final[str] = "Navari eTims Route"
ROUTES_TABLE_CHILD_DOCTYPE_NAME: Final[str] = "Navari KRA eTims Route Table Item"
ITEM_CLASSIFICATIONS_DOCTYPE_NAME: Final[str] = "Navari KRA eTims Item Classification"
TAXATION_TYPE_DOCTYPE_NAME: Final[str] = "Navari KRA eTims Taxation Type"
Expand Down Expand Up @@ -38,6 +38,8 @@
"Navari eTims Registered Imported Item"
)

ROUTES_URL_FUNCTION_DOCTYPE_NAME: Final[str] = ("Navari Etims URL Path Function")

# Global Variables
SANDBOX_SERVER_URL: Final[str] = "https://etims-api-sbx.kra.go.ke/etims-api"
PRODUCTION_SERVER_URL: Final[str] = "https://etims-api.kra.go.ke/etims-api"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2024, Navari Ltd and contributors
// For license information, please see license.txt

// frappe.ui.form.on("Navari eTims Routes", {
// frappe.ui.form.on("Navari eTims Route", {
// refresh(frm) {

// },
Expand Down
Loading

0 comments on commit 7269960

Please sign in to comment.