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 7081B200C52 for ; Mon, 10 Apr 2017 21:04:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6EEB9160B99; Mon, 10 Apr 2017 19:04:58 +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 91A96160B7F for ; Mon, 10 Apr 2017 21:04:57 +0200 (CEST) Received: (qmail 36196 invoked by uid 500); 10 Apr 2017 19:04:56 -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 36184 invoked by uid 99); 10 Apr 2017 19:04:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2017 19:04:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 12D31C05A7 for ; Mon, 10 Apr 2017 19:04:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.397 X-Spam-Level: X-Spam-Status: No, score=-0.397 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_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7E5sjg_7AH6S for ; Mon, 10 Apr 2017 19:04:53 +0000 (UTC) Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 73AEC5F1E9 for ; Mon, 10 Apr 2017 19:04:52 +0000 (UTC) Received: by mail-oi0-f47.google.com with SMTP id r203so159134879oib.3 for ; Mon, 10 Apr 2017 12:04:52 -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=eYNhJY965lR3Q7VvAW0bokYzrBmFH3c15xzBKdLrgOM=; b=qa+aX1C4AvBlQ8U+ueA/xD8FnzJXa8WK5maW9KiRfi+YIMxppMjO/pLEKOIJTKmkC6 qx3xMdVQseUcln5oO8Mdn98BvNhwBRlSAR/dxs8vo0DHRf/NfxgsGDmZGdZsSzlv6Drk nQijuil6g2ZMFdGyCJ7r4H0zy+7BuMrvx32BusmY58zS3mFzqzLJrOsWYyTRTr68rV1S wqzd8fdfN1kVy3ArLrRmtLWfqu8egSwTlKPBfk0m+knn+vncD+IqclXQ0I4k0GCSPXa/ M9nlqplHqqAHRaC/N73T5aU5qKKxS04m20bVABoM2vXTl77T1/JPmkqmaVKcOVIaO8R1 M6Sg== 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=eYNhJY965lR3Q7VvAW0bokYzrBmFH3c15xzBKdLrgOM=; b=VQA8/GRG06Ax5d5Wposal8w4Me1YahxiaixuDNAQrN7J7o3VZMDLTSV6c79UDKdJ1Z iGfbUeFsHnOcIJrjv9Tm7ZrXEhunWH0pnugeQ3W4TJdyP0ClJqqz7ZtF+xgi1fNMlGBk DzF1aPmddoeHUVx95OOjpBSv8Mb9OXbnVoBgDkB3Epar/pan62hw8qFHbFLCvzKD5Hgc 1nK0WR8luQt7OOEss7yUzp8mMepXOwj0gol5sKsdrdn67fSo678u7S7fsUq1TCwuuIKF Jmnk6xBRvpkxcoGa+xrN9B84II5WA+tiZDpmsG3w0hDg03uMpC6TXdbAqQmIFXTGvPg1 IDDQ== X-Gm-Message-State: AN3rC/5kQ7lzu1EcA6lis+U9aVo6DjrAa1p9geCKmgy2RP7zxYO2otVrO8wQk3cp0MH69RHDNWaqikXuwhHb0w== X-Received: by 10.202.169.141 with SMTP id s135mr12096851oie.38.1491851084947; Mon, 10 Apr 2017 12:04:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.62.3 with HTTP; Mon, 10 Apr 2017 12:04:44 -0700 (PDT) In-Reply-To: References: From: Thisura Philips Date: Tue, 11 Apr 2017 00:34:44 +0530 Message-ID: Subject: Re: Does the changes in apache fineract platform necessary to fix FINERACT issues To: dev@fineract.incubator.apache.org Cc: markus.geiss@live.de Content-Type: multipart/alternative; boundary=001a113cdcd0f9e8ca054cd4a56b archived-at: Mon, 10 Apr 2017 19:04:58 -0000 --001a113cdcd0f9e8ca054cd4a56b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 AS= C 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 second 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 have 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 th= e >> 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 client= . >> >> 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) > > > > --=20 T.T.C Philips (BSc.Eng (Undergrad)) Computer Science and Engineering, Sri Lanka Institute of Information Technology(SLIIT) --001a113cdcd0f9e8ca054cd4a56b--