• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Adding collums to inventory table-see these in inventory report

    Scheduled Pinned Locked Moved
    General
    2
    3
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PdeMatos
      last edited by

      Hello, I just do a clean install of fog 1.2 and everything is running. Now i just create 4 adicional collums in inventory table and i want them to appear in the inventory report.
      I’am a php beginner and i do not know what files do i have to change?
      In version 0.32 it was more simple to me but now i dont know what to do.

      Can anyone help?

      1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer
        last edited by

        the files you would need to edit are
        <fog-web-root>/lib/fog/Inventory.class.php and
        <fog-web-root>/lib/pages/ReportManagementPage.class.php
        or create a new report generator at
        <fog-web-root>/management/reports/<your-report-name>.php
        putting your report here should prevent it from being overwritten by new versions of fog, but you will probably still need to re-edit the Inventory.class.php file after an update

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 0
        • P
          PdeMatos
          last edited by

          Thanks Junkhacker for the fast reply.
          just figure it out. The report didn’t work because of one letter in the inventory.class.php. I’ts case sensitive (common mistake i think). All working now.
          Congratulations to all devellopers in FOG for the great job!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          197

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project