feat: customers show by their company's name, taken from the CNPJ registry
The Site asks for e-mail, CNPJ and WhatsApp only, so the Kanban showed an e-mail where a name belongs and a new Tiny contact was named after it. The worker now looks up each customer's CNPJ in the public registry (BrasilAPI, no key) a few at a time, never while a customer waits, and keeps the razão social and trade name in dtf_local.cnpj_names; a failed lookup is retried a day later. Cards, the order panel, quotes and the search results show the trade name (else the razão social) above the e-mail, the search finds orders and quotes by either name, and a new Tiny contact gets the razão social as its name and the trade name as fantasia. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,7 @@ jobs:
|
||||
# the generator's geometry. The provider suites use a fake transport: they
|
||||
# prove the documented contract, not the integration.
|
||||
- name: Print-file geometry and provider adapters
|
||||
run: $COMPOSE exec -T api python -m unittest tests.test_printfile tests.test_mercadopago tests.test_tiny tests.test_jadlog tests.test_quote_review tests.test_large_files tests.test_grade_check -v
|
||||
run: $COMPOSE exec -T api python -m unittest tests.test_printfile tests.test_mercadopago tests.test_tiny tests.test_cnpj tests.test_jadlog tests.test_quote_review tests.test_large_files tests.test_grade_check -v
|
||||
|
||||
- name: Runtime and retention regressions
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user