Skip to content

jkobejs/taxformgenerator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Console app for generating tax forms

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%