-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13594 from transcom/B-20947-GCC-Calculations-int
B-20947: SSW Actual Obligations 100% GCC Calculations
- Loading branch information
Showing
10 changed files
with
289 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package models | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/transcom/mymove/pkg/unit" | ||
) | ||
|
||
// WorkSheetShipments is an object representing shipment line items on Shipment Summary Worksheet | ||
type WorkSheetShipments struct { | ||
ShipmentNumberAndTypes string | ||
PickUpDates string | ||
ShipmentWeights string | ||
ShipmentWeightForObligation string | ||
CurrentShipmentStatuses string | ||
} | ||
|
||
// WorkSheetShipment is an object representing specific shipment items on Shipment Summary Worksheet | ||
type WorkSheetShipment struct { | ||
EstimatedIncentive string | ||
MaxAdvance string | ||
FinalIncentive string | ||
AdvanceAmountReceived string | ||
ShipmentNumberAndTypes string | ||
PickUpDates string | ||
ShipmentWeights string | ||
ShipmentWeightForObligation string | ||
CurrentShipmentStatuses string | ||
} | ||
|
||
// SSWMaxWeightEntitlement weight allotment for the shipment summary worksheet. | ||
type SSWMaxWeightEntitlement struct { | ||
Entitlement unit.Pound | ||
ProGear unit.Pound | ||
SpouseProGear unit.Pound | ||
TotalWeight unit.Pound | ||
} | ||
|
||
// Obligations is an object representing the winning and non-winning Max Obligation and Actual Obligation sections of the shipment summary worksheet | ||
type Obligations struct { | ||
MaxObligation Obligation | ||
ActualObligation Obligation | ||
NonWinningMaxObligation Obligation | ||
NonWinningActualObligation Obligation | ||
} | ||
|
||
// Obligation an object representing the obligations section on the shipment summary worksheet | ||
type Obligation struct { | ||
Gcc unit.Cents | ||
SIT unit.Cents | ||
Miles unit.Miles | ||
} | ||
|
||
// ShipmentSummaryFormData is a container for the various objects required for the a Shipment Summary Worksheet | ||
type ShipmentSummaryFormData struct { | ||
ServiceMember ServiceMember | ||
Order Order | ||
Move Move | ||
CurrentDutyLocation DutyLocation | ||
NewDutyLocation DutyLocation | ||
WeightAllotment SSWMaxWeightEntitlement | ||
PPMShipment PPMShipment | ||
PPMShipments PPMShipments | ||
PPMShipmentFinalWeight unit.Pound | ||
W2Address *Address | ||
PreparationDate time.Time | ||
Obligations Obligations | ||
MovingExpenses MovingExpenses | ||
PPMRemainingEntitlement unit.Pound | ||
SignedCertifications []*SignedCertification | ||
MaxSITStorageEntitlement int | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.