Migrations for invoices and invoice lines. Added invoice enter modal.

This commit is contained in:
Patrick Fic
2020-02-24 17:09:17 -08:00
parent 13faf47044
commit f70627b5da
31 changed files with 730 additions and 23 deletions

View File

@@ -0,0 +1,24 @@
- args:
relationship: job
table:
name: invoices
schema: public
type: drop_relationship
- args:
relationship: vendor
table:
name: invoices
schema: public
type: drop_relationship
- args:
relationship: invoice
table:
name: jobs
schema: public
type: drop_relationship
- args:
relationship: invoices
table:
name: vendors
schema: public
type: drop_relationship

View File

@@ -0,0 +1,41 @@
- args:
name: job
table:
name: invoices
schema: public
using:
foreign_key_constraint_on: jobid
type: create_object_relationship
- args:
name: vendor
table:
name: invoices
schema: public
using:
foreign_key_constraint_on: vendorid
type: create_object_relationship
- args:
name: invoice
table:
name: jobs
schema: public
using:
manual_configuration:
column_mapping:
id: jobid
remote_table:
name: invoices
schema: public
type: create_object_relationship
- args:
name: invoices
table:
name: vendors
schema: public
using:
foreign_key_constraint_on:
column: vendorid
table:
name: invoices
schema: public
type: create_array_relationship