code: private function getShippingAmount(array $entry)
      {
          $isShippingBruttoAndNettoSame = 1 === $entry['taxFree'] && $entry['taxFree'] == $entry['net'];
          if ($isShippingBruttoAndNettoSame) {
              return $entry['invoiceShippingNet'] + $entry['invoiceShippingNet'] * $this->getMaxTaxRateFromOrderItems($entry) / 100;
          }
  
          return (float) $entry['invoiceShipping'];
      }
docs: @param array $entry
  
  @return float