Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
-
-
ACQ Sprint 59
-
3
Description
Overview:
Adjustment information is being moved out of orders and into invoicing. This means we can remove adjustments from poLine. At the same time, we need to be able to specify separate list prices for physical and electronic. Here's a rundown of the changes required:
- Remove poLine.adjustments
- Rename cost.listPrice to cost.listUnitPrice
- Add cost.listUnitPriceElectronic
- Add cost.discount
- Add cost.discountType - "percentage" or "amount" (default to "percentage")
- Add cost.additionalCost - an amount
- cost.poLineEstimatedPrice is calculated as follows:
baseListPrice = (listUnitPrice * quantityPhysical) + (listUnitPriceElectronic * quantityElectronic) discountAmount = discountType == PERCENTAGE ? (baseListPrice * discount / 100) : discount poLineEstimatedPrice = baseListPrice + additonalCost - discountAmount
- N.B. additionalCost is NOT factored into discount calculations
- NOTE: The estimated price is always calculated by mod-orders upon creation/update, and stored... even if the estimated price is populated in the request.
see UIOR-142
Acceptance Criteria:
- Schemas and examples are updated as described above
- Unit and API tests have been updated as needed
- poLineEstimatedPrice calculation has been updated
TestRail: Results
Attachments
Issue Links
- has to be finished together with
-
MODORDSTOR-66 Updates to poLine Cost
-
- Closed
-
-
MODGOBI-59 Updates to PO Line Cost and Adjustment
-
- Closed
-
- is required by
-
UIOR-133 Estimated price not displaying in POL details view
-
- Closed
-
- relates to
-
MODORDERS-169 Calculate summary information for PO and PO Line
-
- Closed
-
-
MODORDERS-201 Incorrect PO total estimated cost in some cases
-
- Closed
-
-
UIOR-142 Purchase Order Lines: Update cost information accordion to include additional costs and discount fields
-
- Closed
-
-
MODORDERS-181 Updates to PO total estimated cost
-
- Closed
-
-
UXPROD-1388 Create New Purchase Order Lines
-
- Closed
-