跳至主要内容

Schema

This document outlines the full schema design of the TailorMed CRM Base, including tables, fields, data types, and relationship structure. All tables marked (Local Table) are created and maintained within this CRM base. This schema serves as the foundation for customer management, quotation management, and logistics planning workflows.

Base Information

  • Base Name: 【TailorMed】CRM
  • Base ID: appRjtQd5y7Q0hYUu
  • Total Tables: 10

【TailorMed】FIN CRM Database Schema Documentation

This document describes the schema of the TailorMed FIN CRM Base, focusing on debit notes, charge items, profit analysis, and their links to operational and CRM data.
Tables are marked as (Local Table) when maintained in this base, and (External Table) when synced from OMS/CRM or other systems.


1. ✏️ Debit Notes (Local Table)

Stores all debit note records issued to customers, including amounts, tax calculations, shipment references, and beneficiary banking details.

Field NameTypeDescription
Debit Note No.FormulaAuto-generated debit note identifier following TM + YYMM + 000x format
Invoice DateDateDate when the debit note invoice is issued
Due DateDatePayment due date for the debit note
Net AmountRollupTotal amount of all charge items before tax
Total Amount(with VAT)FormulaFinal amount including VAT calculations
Invoice No.LookupRelated invoice number from linked orders
StatusSingle selectCurrent status of debit note (Draft, Sent, Accepted, Rejected, Expired)
🔵 Non-Taxable ChargesLinked recordConnection to non-taxable charge items
Bill toLookupCustomer name from related quotation
Bill to AddLookupCustomer billing address from related quotation
HAWB / Ref. No#LookupHouse airway bill or reference number from related shipment
MAWBLookupMaster airway bill number from related order
Collection DateLookupScheduled pickup date from related shipment
Delivery DateLookupScheduled delivery date from related shipment
Package CountLookupNumber of packages from related order
Gross WeightLookupTotal weight of shipment from related order
Volumn WeightLookupVolumetric weight from related order
Chargeable WeightLookupBillable weight for pricing from related order
Item DescriptionLong textDescription of shipped items or services
ShipperLookupSender company name from related shipment
Shipper Add.LookupSender address from related shipment
Consignee Add.LookupRecipient address from related shipment
Consignee(CRM)LookupRecipient company name from CRM-related shipment
🔴 Charge ItemsLinked recordConnection to taxable charge line items
VATNumberTax rate percentage applied to taxable items
Total AmountFormulaCombined total of taxable and non-taxable charges
Bank AccountLinked recordLinked payment bank account record (Bene)
Bene Name (from Bane Name)LookupBeneficiary name from linked bank account
Bene's A/C No. (from Bane)LookupBeneficiary account number from linked bank account
Bene's A/C With Bank (from Bane)LookupBeneficiary bank name from linked bank account
Bene's Add. (from Bane)LookupBeneficiary bank address from linked bank account
Swift CodeLookupInternational bank transfer code from linked bank account
Job No.FormulaJob reference number from related order
Debit Note DescriptionLong textAdditional description or notes for the debit note
IncotermsSingle line textInternational commercial terms for the transaction
CurrencySingle selectCurrency for the transaction (e.g., TWD, USD)
VAT includedFormulaCalculated VAT amount in currency
AttachmentAttachmentPDF file of the debit note
Create ByFormulaUser who created the debit note
Last Modified byFormulaUser who last updated the debit note
Non-Taxable Charge Net AmountRollupTotal amount of non-taxable charges
NotesLong textAdditional notes or comments for the debit note
Exchange RateNumberCurrency conversion rate used
Created DateFormulaTimestamp when record was created
Last Modified TimeFormulaTimestamp when record was last updated
Profit & Cost summaryLinked recordConnection to profit analysis record (Profit & Cost summary)
VAT TXTFormulaFormatted VAT percentage for display
Currency TXTFormulaCurrency code for display purposes
Template UsesSingle selectTemplate configuration option for document generation
FooterFormulaFooter image URL or reference for document template
Order No.Linked recordConnection to related order (Orders(OMS))
Quotation No.Linked recordConnection to related quotation (Quotations(CRM))
AIRWAYBILL/POD No.Linked recordConnection to related airwaybill / POD record (AIRWAYBILL/POD(OMS))
Charge Items from Quotations (參考用)LookupReference charge items from quotation
BillTo TXTFormulaFormatted billing address for display
TriggerFormulaComputed trigger date (used for automation or reminders)
Closing DateDateDate when debit note was finalized
ReceivedCheckboxIndicates whether payment has been received
Handled ByLinked recordStaff member responsible for processing (Staffs(CRM))
🔴 計稅品項(暫)Linked recordTemporary taxable items connection (for transitional use)
🔵 不計稅品項(暫)Linked recordTemporary non-taxable items connection (for transitional use)

2. 🔴 Charge Items (Local Table)

Stores taxable charge line items associated with each debit note, referencing the charge catalog for standard pricing.

Field NameTypeDescription
ItemsFormulaUnique identifier for charge item records
QuantityNumberQuantity of the charge item
Default PriceLookupStandard unit price from charge catalog
SubtotalFormulaLine total calculated from unit price and quantity
Charge ItemsLinked recordConnection to charge catalog item (Charge Catalog)
UnitLookupUnit of measurement from charge catalog
Manual PriceNumberOverride unit price when different from default
NotesLong textAdditional notes for the charge item
Debit Note No.Linked recordParent debit note connection (✏️ Debit Notes)
Quotations(CRM)Single line textReference to related quotation
Created DateFormulaRecord creation timestamp
Created ByFormulaUser who created the record
Last Modified TimeFormulaLast update timestamp
Last Modified ByFormulaUser who last updated the record
Uni Price TXTFormulaFormatted unit price for display
Job No.LookupJob number from related debit note
✏️ Debit NotesSingle line textText reference to parent debit note

3. 🔵 Non-Taxable Charges (Local Table)

Stores non-taxable charge line items associated with each debit note.

Field NameTypeDescription
ItemsFormulaUnique identifier for non-taxable charge records
Debit Note No.Linked recordParent debit note connection (✏️ Debit Notes)
Charge Item NameLinked recordConnection to charge catalog item (Charge Catalog)
DescriptionLong textDetailed description of the non-taxable charge
Unit PriceNumberPrice per unit for the charge
QuantityNumberQuantity of the charge item
UnitLookupUnit of measurement from charge catalog
SubtotalFormulaLine total calculated from unit price and quantity
TotalFormulaFinal amount for the non-taxable charge
NotesLong textAdditional notes or comments
Created DateFormulaRecord creation timestamp
Created ByFormulaUser who created the record
Last Modified TimeFormulaLast update timestamp
Last Modified ByFormulaUser who last updated the record
✏️ Debit NotesSingle line textText reference to parent debit note

4. Profit & Cost summary (Local Table)

Summarizes revenue, estimated cost, and profit metrics per job/order, linked back to debit notes and quotations.

Field NameTypeDescription
Order (OMS)Single line textOrder management system reference (job/order identifier)
Partner's NameLookupCustomer name from related debit note
Actual RevenueLookupTotal revenue amount from debit note
ProfitFormulaCalculated profit after deducting estimated costs
CurrencySingle selectCurrency for financial calculations (e.g., TWD, USD)
Gross MarginFormulaProfit margin percentage calculation
NotesLong textAdditional notes for profit analysis
Estimated CostNumberProjected cost for the order
Link to [Debit Note]Linked recordConnection to related debit note (✏️ Debit Notes)
Created DateFormulaRecord creation timestamp
Created ByFormulaUser who created the record
Last Modified TimeFormulaLast update timestamp
Last Modified ByFormulaUser who last updated the record
Link to [Quotation]Linked recordConnection to related quotation (Quotations(CRM))

5. Charge Catalog (Local Table)

Master catalog of all chargeable items (containers/devices, operational fees, freight, additional charges) used for pricing.

Field NameTypeDescription
品項名稱FormulaItem name generated from component fields
品名FormulaFull item description combining all naming fields
••Single selectItem category or type classification
UnitSingle selectStandard unit of measurement for pricing
•••Single selectSize or capacity specifications
Unit PrieceNumberStandard unit price for the charge item
Single selectPrimary service or item classification
#Single line textItem reference number or code
TypeSingle selectCharge type categorization (Container/Devices, Operational, Freight, Additional)
National CodeSingle selectCountry or region code for the charge item
Active?CheckboxIndicates whether the charge item is currently available
DescriptionLong textDetailed description of the charge item
Charge itemsLinked recordConnection to taxable charge item records (🔴 Charge Items)
Non-Taxable ChargesLinked recordConnection to non-taxable charge item records (🔵 Non-Taxable Charges)
Created DateFormulaRecord creation timestamp
Created ByFormulaUser who created the record
Last Modified TimeFormulaLast update timestamp
Last Modified ByFormulaUser who last updated the record
Dim(CM)Single line textDimensional specifications in centimeters
✏️ Debit NotesLinked recordConnection to debit notes using this item
✏️ Debit Notes copyLinked recordAdditional debit note connections

6. Bene (Local Table)

Stores beneficiary bank account information used for receiving payments on debit notes.

Field NameTypeDescription
Bene IDSingle line textUnique identifier for beneficiary account
Bene's A/C No.Single line textBank account number for the beneficiary
Bene's A/C With BankSingle line textName of the beneficiary's bank
Full AddressSingle line textComplete address of the beneficiary or bank
Swift CodeSingle line textInternational bank identifier code
Bene NameSingle line textFull name of the account beneficiary
Debit NotesLinked recordConnection to debit notes using this account
Created DateFormulaRecord creation timestamp
Created ByFormulaUser who created the record
Last Modified TimeFormulaLast update timestamp
Last Modified ByFormulaUser who last updated the record
NotesLong textAdditional notes about the beneficiary account

7. Orders(OMS) (External Table)

(External Table) – Synced from the OMS (Order Management System).
Provides order-level operational data used by FIN for revenue, cost, and debit note linkage.


8. Quotations(CRM) (External Table)

(External Table) – Synced from the CRM base.
Provides quotation-level financial and routing data used as a reference for debit notes and profit analysis.


9. AIRWAYBILL/POD(OMS) (External Table)

(External Table) – Synced from OMS airwaybill / POD records.
Provides shipment airwaybill-level data used as reference in FIN and debit notes.


10. Staffs(CRM) (External Table)

(External Table) – Synced from the CRM Staffs table.
Provides staff identity information used for responsibility and attribution in FIN records.

Relationship Diagram (Text Summary)

One-to-Many Relationships

Many-to-Many Relationships