Skip to content

CLI and npm library for automating passive income tax filings in Serbia

License

Notifications You must be signed in to change notification settings

SergeiPatiakin/dobkap

Repository files navigation

Dobkap is a tool for automating PP-OPO dividend tax filings in Serbia. It can import dividend payout data from an InteractiveBrokers activity statement and produce PP-OPO forms in ePorezi XML format. Screen Shot 2020-08-03 at 21 18 54

Features

  • Supports Withholding Tax deductions
  • Supports multiple trading currencies. Historic exchange rates are pulled from Serbia NBS, Singapore MAS and Mexico BDM.

Installation

npm i -g dobkap

Configuration

  • Dobkap must be configured using a configuration file
  • Dobkap will search the following paths for the configuration file:
    • The path given in the -c parameter
    • ./dobkap.conf
    • ~/dobkap.conf
  • Here is an example configuration file:
{
  "jmbg": "1234567890123",
  "fullName": "Jован Jовановић",
  "streetAddress": "Terazije 1/1",
  "opstinaCode": "016",
  "phoneNumber": "0611111111",
  "email": "[email protected]",
  "realizationMethod": "Isplata na brokerski racun",
  "holidays": [
    "2020-01-01",
    "2020-01-01",
    "2020-01-07",
    "2020-02-15",
    "2020-02-16",
    "2020-02-17",
    "2020-04-17",
    "2020-04-18",
    "2020-04-19",
    "2020-04-20",
    "2020-05-01",
    "2020-05-02",
    "2020-11-11"
  ],
  "holidayRangeStart": "2020-01-01",
  "holidayRangeEnd": "2020-12-31",
  "mexicoBdmToken": "123456783a43236a9ec55317c175095617fb723e4982c315efd7090922f329be"
}

Usage

Import an InteractiveBrokers activity statement from U1234567_20200714.csv and write the PP-OPO XML to the current directory

dobkap import -i U1234567_20200714.csv -m ibkr

Import an InteractiveBrokers activity statement from U1234567_20200714.csv and write the PP-OPO XML to the /some/path directory

dobkap import -i U1234567_20200714.csv -o /some/path -m ibkr

About

CLI and npm library for automating passive income tax filings in Serbia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published