[~BUGFIX] error while shipment PDF creation; refactoring