HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


  • **Total** – Calculates the total of all return order forms in a purchase order.

    
  • **SubTotal** – Calculates the subtotal of all return order forms in a purchase order.

    
  • **ShippingSubTotal** – Calculates the shipping subtotal of all return order forms in a purchase order.

    

## Change the default calculation

By inheriting from the default implementation of the interface, DefaultReturnPurchaseOrderCalculator, you can override the calculations. Just override one or more methods in DefaultReturnPurchaseOrderCalculator.



## Change the default validation

The default implementation validates that the totals are not negative after the calculation. To change the behavior, override the ValidateTotal, ValidateSubTotal and ValidateShippingSubTotal methods.