Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Invoice Ninja
  3. Expense Categories not shown up - VITE_IS_TEST=true

Expense Categories not shown up - VITE_IS_TEST=true

Scheduled Pinned Locked Moved Invoice Ninja
2 Posts 1 Posters 610 Views 1 Watching
  • 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.
  • F Offline
    F Offline
    fanvyr
    wrote on last edited by
    #1

    Hey folks,

    since a few updates (sadly we don't know which), the ExpenseCategories are not fully loaded when adding a new Expense.
    Only one is beeing shown:

    one-category

    If you start typing, one match will be shown, but you have to know which all exist. Sadly not an option.

    After some research, we found the following:

    The network requests specifically asks for only ONE ExpenseCategory (per Page), as shown here:
    CleanShot 2024-10-25 at 16.58.31.png
    URL: /api/v1/expense_categories?status=active&per_page=1&sort=name%7Casc&filter=

    We found a GitHub Issue claiming to have the same issue.

    So, as you can see in the thread, they suggest the VITE_IS_TEST env is probably set to true, which can be verified by checking the Reports Page.

    If only 4 Products are present in the Dropdown, then the VITE_IS_TEST var is set to true (or equally NOT set to false).

    CleanShot 2024-10-25 at 17.02.14.png

    So, we went over to the Cloudron Dashboard, into the Terminal of the InvoiceNinja App and checked the .env files.

    First, the "Main" .env file (/app/data/env) seems to be the right place. But adding the VITE_IS_TEST=false does not change anything.

    In the GitHub Issue they say, we have to look for the .env file where also the VITE_API_URL var is present and should look like this example.

    The thing is, i do not find the right place. As all the VITE configuration is specifically for the React App, i cannot figure out how to set env-vars for it.

    I also tried to manually set a global var via the cloudron cli (cloudron env set VITE_IS_TEST=false --app <app-id> but with no success.

    So, a few questions:

    • Do you experience the same behaviour?
    • Is the frontend already built / bundled?
    • Where can we pass VITE_XX env vars to the UI / frontend?
    • What other impacts does the VITE_IS_TEST=true have on other features?

    Thank you so much for your help ❤

    1 Reply Last reply
    1
    • F Offline
      F Offline
      fanvyr
      wrote on last edited by
      #2

      Got resolved.
      https://github.com/invoiceninja/ui/issues/2151

      1 Reply Last reply
      1

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search