v_invoice: Many-to-One (N:1)
Many line items link to one invoice
Referenced through invoice_id
Column | Type | Description |
invoice_id | integer | Invoice reference |
client_code | varchar(28) | Organization ID |
address | text | Service address |
invoice_number | varchar(30) | Invoice number |
reference_id | varchar(30) | Reference ID |
invoice_created_at | timestamp | Creation time |
invoice_category_name | varchar(255) | Category name |
billing_code | varchar(30) | Billing code |
gl_code | varchar(40) | GL code |
category_type_name | varchar(255) | Type name |
line_item | varchar(255) | Item description |
fee_schedule_unit_code | varchar(10) | Unit code |
price | numeric(11,4) | Unit price |
amount | numeric | Total amount |
quantity | numeric | Quantity |
service_date | date | Service date |
note | varchar(255) | Line item note |
is_late_fee | boolean | Late fee flag |