-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Int b 21668 stored procs for ordering service items #14230
Int b 21668 stored procs for ordering service items #14230
Conversation
…ttps://github.com/transcom/mymove into INT-B-21668-stored-procs-for-ordering-service-items
…rdering-service-items
…ttps://github.com/transcom/mymove into INT-B-21668-stored-procs-for-ordering-service-items
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a static review, but will review again when changes are made. Also got some questions.
migrations/app/schema/20241119151019_stored_procs_for_ordering_service_items.up.sql
Outdated
Show resolved
Hide resolved
migrations/app/schema/20241119151019_stored_procs_for_ordering_service_items.up.sql
Outdated
Show resolved
Hide resolved
migrations/app/schema/20241119151019_stored_procs_for_ordering_service_items.up.sql
Outdated
Show resolved
Hide resolved
migrations/app/schema/20241119151019_stored_procs_for_ordering_service_items.up.sql
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot - one last thing. Everything is working pretty good now.
Can you add the mto_service_item_type
to the mto_service_item
model?
pkg/models/mto_service_items.go
Outdated
@@ -176,3 +176,131 @@ func FetchRelatedDestinationSITFuelCharge(tx *pop.Connection, mtoServiceItemID u | |||
SELECT mto_shipment_id FROM mto_service_items WHERE id = ?)`, ReServiceCodeDDSFSC, mtoServiceItemID).First(&serviceItem) | |||
return serviceItem, err | |||
} | |||
|
|||
type MTOServiceItemType struct { | |||
ID uuid.UUID `db_type:"id"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be db:id
?
…ttps://github.com/transcom/mymove into INT-B-21668-stored-procs-for-ordering-service-items
…rdering-service-items
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well alright then.
@begrohmann need your eyes |
…rdering-service-items
…ttps://github.com/transcom/mymove into INT-B-21668-stored-procs-for-ordering-service-items
B-21668
Summary
Testing CreateApprovedServiceItemsForShipment
CALL public.createapprovedserviceitemsforshipment(:shipment_id);
these service items are added to the shipment
Testing CreateAccessorialServiceItemsForShipment
make db_dev_fresh
ormake db_dev_migrate
to get the db changes into your db clientDatabase
Any new migrations/schema changes: