<?php

/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\Web\Classes\Api\Helpers;


class ZahlplanHelper
{
  public static function computeKnr($knr, $id = '')
  {
    if (strlen($id) > 0) {
      return \StringOperations::rpad($knr, 10, ' ') . $id;
    }

    return $knr . $id;
  }
}