feat(company-lookup): add NIP company lookup (GUS, MF, CEIDG, OpenBRIS) - #18
Closed
hedon77 wants to merge 25 commits into
Closed
feat(company-lookup): add NIP company lookup (GUS, MF, CEIDG, OpenBRIS)#18hedon77 wants to merge 25 commits into
hedon77 wants to merge 25 commits into
Conversation
…lient view + PDF)
- drop the level (Tax 1/Tax 2) column, add is_default to tax_rules - match tax rules on country/state with the default rule as fallback - seed Polish VAT rates (23%, 8%, 5%, 0%, ZW, NP) with 23% as default - add 'set as default' action and default column to the tax screen - single tax rate per invoice; secondary tax (tax2) no longer calculated
- tax rules are grouped by country and state; each group holds any number of rates (name + %) with one marked as default - list shows country, state and the group's default rate; add/edit manage a group's rates in one form - matching: country+state -> country default -> global default -> 0 - seed standard VAT rates for all European countries and Turkey
- invoice builder offers the client's country rates as a dropdown, defaulting to the country's default rate - persist the rate label on invoice items so invoices and the PDF show the descriptive name (VAT 23%, VAT ZW, VAT NP) with tax amount and net base - summary on invoice views: rate name, tax, net base; Netto moved under VAT - localize Netto/Brutto labels
- new invoice_products catalog (name, price, unit, VAT) on the products page with add/edit/delete and VAT narrowed to the company's country - catalog products appear in the invoice builder's description autocomplete and fill price, unit and their own VAT rate - add a per-line 'unit' field (Jed.) to invoices and persist it - pre-select the company default VAT rate when adding a catalog product - fix en.json overrides so the 'New Hosting Product' button label applies
…lance - Admin: add existing clients as affiliates, fix table columns and balance display - Admin & client: convert affiliate balance to client account credit - Client: fix commission history amounts and referred client names - Remove duplicate config affiliates page and point menu links at /admin/affiliates
…paid/Overdue badge
…le password buttons
Add an extension framework (addon_settings table, config() form rendering/saving) and a Company Lookup addon that resolves a Polish NIP across GUS BIR, MF white list, CEIDG and OpenBRIS, normalises the result and flags per-field discrepancies.
Add a Test action for each API (GUS, MF, CEIDG, OpenBRIS) on the addon page, prefix the result with the source name, and treat an unconfigured GUS key as a silent skip.
Contributor
Author
|
Superseded by #19 (clean branch with only the company-lookup commits). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Company Lookup feature that resolves a Polish NIP across four independent sources, plus a lightweight extension framework to manage and configure it.
Extension framework
addon_settingstable (encrypted values) +AddonSettingmodel.AddonManager::settings()/saveSettings()andAddonController::saveSettings().config()fields (text/textarea/password/checkbox).Company Lookup addon
DataNormalizermerges with per-field priority (GUS → CEIDG → MF → OpenBRIS) and flags discrepancies.company_lookup:{nip}, configurable TTL), per-source test buttons.POST /api/company/lookup.Notes