Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report names are mixed after API change to BIR 1.1 #100

Closed
krzyc opened this issue Mar 17, 2021 · 4 comments · Fixed by #101
Closed

Report names are mixed after API change to BIR 1.1 #100

krzyc opened this issue Mar 17, 2021 · 4 comments · Fixed by #101

Comments

@krzyc
Copy link
Contributor

krzyc commented Mar 17, 2021

After updating API to BIR 1.1 some report types are mixed in comparsion with BIR 1.0 based versions:

public const REPORT_LOCALS_PHYSIC_PUBLIC = 'BIR11OsFizycznaPkd';
public const REPORT_LOCAL_PHYSIC_PUBLIC = 'BIR11OsFizycznaListaJednLokalnych';
public const REPORT_ACTIVITY_PHYSIC_PUBLIC = 'BIR11JednLokalnaOsFizycznej';

It should look like this:

public const REPORT_LOCALS_PHYSIC_PUBLIC = 'BIR11OsFizycznaListaJednLokalnych';
public const REPORT_LOCAL_PHYSIC_PUBLIC = 'BIR11JednLokalnaOsFizycznej';
public const REPORT_ACTIVITY_PHYSIC_PUBLIC = 'BIR11OsFizycznaPkd';

In my opinion current report naming is not consistent and I will opt for a change in upcoming versions. We can keep current constants with deprecation mark and add a new set - my proposal is:

public const REPORT_PHYSIC = 'BIR11OsFizycznaDaneOgolne';
public const REPORT_PHYSIC_CEIDG = 'BIR11OsFizycznaDzialalnoscCeidg';
public const REPORT_PHYSIC_AGRO = 'BIR11OsFizycznaDzialalnoscRolnicza';
public const REPORT_PHYSIC_OTHER = 'BIR11OsFizycznaDzialalnoscPozostala';
public const REPORT_PHYSIC_DELETED_BEFORE_20141108 = 'BIR11OsFizycznaDzialalnoscSkreslonaDo20141108';
public const REPORT_PHYSIC_LOCALS = 'BIR11OsFizycznaListaJednLokalnych';
public const REPORT_PHYSIC_LOCAL = 'BIR11JednLokalnaOsFizycznej';
public const REPORT_PHYSIC_ACTIVITY = 'BIR11OsFizycznaPkd';
public const REPORT_PHYSIC_LOCAL_ACTIVITY = 'BIR11JednLokalnaOsFizycznejPkd';
public const REPORT_LAW = 'BIR11OsPrawna';
public const REPORT_LAW_ACTIVITY = 'BIR11OsPrawnaPkd';
public const REPORT_LAW_LOCALS = 'BIR11OsPrawnaListaJednLokalnych';
public const REPORT_LAW_LOCAL = 'BIR11JednLokalnaOsPrawnej';
public const REPORT_LAW_LOCAL_ACTIVITY = 'BIR11JednLokalnaOsPrawnejPkd';
public const REPORT_LAW_PARTNERS = 'BIR11OsPrawnaSpCywilnaWspolnicy';
public const REPORT_UNIT_TYPE = 'BIR11TypPodmiotu';

I can submit a PR for my proposal.

@johnzuk
Copy link
Owner

johnzuk commented Mar 17, 2021

Hi, feel free to add proper PR :) i will take a look on it later

@chilek
Copy link

chilek commented Mar 17, 2021

My 3 cents to discussion - "osoba prawna" translates to "legal person/entity" so IMO better use LEGAL than LAW ;-)
Bests!

@krzyc
Copy link
Contributor Author

krzyc commented Mar 17, 2021

PHYSIC is also strange. Maybe PERSON and ORGANIZATION are more correct.

@chilek
Copy link

chilek commented Mar 17, 2021

PHYSIC is also strange. Maybe PERSON and ORGANIZATION are more correct.

PERSON is much better, but maybe PRIVATE?

johnzuk added a commit that referenced this issue Apr 5, 2021
Fix and modify ReportTypes naming according to issue #100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants