Giter Site home page Giter Site logo

taxformgenerator's Introduction

taxformgenerator

Console app for generating Croatian tax forms. You can pull code and build it or you can get OSX PREBUILT VERSION HERE or WIN10 PREBUILT VERSION HERE

REQUIREMENTS:

  • For OSx:

    • macos release >= 10.12
    • dotnet-sdk

    If you don't have dotnet-sdk installed:

    1. Execute: "brew cask install dotnet-sdk"
    2. Quit and reopen terminal. Execute "dotnet --info" to see if installation was successfull. If not execute "ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/" and do "dotnet --info" again.

BUILD APP (skip if you are using prebuilt version):

  • OSx: Execute "dotnet publish -c Release -r osx.10.11-x64"
  • Windows: Execute "dotnet publish -c release -r win10-x64"

USAGE:

  • Navigate to "TaxFormGenerator/bin/Release/netcoreapp2.0/osx.10.11-x64/publish" or to you app folder if you have prebuilt version
  • Modify following config files with your params:
    • "SalaryCalculator/SalaryConfig.json"
    • "FormGenerator/SalaryJOPPD/ContributionsJOPPDTemplate.xml"
    • "FormGenerator/SalaryJOPPD/TaxAndSurtaxJOPPDTemplate.xml"
    • "FormGenerator/SalaryJOPPD/PensionPillar1PaymentConfig.json"
    • "FormGenerator/SalaryJOPPD/PensionPillar2PaymentConfig.json"
    • "FormGenerator/SalaryJOPPD/TaxAndSurtaxPaymentConfig.json"
    • "FormGenerator/DividendJOPPD/DividendJOPPDTemplate.xml"
    • "FormGenerator/DividendJOPPD/PaymentConfig.json"
  • Run "dotnet TaxFormGenerator.dll {PARAMS}"
  • XML forms and payments.pdf (with barcodes for payments) will be generated in "Output" folder

PARAMS:

  1. FormType - type of the form - possible values:
    • SalaryJOPPD
    • DividendJOPPD - default value: SalaryJOPPD
  2. Date - data when form was generated - default value: now - format depends on your computer settings
  3. Amount - payment amount - default value: 830
  4. Currency - payment currency - default value: "EUR"
  5. SalaryMonth - month of the salary for which form is generated - default value: month before the Date param - format: MM/YYYY
  6. StartDate - start date of the period for which dividend is being paid - default value: 1st January of the year specified with Date param - format depends on your computer settings
  7. EndDate - end date of the period for which dividend is being paid - default value: 31st December of the year specified with Date param - format depends on your computer settings

EXAMPLE:

  1. salary JOPPD:
    dotnet ./TaxFormGenerator.dll --date 12/19/2017 --salaryMonth 11/2017
  2. dividend JOPPD:
    dotnet ./TaxFormGenerator.dll --formType DividendJOPPD --date 12/20/2017 --amount 5000

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.