All runtime configuration for Arsinous V8 Sales lives in a single file:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/arsinousltd-sudo/Arsinous-V8-Sales/llms.txt
Use this file to discover all available pages before exploring further.
Constants.gs. It declares the MySQL connection details, the Google Drive folder IDs used for customer and invoice file management, the default object shapes used when creating new records, and the VAT rate lookup table. Editing this file is the first thing you do after copying the project files into your Apps Script editor.
Full Constants.gs Reference
Constants.gs
Database Connection
User
The MySQL username used to authenticate the JDBC connection. This user must have
SELECT, INSERT, UPDATE, and DELETE privileges on the target database.UserPwd
The password for the MySQL user specified in
User.InstanceUrl
The full JDBC connection string passed to
Jdbc.getConnection(). It must follow the format below exactly, replacing the host and database name placeholders.| Segment | Description |
|---|---|
<db-host> | The public IP address or hostname of your MySQL server (e.g., 142.93.99.189) |
3306 | The standard MySQL port — must be open and reachable from Google’s servers |
<db-name> | The name of the target database |
useUnicode=yes&characterEncoding=UTF-8 | Ensures correct handling of accented characters and special symbols in customer names and product descriptions |
Google’s JDBC service connects outbound from Google’s infrastructure to your MySQL server on port 3306. Your database host must accept connections from Google’s IP ranges. If your MySQL server sits behind a firewall, add the appropriate allowlist entries or use a publicly reachable endpoint. Private network databases (e.g., within a VPC with no public IP) will not be reachable without additional networking configuration such as a Cloud SQL Auth Proxy or an SSH tunnel.
Google Drive Settings
CUSTOMERS_FOLDER
The Google Drive folder ID of the parent folder where new customer sub-folders are automatically created. When a new customer is saved through the Customer dialog, the system creates a named sub-folder inside this parent and stores the resulting folder ID on the customer record.Find the folder ID in the Drive URL:
https://drive.google.com/drive/folders/<FOLDER_ID>InvoiceTemplate
The Google Sheets file ID of the spreadsheet used as the invoice template. When a new invoice is generated, this template is copied, populated with invoice data, and saved to Find the file ID in the Sheets URL:
InvoiceFolder.https://docs.google.com/spreadsheets/d/<FILE_ID>/editInvoiceFolder
The Google Drive folder ID where generated invoice spreadsheets are stored. Each newly created invoice is placed here as a copy of the Find the folder ID in the Drive URL:
InvoiceTemplate.https://drive.google.com/drive/folders/<FOLDER_ID>Default Object Shapes
These objects define the structure of a blank new record. They are used by the frontend dialogs as the starting state before a user fills in a form. Do not remove any keys — the dialog components expect all fields to be present, even whennull.
DefaultCustomer
A new customer record before any fields are filled in:
DefaultProduct
A new product record with sensible defaults pre-applied:
def_discount field uses a comma-separated list of quantity+bonus expressions (e.g., "6+2" means buy 6, get 2 free). The def_fixed_discount is a percentage applied as a flat discount.
VAT Codes
TheVat object maps numeric VAT codes (stored in MySQL and product records) to their rate values. All invoice and pricing calculations reference this lookup to compute tax amounts.
| Code | value | Display name | Typical use |
|---|---|---|---|
"1" | 0 | 0% | Zero-rated or VAT-exempt goods |
"2" | 0.05 | 5% | Reduced VAT rate (e.g., food, books) |
"3" | 0.19 | 19% | Standard VAT rate |
The string key used to reference this VAT entry throughout the system (stored in the
vat_code column in MySQL).The decimal multiplier applied to a line-item total to compute the VAT amount (e.g.,
0.19 for 19%).The human-readable label displayed in product forms and invoice dialogs.
The default VAT code for new products (
DefaultProduct.vat_code) is 3, corresponding to the standard 19% rate. Change this default in Constants.gs if your product catalog primarily uses a different rate.