pears.IQacParams

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Default invoice settings

Column Type Null Default Comment
DBID char(2) NOT NULL
LastDocumentNumber integer NULL
Name char(50) NULL
Version smallint NULL
CountryCode char(3) NOT NULL
CurrencyCode char(3) NOT NULL
VATNumber char(20) NULL
ReserveNominalCode char(12) NULL
LockDate date NULL
LastPrintBatch integer NULL
LastTransferBatch integer NULL
CashAccounting smallint NULL
DefaultVATCode char(3) NULL
UnallocatedCashVATCode char(3) NULL
DefaultPaymentMethod char(3) NULL
  • DBID
Constraint Columns References Delete/update action
IQacCountry CountryCode pears.IQacCountry (CountryCode) NOT NULL;
IQacCurrency CurrencyCode pears.IQacCurrency (CurrencyCode) NOT NULL;
IQacNominal ReserveNominalCode pears.IQacNominal (NominalCode)
IQacPaymentMethod DefaultPaymentMethod pears.IQacPaymentMethod (PaymentMethodCode)
IQacVATRate DefaultVATCode pears.IQacVATRate (VATCode)
IQacVATRate1 UnallocatedCashVATCode pears.IQacVATRate (VATCode)
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."IQacParams"
-- Table comment: Default invoice settings
-- Statement count: 8
 
CREATE TABLE "pears"."IQacParams" (
    "DBID"                           CHAR(2) NOT NULL
   ,"LastDocumentNumber"             INTEGER NULL
   ,"Name"                           CHAR(50) NULL
   ,"Version"                        SMALLINT NULL
   ,"CountryCode"                    CHAR(3) NOT NULL
   ,"CurrencyCode"                   CHAR(3) NOT NULL
   ,"VATNumber"                      CHAR(20) NULL
   ,"ReserveNominalCode"             CHAR(12) NULL
   ,"LockDate"                       DATE NULL
   ,"LastPrintBatch"                 INTEGER NULL
   ,"LastTransferBatch"              INTEGER NULL
   ,"CashAccounting"                 SMALLINT NULL
   ,"DefaultVATCode"                 CHAR(3) NULL
   ,"UnallocatedCashVATCode"         CHAR(3) NULL
   ,"DefaultPaymentMethod"           CHAR(3) NULL
   ,PRIMARY KEY ("DBID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."IQacParams" IS 
	'Default invoice settings'
GO
 
 
ALTER TABLE "pears"."IQacParams"
    ADD NOT NULL FOREIGN KEY "IQacCountry" ("CountryCode" ASC)
    REFERENCES "pears"."IQacCountry" ("CountryCode")
GO
 
 
ALTER TABLE "pears"."IQacParams"
    ADD NOT NULL FOREIGN KEY "IQacCurrency" ("CurrencyCode" ASC)
    REFERENCES "pears"."IQacCurrency" ("CurrencyCode")
GO
 
 
ALTER TABLE "pears"."IQacParams"
    ADD FOREIGN KEY "IQacNominal" ("ReserveNominalCode" ASC)
    REFERENCES "pears"."IQacNominal" ("NominalCode")
GO
 
 
ALTER TABLE "pears"."IQacParams"
    ADD FOREIGN KEY "IQacPaymentMethod" ("DefaultPaymentMethod" ASC)
    REFERENCES "pears"."IQacPaymentMethod" ("PaymentMethodCode")
GO
 
 
ALTER TABLE "pears"."IQacParams"
    ADD FOREIGN KEY "IQacVATRate" ("DefaultVATCode" ASC)
    REFERENCES "pears"."IQacVATRate" ("VATCode")
GO
 
 
ALTER TABLE "pears"."IQacParams"
    ADD FOREIGN KEY "IQacVATRate1" ("UnallocatedCashVATCode" ASC)
    REFERENCES "pears"."IQacVATRate" ("VATCode")
GO
  • database/tables/pears_iqacparams.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1