code: @Override
    public final synchronized void saveAccSettings(
      final Map<String, Object> pAddParam,
        final AccSettings pEntity) throws Exception {
      if (pEntity.getIsNew()) {
        throw new ExceptionWithCode(ExceptionWithCode.FORBIDDEN,
          "Attempt to insert accounting settings by " + pAddParam.get("user"));
      } else {
        if (pEntity.getCostPrecision() < 0 || pEntity.getCostPrecision() > 4) {
          throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
            "precision_must_be_from_0_to_4");
        }
        if (pEntity.getPricePrecision() < 0 || pEntity.getPricePrecision() > 4) {
          throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
            "precision_must_be_from_0_to_4");
        }
        if (pEntity.getQuantityPrecision() < 0
          || pEntity.getQuantityPrecision() > 4) {
          throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
            "precision_must_be_from_0_to_4");
        }
        if (pEntity.getBalancePrecision() < 0
          || pEntity.getBalancePrecision() > 4) {
          throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
            "precision_must_be_from_0_to_4");
        }
        getSrvOrm().updateEntity(pAddParam, pEntity);
        retrieveAccSettings(pAddParam);
      }
    }
docs: <p>Save acc-settings into DB.</p>
  @param pAddParam additional param
  @param pEntity entity
  @throws Exception - an exception