Skip to content

Commit

Permalink
Merge branch 'B-22540V2' into B-22540-INT
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlusk committed Feb 28, 2025
2 parents 6b989af + a2147cf commit 82438e3
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
CREATE TABLE IF NOT EXISTS ppm_closeouts (
id UUID PRIMARY KEY NOT NULL,
ppm_shipment_id UUID REFERENCES ppm_shipments(id) ON DELETE CASCADE NOT NULL,
max_advance integer,
gtcc_paid_contracted_expense integer,
member_paid_contracted_expense integer,
gtcc_paid_packing_materials integer,
member_paid_packing_materials integer,
gtcc_paid_weighing_fee integer,
member_paid_weighing_fee integer,
gtcc_paid_rental_equipment integer,
member_paid_rental_equipment integer,
gtcc_paid_tolls integer,
member_paid_tolls integer,
gtcc_paid_oil integer,
member_paid_oil integer,
gtcc_paid_storage integer,
member_paid_storage integer,
gtcc_paid_other integer,
member_paid_other integer,
total_gtcc_paid_expenses integer,
total_member_paid_expenses integer,
remaining_incentive integer,
gtcc_paid_sit integer,
member_paid_sit integer,
gtcc_disbursement integer,
member_disbursement integer,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL
);

COMMENT on TABLE ppm_closeouts IS 'Stores dollar values paid out in PPM closeouts that are present on the shipment summary worksheet';

COMMENT on COLUMN ppm_closeouts.ppm_shipment_id IS 'PPM shipment that is associated with this closeout.';
COMMENT on COLUMN ppm_closeouts.max_advance IS 'Maximum value a customer can request as an advance. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.gtcc_paid_contracted_expense IS 'Amount paid for contracted expenses using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_paid_contracted_expense IS 'Amount paid for contracted expenses by the service member. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.gtcc_paid_packing_materials IS 'Amount paid for packing materials using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_paid_packing_materials IS 'Amount paid for packing materials by the service member. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.gtcc_paid_weighing_fee IS 'Amount paid for weighing fees using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_paid_weighing_fee IS 'Amount paid for weighing fees by the service member. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.gtcc_paid_rental_equipment IS 'Amount paid for rental equipment using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_paid_rental_equipment IS 'Amount paid for rental equipment by the service member. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.gtcc_paid_tolls IS 'Amount paid for tolls using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_paid_tolls IS 'Amount paid for tolls by the service member. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.gtcc_paid_oil IS 'Amount paid for oil using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_paid_oil IS 'Amount paid for oil by the service member. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.gtcc_paid_storage IS 'Amount paid for storage using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_paid_storage IS 'Amount paid for SIT by the service member. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.gtcc_paid_other IS 'Amount paid for other expenses using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_paid_other IS 'Amount paid for other expenses by the service member. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.total_gtcc_paid_expenses IS 'Total amount paid using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.total_member_paid_expenses IS 'Total amount paid by the service member. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.remaining_incentive IS 'Final PPM incentive less the advance recieved. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.gtcc_paid_sit IS 'Amount paid for SIT using the service member''s GTCC. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_paid_sit IS 'Evaluation report that is associated with the appeal.';
COMMENT on COLUMN ppm_closeouts.gtcc_disbursement IS 'Amount disbursed for GTCC expenses. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.member_disbursement IS 'Amount disbursed for service member paid expenses. Stored in cents.';
COMMENT on COLUMN ppm_closeouts.created_at IS 'Date that this closeout was created.';
COMMENT on COLUMN ppm_closeouts.updated_at IS 'Date that this closeout was updated.';

CREATE INDEX IF NOT EXISTS ppm_closeouts_ppm_shipment_id_idx ON ppm_closeouts (ppm_shipment_id);
1 change: 1 addition & 0 deletions migrations/app/ddl_tables_manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
20250224200700_tbl_ppm_shipments.up.sql
20250225182052_tbl_B-22692_alter_moves.up.sql
20250225183010_tbl_B-22692_alter_mto_shipments.up.sql
20250228174901_tbl_ppm_closeouts.up.sql

0 comments on commit 82438e3

Please sign in to comment.