Financial Status Report

Ready for Sale


Contract Purpose

Financial statements (or financial report) is a formal record of the financial activities and position of a business, person, or other entity. Relevant financial information is presented in a structured manner and in a form easy to understand. They typically include basic financial statements structured by categories, subcategories and items, along with relative value. The contract owner can customize the content

Customizable Variables

uint256 categoriesCounter
uint256 subCategoriesCounter
uint256 itemsCounter

categories is a map of categoryId->categories text
subCategories is a map of subCategoryId->subCategories text
items is a map of itemId->item text
categoriesToSubcategoriesMap is a map that links the subcategories to the relative category by categoryId->subCategoryId
subCategoriesToItemsMap is a map that links the items to the relative subcategory by subCategoryId->itemId
itemValue is a map that links the value to the relative item
address public owner stores the contract owner address

Exposed Methods

  1. addCategory used to add a new category in the map Parameters:

    • string _category
  2. addSubCategory used to add a new subcategory

    • uint256 _categoryId
    • string _subCategory
  3. addItem used to add a new item

    • uint256 _subCategoryId
    • string _item
  4. getCategory

    • uint256 _categoryId
  5. getSubCategory

    • uint256 _subCategoryId
  6. getItem Parameters:

    • uint256 _itemId
  7. setItemAmount set amount for the supplied itemId Parameters:

    • uint256 _itemId
    • uint256 _value
  8. getItemAmount gets the item amount Parameters:

    • uint256 _itemId
  9. getCategoriesCounter returns categories counter

  10. getSubCategoriesCounter returns subCategories counter

  11. getItemCounter returns items counter


  1. addCategory("category 1")";
  2. addSubCategory(1,"subcategory 1");
  3. addItem(1,"item 1");
  4. setItemAmount(1,1000);
Reviewed by Modex
Buy Contract

Create an account or login to purchase this smart contract