Re: [GNC-dev] Interest

2018-12-15 Thread David Cousens
Mike,

I am adopting an approach of not addressing directly specific examples from a 
particular religious/culturual tradition
but of abstracting and illustrating general accounting approaches/principles 
that may be used using GnuCash to record
transactions for non-interest bearing loans which I hope may then be adaptable 
to the requirements in a specific case or
tradition. The danger is of course that it can be so general that users in 
those traditions may not be able to recognize
the applicability to their specific case.

I have made a start on such a page 
https://wiki.gnucash.org/wiki/Non_Interest_Bearing_Loans which is standalone 
and not
yet linked into the main wiki system. I had some experience during my 
Accounting masters several years ago having to
prepare a thesis exploring accounting practices in India/Bangladesh which 
encompassed Shari'a law and the evolving
microfinance system there. However a brief read through the introduction to 
Jacob Neusner's "A History of the Mishnaic
Law of Damages", which came up in a reference to iron sheep contracts, has 
convinced me that while it may be
interesting, it may be unwise given my anticipated remaining life expectancy, 
to delve too deeply.

The good thing about the Wiki is that it is quite easily edited and can be 
commented on directly in the associated Talk
page or here on the forum, either User or Dev as appropriate and it should 
provide a good test bed for material for
later inclusion in the Tutorial and Concepts Guide. Once I am a bit further 
along with an outline and some content, I
will post a link inviting more general comment in the User forum, particularly 
from users from non-western traditions.
Greater depth would really require input from users with deeper accounting 
knowledge in the specific traditions which
may or may not be available.

David Cousens

On Sat, 2018-12-15 at 09:37 -0500, Michael or Penny Novack wrote:
> On 12/14/2018 10:26 AM, David Cousens wrote:
> > Frank,
> > 
> > Will give it a go. Hamid is possibly right in that it will be too complex to
> > deal with the various possibilities but I will see if I can illustrate a few
> > simple cases.
> > 
> > David
> 
> It is definitely too complex. There are simply far too many variants 
> possible. And many of them would not be properly entered as loans << 
> except perhaps that "iron sheep" contract (illegal* in Jewish law 
> referring to no interest "loans" >> I mentioned which DOES have a 
> definite minimum amount that must be repaid >>
> 
> What I would suggest is that before any attempt is made to code or even 
> describe how in documentation is that a discussion be opened in the user 
> group where people can describe variants. While I am against us 
> "amateurs" giving accounting advice, this is a situation where standard 
> accountant training might not be useful and the average accountant 
> likely to respond "I never heard about an arrangement like that". Once 
> we have classified variants, we would be in a better position deciding 
> how to proceed.
> 
> Michael D Novack
> 
> * In effect partnership agreements where upon dissolution, capital 
> returned based on percentage  contributed, both partners share in 
> profits (per what is agreed) but one bears all the risk of loss. In 
> other words, a "loan" where instead of interest, the lender receives a 
> share of profits (but bears no risk if a loss).
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] debug info

2018-12-15 Thread John Ralls


> On Dec 15, 2018, at 6:16 AM, c.holterm...@gmx.de wrote:
> 
> Hello,
> 
> when debugging for my recent pull request #439 I needed to use
> gdb. When compiling the maint branch from github I didn't have debug
> information (line numbers) in gdb. I needed to add them by including
> the -g flag in CMakelLists.txt. I did it only for c and not for c++.
> Patch below for illustrative purposes.
> 
> Wouldn't it be good to have a command line option or environment
> variable to enable that debug information for c and c++ ?

Christoph,

Of course. That’s why Cmake provides CMAKE_BUILD_TYPE. To make a debug build, 
add the argument -D CMAKE_BUILD_TYPE=Debug to your cmake invocation.

BTW, the flags passed to the compilers are also modifiable from the command 
line using CMAKE_C_FLAGS and CMAKE_CXX_FLAGS. No need to change CMakeLists.txt.

Should you ever need to do this for an autotools project the equivalents are 
the environment variables CFLAGS and CXXFLAGS; autotools also reads CPPFLAGS 
and applies the contents to both c and c++ compiles. Autotools unfortunately 
doesn’t have an equivalent to CMAKE_BUILD_TYPE so you have to adjust the 
compiler flags.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Interest

2018-12-15 Thread Michael or Penny Novack

On 12/14/2018 10:26 AM, David Cousens wrote:

Frank,

Will give it a go. Hamid is possibly right in that it will be too complex to
deal with the various possibilities but I will see if I can illustrate a few
simple cases.

David
It is definitely too complex. There are simply far too many variants 
possible. And many of them would not be properly entered as loans << 
except perhaps that "iron sheep" contract (illegal* in Jewish law 
referring to no interest "loans" >> I mentioned which DOES have a 
definite minimum amount that must be repaid >>


What I would suggest is that before any attempt is made to code or even 
describe how in documentation is that a discussion be opened in the user 
group where people can describe variants. While I am against us 
"amateurs" giving accounting advice, this is a situation where standard 
accountant training might not be useful and the average accountant 
likely to respond "I never heard about an arrangement like that". Once 
we have classified variants, we would be in a better position deciding 
how to proceed.


Michael D Novack

* In effect partnership agreements where upon dissolution, capital 
returned based on percentage  contributed, both partners share in 
profits (per what is agreed) but one bears all the risk of loss. In 
other words, a "loan" where instead of interest, the lender receives a 
share of profits (but bears no risk if a loss).

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


[GNC-dev] debug info

2018-12-15 Thread c . holtermann

Hello,

when debugging for my recent pull request #439 I needed to use
gdb. When compiling the maint branch from github I didn't have debug
information (line numbers) in gdb. I needed to add them by including
the -g flag in CMakelLists.txt. I did it only for c and not for c++.
Patch below for illustrative purposes.

Wouldn't it be good to have a command line option or environment
variable to enable that debug information for c and c++ ?

regards,

Christoph Holtermann

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 860954143..5527cd99e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -567,7 +567,7 @@ set(CMAKE_CXX_FLAGS "-std=gnu++11 
${CMAKE_CXX_FLAGS}")  # FIXME: should be -std=



 if (UNIX)
-  set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement 
-Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations 
-Wno-unused ${CMAKE_C_FLAGS}")
+  set( CMAKE_C_FLAGS "-g -Werror -Wdeclaration-after-statement 
-Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations 
-Wno-unused ${CMAKE_C_FLAGS}")
   set( CMAKE_C_FLAGS "-Wno-deprecated-declarations -std=gnu11 
-Wno-error=parentheses ${CMAKE_C_FLAGS}")
   set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations 
-Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}")
   set( CMAKE_CXX_FLAGS "-Wno-deprecated-declarations 
${REGISTER_CXXFLAG} ${CMAKE_CXX_FLAGS}")

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Interest

2018-12-15 Thread Frank H. Ellenberger
Hi,

Am 15.12.18 um 10:30 schrieb David T. via gnucash-devel:
> Um, I wouldn't see putting this as a direct link of the top page of the wiki. 

I absolutly agree.

> It's a rather specific use case. Without digging into the wiki, I'd see it 
> more as something from the Using Gnucash page, or the FAQ.
> 

Both, links are cheap.

~Frank

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Interest

2018-12-15 Thread David Cousens
OK Geert,

I'll create it that way thenlook for a suitable place to link it in as David
T suggested.

David



-
David Cousens
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-Dev-f1435356.html
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


[GNC-dev] Power Outage affecting code (wiki/email/gncbot)

2018-12-15 Thread Derek Atkins
Hi,

Shortly after 10pm EST last night we had a power outage here.  This
immediately affected our network and shortly thereafter the servers
themselves.  The power came back somewhere around 12:30am and most of the
servers rebooted on their own.

I am checking various services now, so if you notice something still
missing please let me know.

Sorry for the inconvenience.

-derek

-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Interest

2018-12-15 Thread David T. via gnucash-devel
Um, I wouldn't see putting this as a direct link of the top page of the wiki. 
It's a rather specific use case. Without digging into the wiki, I'd see it more 
as something from the Using Gnucash page, or the FAQ.

 
 
  On Sat, Dec 15, 2018 at 13:06, Geert Janssens 
wrote:   Op zaterdag 15 december 2018 08:23:55 CET schreef David Cousens:
> Frank
> I really can't see a logical place in the Wiki to add something on non
> interest bearing loans. If under Localization, I will need someone to create
> a link to a page I can put it together on as I don't have edit rights on
> the wiki front page but I can edit pages linked from it. Perhaps a title
> like "Non Interest Bearing Loans"
> 
> David

David,

I believe it works the other way around:
You first create your page and then someone with rights can add it to the 
front page.

You can create a new page by searching for it. As it's new the search results 
will have an option to create it. As far as I understand, we give page 
creation rights to every wiki editor.

Regards,

Geert


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
  
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel