Hashavshevet connector
The Connector screen connects SmartBill Office to Hashavshevet SQL on the office’s server. Open it from the Operations menu, under Hashavshevet > Connector. Only the office’s owners and admins see it. The Hashavshevet Overview page shows the connector’s state next to the launcher settings and file export.
How it works
Link to section: How it worksThe connector is a small Windows service installed on the server that runs Hashavshevet. Every half minute it connects out to SmartBill Office, picks up your requests and sends back the answer. So no port is opened on the server, and nothing from outside connects to it.
Adding a connector
Link to section: Adding a connector- Choose Add connector, give it a name (for example “Hashavshevet server”) and choose Create installation code.
- Choose Download the connector and copy the file to the Hashavshevet server. The one-time code is in the file’s name and is valid for 15 minutes. If it expires, choose New installation code on the connector’s card and download again.
- On the server, double-click the file and approve running as an administrator. The connector installs itself: it finds Hashavshevet’s SQL Server, connects to the office, and installs a Windows service that starts with the server. If it asks, type the password of the SQL Server administrator (
sa). It is used once, to give the connector read access, and is not saved. - On the screen, the connector’s card shows Connected within a minute, with the server name, the connector version and the last contact.
Updating the connector: when a new version is out, the connector’s card says so next to Connector version. At the top of the page choose Download the connector (the button names the version it downloads). The file’s name carries the version, such as SmartBillConnector-1.2.0.exe. Double-click it on the server the card names (Server). The connector updates in place, with no new code. If the file asks for a one-time code, it is not on the connector’s server: press Enter, then Enter again to close it; nothing is changed. Run it on that server.
The connector’s permissions in SQL Server
Link to section: The connector’s permissions in SQL ServerThe connector signs in to SQL Server with its own Windows service account, with no password. The installation gives it read permissions itself, and no more: seeing the structure of every database, and reading the tables of each Hashavshevet company, for the bank pages check, for bringing from Hashavshevet and for the Data page. Even so it is never allowed the payment card details and the accountant transfer code kept on the cards (Accounts), nor the credit card payments table (CreditPays), and it never reads them. Bringing from Hashavshevet needs connector 1.4.0 or later and the Data page 1.5.2 or later: an older connector needs the update, which also gives these permissions. Never give this account permission to write. If Hashavshevet’s SQL Server is on another machine, the installation creates a SQL login of its own for the connector (SmartBillConnector) with a random password kept encrypted on the server, and gives it the same permissions. That needs SQL Server to allow SQL logins. If the installation could not give the permissions at all, it does not end with “Done” and says what is missing. If it could not give them in one company, it says so in a line beginning Not granted in with the company’s name, and that company keeps what it had: ask your IT person to look at it, then run the installation again. A company that was in use in Hashavshevet at that moment is listed the same way: run the installation again later. While it gives the permissions, the installation shows which database it is checking, out of how many.
Test connection and structure scan
Link to section: Test connection and structure scan- Test connection: the connector checks that it can sign in to SQL Server over an encrypted connection. The card shows the server name, its version, whether the connection is encrypted and how many databases it sees.
- Scan structure: you scan one company at a time, since a server usually holds hundreds of companies. In the window that opens, pick one of the synced clients’ companies or type a database name, and choose Scan. The connector reads only that company’s structure. When the scan finishes, its results open by themselves (and Show the results on the card, under Structure scan, opens them again). The database name and the number of tables read from it are at the top, with the list of its tables below, searchable by the start of their name (
bankfinds BankPages). Clicking a table shows its columns with their SQL types, the primary key, its indexes and the tables it links to, and Copy column list copies them as text. The Available databases tab lists every database the connector can see on the server: a scanned one shows how many tables were read from it, the others say “Not scanned”. From there you can scan another company with Scan this database. No data from the tables is shown, and nothing changes in Hashavshevet.
While a test or scan runs, the card shows what is happening and since when: Waiting for the connector until the connector takes it (it checks for work every 30 seconds), then what it is doing. When the connection test ends, a message says the connection works or what failed. A failed request is not retried by itself: check the error on the card and ask again. If the connector stopped in the middle, the office tries again up to three times and then marks the request failed.
Permissions for bank pages
Link to section: Permissions for bank pagesTo check bank pages in Hashavshevet from Bank connections, and to read from Hashavshevet into a client’s books, the connector needs read access to the bank pages, cards and journal entries. The installation gives it itself, in every Hashavshevet company on the server, and nothing has to be run in SQL. For a company added after the installation, download the connector again and double-click it on the server. Permissions script stays for an IT person who prefers to grant it by hand, to the synced companies only.
Browsing the data (beta)
Link to section: Browsing the data (beta)In offices in the beta program, owners and admins can look through a client’s company in Hashavshevet without opening Hashavshevet: under Hashavshevet > Data, or with Browse the data on the client’s Hashavshevet page. Nothing here changes Hashavshevet or the office’s data.
- Choose the client at the top of the page (clients without a Hashavshevet company code are not listed). The company’s tables show grouped as in Hashavshevet’s own guide: indexes, bookkeeping, documents and customer relations, then the other tables. Each shows its name in Hebrew, its name in the database and about how many rows it has. Empty tables shows the tables with no rows too.
- Choose a table. Its rows come 100 at a time: the arrows move between pages, and the bar says which rows are shown out of how many. Click a column’s heading to sort by it, and Filter to keep only the rows whose column equals a value, contains a text, or is empty.
- A value in blue is a link: a card’s key opens the card, an entry’s number opens the entry. Clicking a row opens all its columns with their meaning, and Rows that point here opens the rows elsewhere that point at it, such as a card’s journal entry lines, bank page lines and documents.
Each page is read live from the server through the connector, so it takes a few seconds: the bar shows Waiting for the connector to take the request and then Reading from Hashavshevet. While the page is open the connector checks for requests every few seconds instead of every half minute. Read again reads the page anew. Payment card details, passwords and binary data are never read: the bottom of the table says how many columns were left out.
If a table says the connector may not read it, the connector was installed before this page existed: download it again and double-click it on the server, and the update gives it read access to the company’s tables. A filter whose value does not fit its column (a word in a number or date column) says so instead of showing rows.
When the connector stops reporting
Link to section: When the connector stops reportingThe connector reports to the office every half minute. If it has not reported for 15 minutes, for example because the server is off or the service stopped, the office’s owners and admins get a red alert in the notifications bell that opens this screen. When the connector reports again, the alert clears by itself. SmartBill sees it too and contacts you if needed.
After the server restarts, the connector service starts by itself (delayed automatic start), and if it fails Windows starts it again.
Pausing and revoking
Link to section: Pausing and revoking- Pause stops the connector at once: it gets no new requests and stops what it was doing. Resume puts it back to work.
- Revoke disconnects the connector for good. To connect again, add a new connector and install it again. A revoked connector leaves the page: it stays under the Revoked connector link, for its activity.
Activity
Link to section: ActivityAt the bottom of each card, Activity shows who added the connector, when it was installed, who paused, resumed or revoked it, and which requests were sent and how they ended.
When something does not work
Link to section: When something does not work- Not connected: the connector has not contacted the office in the last three minutes. Check on the server that the SmartBill Connector service is running and that the server can reach the internet.
- The connection test failed: the error shows on the card. Usually it is a wrong server name, a login without permission, or a SQL Server security certificate the server does not trust. Your IT person finds the fix in the connector’s setup guide.