Branches and more than one CNPJ
Issue each sale's invoice with the right branch's CNPJ, each with its own state registration, certificate and environment.
A chain whose stores each have their own CNPJ and state registration issues each sale's invoice in Mobiari with the CNPJ of the branch the goods leave from. The company (the Company details) stays the default issuer; each branch is one more issuer, with its own series, certificate, NFC-e and environment (homologação or production).
Issuers live in Settings → Invoices (NF-e), on the Issuers (CNPJ) card. Before adding a branch, set up the company's invoicing: see Invoices (NF-e).
Add a branch
- In Settings → Invoices (NF-e), on the Issuers (CNPJ) card, click Add branch (CNPJ).
- Type the branch's CNPJ and click Fetch from Receita. Legal name, address, CNAE and regime come from Receita's public registry. Check everything.
- Fill in the Branch name (what the team calls it, for example "Rio branch"; it is not printed on the invoice) and the branch's State registration (IE) in its own state. The IE is required.
- Pick the Tax regime. Under the Regular regime (Lucro Presumido or Real), also pick the PIS/COFINS regime.
- Check the branch's NF-e Series: each CNPJ has its own numbering.
- Click Add branch.
The branch starts in homologação, with the company's nature of operation and default tax class. A CNPJ that is already an issuer of the store (the company's or another branch's) is refused.
To change a branch's details, pick it on the Issuers (CNPJ) card and click Edit branch. The CNPJ and IE cannot change while the branch issues in production: go back to homologação first. Remove branch only works for a branch that never issued, voided or corrected an invoice. Sales channels and locations that used it go back to the company CNPJ.
Set up each CNPJ
On the Issuers (CNPJ) card, click the branch: every card below it now applies to that branch. The page address keeps the choice, so you can send a branch's link to whoever will set it up.
- Digital certificate. The company's e-CNPJ certificate works for the branches with the same CNPJ root (the first 8 digits). Upload the same file with Upload certificate while the branch is picked. A branch with another root needs its own certificate.
- SEFAZ registration. Check SEFAZ registration asks the SEFAZ of the branch's state, with the branch's IE.
- Issuing. Series, nature of operation and additional information belong to each CNPJ. Automatic issuing is the whole store's switch and stays on the company.
- NFC-e (counter sales). Each branch that sells at the counter has its own NFC-e series and CSC, which its state's SEFAZ provides.
- Environment. Each branch goes through its own Production checklist and Production numbering: one branch can be in production while another still tests in homologação. Run the homologação test with an order that leaves from that branch.
Link a POS or sales channel
In Settings → Sales channels, open the channel and click Edit channel. Once the store has branches, the Issuer (CNPJ) field shows: pick the branch and click Save channel. Company goes back to the company CNPJ.
On a Point of sale, the channel's issuer applies when the POS location (Where it stands) has no issuer of its own. The POS offers NFC-e only when the CNPJ that invoices that POS has NFC-e turned on.
Link a physical store and its stock
In Settings → Physical stores, open the location. In the Invoicing and stock part, click Change:
- This location's stock: the stock the goods of sales and pickups at this location leave from.
- Issuer (CNPJ): the branch that invoices what leaves from this location.
Click Save.
How an order picks the CNPJ
An order's invoice is issued with the CNPJ of the place the goods leave from. Mobiari looks, in this order, for:
- the issuer of the pickup location, when the customer picks up in store;
- the issuer of the physical store linked to the stock the order was reserved from;
- the issuer of the POS location, for a counter sale;
- the issuer of the sales channel;
- the company, when nothing above says otherwise.
The branch's state is the origin of the sale: it decides whether the sale is in-state or interstate, and the invoice's ICMS and DIFAL.
Change the CNPJ in the preview
In the order's panel, under Invoice (NF-e), click Issue invoice. The Issue the invoice window shows the chosen Issuer and why (for example, the pickup location). To issue with another CNPJ, pick it in the list: the preview is rebuilt with it, and the invoice goes out exactly as the last preview showed. Back to the automatic choice undoes the change.
When an order points at different CNPJs (for example, one branch's channel and another branch's stock), the preview shows a warning: check the issuer before issuing.
Filter invoices by CNPJ
In Operate → Invoices, the list gets the All CNPJs filter next to the environment: pick the company or a branch to see only its invoices. Without the filter, each invoice shows the name of the branch that issued it.
- Accountant's package: each CNPJ is a separate taxpayer for the accountant. Pick the Issuer (CNPJ) to download one CNPJ's package, or All CNPJs for everything together.
- Void numbers: pick the Issuer (CNPJ) whose series the numbers are voided in.
The reason shown next to the issuer in the preview is in Portuguese.
Next steps
- Set up the company's invoicing: Invoices (NF-e).
- Counter sales: In-person sales.
- Pickup locations and stock: Shipping and Inventory.