/**
   * Obtenir le compte comptable d'un produit.
   *
   * @param product
   * @param company
   * @param isPurchase
   * @return
   */
  public Account getProductAccount(AccountManagement accountManagement, boolean isPurchase) {

    if (isPurchase) {
      return accountManagement.getPurchaseAccount();
    } else {
      return accountManagement.getSaleAccount();
    }
  }