Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E1731200C52 for ; Mon, 10 Apr 2017 21:07:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E014C160B99; Mon, 10 Apr 2017 19:07:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0C8BB160B7F for ; Mon, 10 Apr 2017 21:07:12 +0200 (CEST) Received: (qmail 41944 invoked by uid 500); 10 Apr 2017 19:07:11 -0000 Mailing-List: contact dev-help@fineract.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@fineract.incubator.apache.org Delivered-To: mailing list dev@fineract.incubator.apache.org Received: (qmail 41921 invoked by uid 99); 10 Apr 2017 19:07:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2017 19:07:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D7130CD3C6 for ; Mon, 10 Apr 2017 19:07:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6yiQ9y3_ZkDS for ; Mon, 10 Apr 2017 19:07:09 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6AAA35FB5B for ; Mon, 10 Apr 2017 19:07:09 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id r203so159209293oib.3 for ; Mon, 10 Apr 2017 12:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ApKF1ltlHz6MKZOZ4N7AsKudjIvvyO6XPAyNN/ViBF8=; b=oG1VqjeuK+MpSRYFJss3UfT0qiSYuWzfR38Oj0hrq1HeYOZY18dfS0raRsX34Uxa85 Z/dr/xhs+0G0Mnt6x8FK1IQBv9uGXn1ynaf4ElTA0WZWTmzZzy/2RMxxsbkrb0D0Exyq TcgNZXkb+y01CZm95G3p0Bg+KmbAJtz0z+FavrthBGYg5pOQSr4BfYsuYVJwxHlIbag+ bqxnNSG6vs6ej6j9R4OssJhbqqRYPWKIG7Zunf2oT5NuYROKR4q+It/7fNfzYlngVpEX uaNjvuKfvKclajsrHPrm3eG4oIHpjfKfwMD3szeLlpiWU5NP+oY/nV4z3HIrdfAA6pjt C2lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ApKF1ltlHz6MKZOZ4N7AsKudjIvvyO6XPAyNN/ViBF8=; b=JGjhoDPA7ag7GoxiBLWlFFm3TGD3YYGk9DzoNgta/l4w13VxkI9zfg2VYekB2qymAI lg0JPEaAaquvmJ+8iM6ur9TpSzwGKAkQ9eUL2EcHZiJWHokLs8SSi5joxsWMrUDsP2Io 6db1FaB9Rkri4bM9FdoJF73Xi1v6BGinXDCk53bBLjbRGS7fZpzC2yyehzA78GNTpAEx KsEU4xlVRNreXyNsxbqgF0N7V3zAI6CERuFAiqbR3gBwsoFKw/SeppHmN190ibhex16i 6PeKwg7zxJawoQDoptViqflr58hBVll19vYmCwMZGTHhfITOEWvbJ2lsMdxHpmsvYxcE ZcZA== X-Gm-Message-State: AFeK/H02FSbHRHg+Ono9ieSbUckzxeyzz4aZQIaNV2WZNzCR8UIuWy6BgguVooCJleMPqp1QDiN2vrgjf4eDEw== X-Received: by 10.157.5.161 with SMTP id 30mr27570613otd.229.1491851228853; Mon, 10 Apr 2017 12:07:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.62.3 with HTTP; Mon, 10 Apr 2017 12:07:08 -0700 (PDT) In-Reply-To: References: From: Thisura Philips Date: Tue, 11 Apr 2017 00:37:08 +0530 Message-ID: Subject: Re: Does the changes in apache fineract platform necessary to fix FINERACT issues To: dev@fineract.incubator.apache.org, Mifos Software Development Cc: markus.geiss@live.de Content-Type: multipart/alternative; boundary=001a113926648dbc5f054cd4aea7 archived-at: Mon, 10 Apr 2017 19:07:14 -0000 --001a113926648dbc5f054cd4aea7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable [Adding mifos list] On Tue, Apr 11, 2017 at 12:34 AM, Thisura Philips wrote: > Hi Markus, > > There is a limitation in implementing this in the backend. In the > database, we are storing only the "classification_enum" in the > "acc_gl_account" > Classification Enum has the following values for respective account types= . > ASSET - 1 > LIABILITY - 2 > EQUITY - 3 > INCOME - 4 > EXPENSE - 5 > The values can't be used to reflect the ascending order of names. > Therefore ORDER BY "classification_enum" won't work in the sql query. > There fore we have two options. > 1. Write a sorting function to sort the result set based on the > classification_enum and then on gl_code. > 2. Change the classification_enum values to reflect the > ascending order of account types and add ORDER BY classification_enum ASC= , > gl_code ASC > The changed enums will look like follows. > ASSET - 1 > LIABILITY - 5 > EQUITY - 3 > INCOME - 4 > EXPENSE - 2 > What is the best option? From the maintenance point of view, I think the > first option is better. But from the performance point of view, the secon= d > option is better. > > I have sent this PR > to order the > results according to gl_code. But there is no use of that if we can't hav= e > the same with classification_enum as the first preference is given to > classification_enum. > > Your ideas will be a great help to resolve this issue. > > Thanks and Regards. > > On Mon, Apr 3, 2017 at 11:20 AM, Thisura Philips > wrote: > >> Hi Markus, >> >> Exactly, it should be independent from the client. >> At the moment account in charts of accounts are ordered using orderBy >> directive. >> I will send the response from the platform ordering them as expected in >> this issue. >> >> Cheers! >> >> Thanks & Regards. >> >> On Mon, Apr 3, 2017 at 10:56 AM, Markus Gei=C3=9F >> wrote: >> >>> Hey Thisura, >>> >>> features like the one you've mentioned should find their place within >>> the platform. >>> >>> Just imagine we have not only the community-app but also an android app >>> plus additional UIs we even don=E2=80=99t know about. >>> >>> It is best practice to implement those kind of changes within the >>> backend, so you don=E2=80=99t need to reimplement them with every clien= t. >>> >>> Cheers >>> >>> Markus >>> >>> -----Original Message----- >>> From: Thisura Philips [mailto:ttcphilips@gmail.com] >>> Sent: Thursday, March 30, 2017 05:12 AM >>> To: dev@fineract.incubator.apache.org >>> Subject: Does the changes in apache fineract platform necessary to fix >>> FINERACT issues >>> >>> Hi devs, >>> Just a little bit of misunderstanding. >>> Let's take an example. The ticket at [1] >> a/browse/FINERACT-389> requests to arrange the accounts that fall under >>> one account type in order of their GL codes. >>> This could be done easily with the changes at [2] < >>> https://github.com/openMF/community-app/pull/2157>. But this change is >>> in community-app. >>> >>> My question is, whether the fix is correct. Do we need to correct these >>> at the platform level? Or is the suggested fix in [2] < >>> https://github.com/openMF/community-app/pull/2157>. >>> >>> [1] https://issues.apache.org/jira/browse/FINERACT-389 >>> >>> [2] https://github.com/openMF/community-app/pull/2157 >>> >>> >>> Thanks and regards. >>> >>> -- >>> T.T.C Philips (BSc.Eng (Undergrad)) >>> Computer Science and Engineering, >>> Sri Lanka Institute of Information Technology(SLIIT) >>> >> >> >> >> -- >> T.T.C Philips (BSc.Eng (Undergrad)) >> Computer Science and Engineering, >> Sri Lanka Institute of Information Technology(SLIIT) >> >> >> >> > > > -- > T.T.C Philips (BSc.Eng (Undergrad)) > Computer Science and Engineering, > Sri Lanka Institute of Information Technology(SLIIT) > > > > --=20 T.T.C Philips (BSc.Eng (Undergrad)) Computer Science and Engineering, Sri Lanka Institute of Information Technology(SLIIT) --001a113926648dbc5f054cd4aea7--