Coder Social home page Coder Social logo

invoiceplane's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on making more tools work on my pi collection
  • ๐ŸŒฑ Iโ€™m currently learning how to python
  • ๐Ÿ“ซ How to reach me:
  • โšก Fun fact: cron wont run unless its a. installed and b. running
  • Like what I do? by me a coffee

Anurag's github stats

invoiceplane's People

Contributors

dependabot[bot] avatar jake-walker avatar mhzawadi avatar powellcn avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

invoiceplane's Issues

ERROR: no matching manifest for linux/arm/v7 in the manifest list entries

  • I'm submitting a ...
    • bug report

Hey, i'm trying to install invoiceplan to the RPi 4, i'm not an expert but I don't really know where I misunderstand your Readme

  • What is the current behavior?
    I'm getting this error "ERROR: no matching manifest for linux/arm/v7 in the manifest list entries"

  • What is the expected behavior?
    Docker compose up would install the containers

I want to backdate a new/draft invoice

This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a

    • bug report
    • feature request
  • ** please explain your feature or bug report**

When i have a draft invoice with an invoice date X and send out an email tot he client, the invoice us changed to invoice date Y (Y being today).

  • What is the motivation / use case for changing the behavior?

I create invoices on one date and have them confirmed by staff. However, I want invoices to be dated at the last day of the month, even if I only manage to send them out 2 days later.

Unable to Access Invoiceplane using the provided .yml file.

This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...

    • bug report
    • feature request
  • ** please explain your feature or bug report**

On windows 10, using the docker desktop app:
I downloaded this
curl https://github.com/mhzawadi/invoiceplane/blob/master/docker-compose.yml

and did:

docker-compose up -d

I can see traefik's dashboard, but cannot access invoiceplane anywhere.
I'm still new to docker, so perhaps I'm just missing something.

image

Invalid Dockerfile

The sed doesn't set the variables properly. ipconfig.php isn't being evaluated by PHP so getenv() is just a string instead of a function invocation. This makes docker put invalid values there.

Only payment processor appears to be Stripe. Would like other options like PayPal.

  • I'm submitting a ...

    • [*] bug report
  • ** please explain your feature or bug report**
    Only seeing Stripe Payment Processing. Would like to see others. Not sure how.

  • What is the current behavior?
    Only seeing Stripe Payment Processing. Would like to see others. Not sure how.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
    https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

  • What is the expected behavior?

  • What is the motivation / use case for changing the behavior?
    more payment options being available

  • Please tell us about your environment:
    I'm using this: https://github.com/mhzawadi/invoiceplane/blob/master/stack-invoiceplane.yml

[Request] tagged docker image v1.6.x

Hi Matthew,

thank you very much for building docker images for InvoicePlane.
I just checked out your DockerHub repo for InvoicePlane and noticed, that you do not push tagged versions of InvoicePlane v1.6.
Is there any chance you can add these versions aswell?
I guess for people that want to stay at 1.6 this would be very valuable.

Also I would be keen to know if you could build the Image for some more archs.
You can try to replace your platform parameter with this:

Alpine 3.15:

linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/386,linux/arm64,linux/arm/v8,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x

Alpine 3.19:

linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/386,linux/arm64,linux/arm/v8,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x,linux/riscv64

Note, that alpine 3.19 is not released yet, and you might not be able to have all dependencies shipped there by default. But it will add the arch riscv64.

Thanks in advance!

v1.6.0 PDF genaration not working

  • I'm submitting a ...
    • bug report
    • feature request

I just tested the version 1.6.0. Even with debug enabled, I can not see any root cause for the problem, but once I have seen anything in the log that pointed to a missing PHP-Extension/library.

image

Would be awesome if you could test it against this error.

Thanks for your great work! :)

Undefined function results in error during setup

This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...

    • bug report
    • feature request
  • ** please explain your feature or bug report**
    When going through the setup process I get an error when clicking continue on the screen to create the user.

  • What is the current behavior?
    An error is thrown.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
    https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

Error in the browser:
An uncaught Exception was encountered

Type: Error

Message: Call to undefined function Symfony\Polyfill\Mbstring\iconv_strlen()

Filename: /var/www/html/vendor/symfony/polyfill-mbstring/Mbstring.php

Line Number: 484

Backtrace:

File: /var/www/html/vendor/symfony/polyfill-mbstring/bootstrap.php
Line: 35
Function: mb_strlen

File: /var/www/html/application/libraries/MY_Form_validation.php
Line: 36
Function: run

File: /var/www/html/application/core/MY_Model.php
Line: 455
Function: run

File: /var/www/html/application/modules/setup/controllers/Setup.php
Line: 388
Function: run_validation

File: /var/www/html/index.php
Line: 325
Function: require_once

Line in the log:
10.1.15.8 - - [29/Sep/2023:09:23:54 +0000] "GET /favicon.ico HTTP/1.1" 499 0 "http://192.168.100.11:7003/index.php/setup/create_user" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0" "-"

  • What is the expected behavior?

To continue in the registration process

  • What is the motivation / use case for changing the behavior?

App is unable to function like this.

  • Please tell us about your environment:

    • Version: latest tag on docker hub.
    • Browser: [all]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Make the whole config dockerized

  • I'm submitting a ...
    • bug report
    • feature request

I am talking about the sed commands here: https://github.com/mhzawadi/invoiceplane/blob/master/setup/start.sh

There are two things here to do:

  1. add all normal config parts (ENABLE_DEBUG, REMOVE_INDEXPHP, SESS_EXPIRATION, SESS_MATCH_IP, ENABLE_INVOICE_DELETION, DISABLE_READ_ONLY)
  2. also add the critical 3 lower ones. (ENCRYPTION_KEY, ENCRYPTION_CIPHER, SETUP_COMPLETED)

I am very well aware, that the lower part of the config states: "DO NOT EDIT"

But this was not written there with docker in the back of the mind.

Also the later 3 shall JUST be replaced if env var SETUP_COMPLETED is true. If it is not true, they shall not be replaced anyway.

The SED script also shall be adjusted, so it does not replace lines when the ENV-Var is not set.

I thought of something like this:

if [ ! -f "/var/www/html/ipconfig.php" ]; then

    /var/www/html/ipconfig.php.example > /var/www/html/ipconfig.php

else

    [ -n "$IP_URL" ] && sed -i 's/IP_URL=/IP_URL=${IP_URL}/' /var/www/html/ipconfig.php
    [ -n "$ENABLE_DEBUG" ] && sed -i 's/ENABLE_DEBUG=/ENABLE_DEBUG=${ENABLE_DEBUG}/' /var/www/html/ipconfig.php
    [ -n "$DISABLE_SETUP" ] && sed -i 's/DISABLE_SETUP=/DISABLE_SETUP=${DISABLE_SETUP}/' /var/www/html/ipconfig.php
    [ -n "$REMOVE_INDEXPHP" ] && sed -i 's/REMOVE_INDEXPHP=/REMOVE_INDEXPHP=${REMOVE_INDEXPHP}/' /var/www/html/ipconfig.php

    [ -n "$DB_HOSTNAME" ] && sed -i 's/DB_HOSTNAME=/DB_HOSTNAME=${MYSQL_HOST}/' /var/www/html/ipconfig.php
    [ -n "$DB_USERNAME" ] && sed -i 's/DB_USERNAME=/DB_USERNAME=${DB_USERNAME}/' /var/www/html/ipconfig.php
    [ -n "$DB_PASSWORD" ] && sed -i 's/DB_PASSWORD=/DB_PASSWORD=${DB_PASSWORD}/' /var/www/html/ipconfig.php
    [ -n "$DB_DATABASE" ] && sed -i 's/DB_DATABASE=/DB_DATABASE=${DB_DATABASE}/' /var/www/html/ipconfig.php
    [ -n "$DB_PORT" ] && sed -i 's/DB_PORT=/DB_PORT=${DB_PORT}/' /var/www/html/ipconfig.php

    [ -n "$SESS_EXPIRATION" ] && sed -i 's/SESS_EXPIRATION=/SESS_EXPIRATION=${SESS_EXPIRATION}/' /var/www/html/ipconfig.php
    [ -n "$SESS_MATCH_IP" ] && sed -i 's/SESS_MATCH_IP=/SESS_MATCH_IP=${SESS_MATCH_IP}/' /var/www/html/ipconfig.php
    [ -n "$ENABLE_INVOICE_DELETION" ] && sed -i 's/ENABLE_INVOICE_DELETION=/ENABLE_INVOICE_DELETION=${ENABLE_INVOICE_DELETION}/' /var/www/html/ipconfig.php
    [ -n "$DISABLE_READ_ONLY" ] && sed -i 's/DISABLE_READ_ONLY=/DISABLE_READ_ONLY=${DISABLE_READ_ONLY}/' /var/www/html/ipconfig.php

    ### CRITICAL
    if [ -n "$SETUP_COMPLETED" ]; then
        [ -n "$ENCRYPTION_KEY" ] && sed -i 's/ENCRYPTION_KEY=/ENCRYPTION_KEY=${ENCRYPTION_KEY}/' /var/www/html/ipconfig.php
        [ -n "$ENCRYPTION_CIPHER" ] && sed -i 's/ENCRYPTION_CIPHER=/ENCRYPTION_CIPHER=${ENCRYPTION_CIPHER}/' /var/www/html/ipconfig.php
        sed -i 's/SETUP_COMPLETED=/SETUP_COMPLETED=${SETUP_COMPLETED}/' /var/www/html/ipconfig.php
    fi
fi

What are the benefits of this?

  1. fully configurable
  2. even the encryption key can be set (now ipconfig.php does not have to be peristent anymore)

How to use this?

  1. set ALL Variables BUT SETUP_COMPLETED
  2. complete the setup
  3. read the ipconfig.php file and also set ENCRYPTION_KEY & ENCRYPTION_CIPHER in the docker-compose.yml
  4. recreate container
  5. Use container.

With this approach the admin has full control over InvoicePlane.

Keep in mind, this snippet was not tested by my. But should be alright.

container wont start

nginx: [emerg] directive "set" is not terminated by ";" in /etc/nginx/conf.d/default.conf:17
2021/06/24 20:12:25 [emerg] 1#1: directive "set" is not terminated by ";" in /etc/nginx/conf.d/default.conf:17

Looked at your configs in the repo and it indeed is missing a terminating ;

v1.6.0 php dom missing?

  • I'm submitting a ...

    • [ x] bug report
    • feature request
  • ** please explain your feature or bug report**

php dom is missing

  • What is the current behavior?
    when sending an invoice which include zugferd xml the error 'class 'DOMDocument' not found' pops up

  • What is the expected behavior?
    mail being sent without error

    • Version: 1.6.0
    • Browser: all
    • Language: all

thx for the image , great work

404 page not found

Hey,

i tried your docker-compose file but the only thing i get is 404 error no matter what page i go to (/, /index.php, index.php/setup).
Do you have any advice?

Logs say 307:

invoiceplane_1 | 127.0.0.1 - - [13/Feb/2022:10:34:35 +0000] "GET /index.php HTTP/1.1" 307 5 "-" "curl/7.79.1" "-"

Thanks

Container healthcheck

This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...

    • bug report
    • feature request
  • ** please explain your feature or bug report**

I would like a HealthCheck to make sure the container is working

  • What is the current behavior?

Once the container has started docker then just makes sure it running

If the web service stops working, docker should make the container as unhealthy

  • What is the motivation / use case for changing the behavior?
    To see if the web service is working

  • Please tell us about your environment:

    • Version: 2.0.0-beta.X
    • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    • Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

https://docs.docker.com/engine/reference/builder/#healthcheck

Change default port 80

Hello,

I can't change default port (80) when i config (Run or docker-compose). I"ve tested other version of docker (And other tag in your build) but same result. When i change port, i'm redirected to https://127.0.0.1/welcome. I've test on other computer and same result. Have you a solution ?

Thx

V. latest / 1.6.0

  • I'm submitting a ...
    • bug report
    • feature request

I was trying to initialize the invoiceplane docker as a compose. After the language selection I get the following error. Can you help me out with that?

I tryed it with the latest and the v1.6.0

image

For better understanding is hear a part of my compose file too:

  invoiceplane:
    container_name: invoiceplane
    image: mhzawadi/invoiceplane:latest
    volumes:
      - /var/docker/config/invoiceplane/app:/var/www/html/uploads
    environment:
      - TZ=Europe/Berlin
      - MYSQL_HOST=mariadb_10_4
      - MYSQL_USER=InvoicePlane
      - MYSQL_PASSWORD=changeme
      - MYSQL_DB=InvoicePlane
      - IP_URL=http://invoiceplane.domain.de
      - DISABLE_SETUP=false
    restart: unless-stopped
    depends_on:
      - postgres

  mariadb_10_4:
    container_name: ip_mariadb
    # MySQL 5.7
    image: mariadb:10.4.10
    volumes:
      - /var/docker/config/invoiceplane/mariadb:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=changeme
      - MYSQL_DATABASE=invoiceplane
      - MYSQL_USER=invoiceplane
      - MYSQL_PASSWORD=changeme
    restart: unless-stopped

I was the guy who published the bug with the broken PDF generator.
#31

I was trying to complete re initialize the the docker compose on a clean system and got this new bug.

thanks in advance.

Can't submit setup page

This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...

    • bug report
    • feature request
  • ** please explain your feature or bug report**
    I've deployed your docker image by using docker compose successfully. The database is hosted externally, so it creates the tables without any problems. I can get in to configuration view. After entering username and password I get following error on submit:
    image

  • Please tell us about your environment:

    • Version: image: mhzawadi/invoiceplane:latest

nginx rework webserver misconfigured

First of all, great job for the rework with nginx!

I upgraded your docker image to the latest version, but it does not work out of the box.

The problem is, that nginx has a default.conf (directory /etc/nginx/conf.d/), which always return a 404 error on every request. Nginx will never use your nginx_site.conf.

By simply removing the file, /etc/nginx/conf.d/default.conf your image works as expected.

MariaDB won't connect (Synology NAS; Docker via SSH)

This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...

    • bug report
    • feature request
  • please explain your feature or bug report

Set up the image according to the instructions. Invoicemail cannot connect to the database even though the port is enabled (manually).

  • What is the current behavior?

Invoicemail cannot connect to the database even though the port is enabled (manually).

Follow the instructions as shown
customize the web port from 80 to something else cuz DSM use it for the reverse proxy

  • What is the expected behavior?

Setup Invoicemail - and finish the simple db setup

  • What is the motivation / use case for changing the behavior?

Propably using a NAS with Docker :P

  • Please tell us about your environment:

PC: Fedora 35
NAS:
SSH System Info: Linux t 4.4.180+ #42218 SMP Mon Oct 18 19:17:56 CST 2021 x86_64 GNU/Linux synology_apollolake_218+
OS: DSM 7.0.1-42218 Update 2

Latest Docker Image
Browser: [ Firefox 98.0 64Bit]

DB_ Environment Variables not populated

This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...

    • bug report
    • feature request
  • ** please explain your feature or bug report**

setup/start.sh not populating DB_ ENV variables.

  • What is the current behavior?

MYSQL_* variables are supposed to populate the DB_ via the setup/start.sh script. However the DB_ variables are not populated.

DB_* variables should be populated.

  • What is the motivation / use case for changing the behavior?

The DB settings in Setup were not populated.
After setting the DB_ variables in compose the DB settings were filled in.

  • Please tell us about your environment:

Docker
This is for image 1.6.1.1

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.