forked from upyog/UPYOG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request upyog#31 from niua-org/niua-dev
Asset Report, Default City selection feature and Extra Sub Category added in the frontend
- Loading branch information
Showing
16 changed files
with
541 additions
and
86 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...cro-ui/web/micro-ui-internals/packages/libraries/src/hooks/asset/useAssetparentSubType.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { useQuery } from "react-query"; | ||
import { MdmsService } from "../../services/elements/MDMS"; | ||
|
||
const useAssetparentSubType = (tenantId, moduleCode, type, config = {}) => { | ||
const useAssetparentsubsub = () => { | ||
return useQuery("AST_PARENT_SUB_TYPE", () => MdmsService.AST_PARENT(tenantId, moduleCode ,type), config); | ||
}; | ||
|
||
|
||
switch (type) { | ||
case "assetSubCategory": | ||
return useAssetparentsubsub(); | ||
default: | ||
return null; | ||
} | ||
}; | ||
|
||
|
||
|
||
export default useAssetparentSubType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...nternals/packages/libraries/src/services/molecules/ASSET/ApplicationUpdateActionsASSET.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// import { ASSETService } from "../../elements/PTR"; | ||
import { ASSETService } from "../../elements/ASSET" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.