[GNC-dev] gnucash-devel Digest, Vol 216, Issue 18

Scott Morgan scott at adligo.com
Tue Mar 30 21:32:43 EDT 2021


Please email sales at adligo.com for all contract and other work requests.

Adligo does not currently have capacity for work on large projects. We do
have a few consultants that would be willing to work up to 23 hours per
week at high overtime rates. If you are interested in discussing this
further please complete the following steps;

   1.

   Send $235 USD to one of the following cryptocurrency addresses

*Bitcoin* 13TxjdKQsHk97fTvvH5SCJ8w7s4qUU1SeB

*Dash* XdJFL3kM5QyMucRPVF9orLnD24QXSZy8HG

*Ethereum *0x531dc507caE030b65e8Dab0fb5b5CA9c61CbBb91

   1.

   Text the transaction identifier to 1-866-968-1893 along with your
   availability for a one and a half hour appointment Saturday and Sunday
   central standard time from 1 PM until 5 PM for the next three weekends.

   We will be in touch within 48 hours to schedule your appointment.

In Addition, please update the email address scott at adligo.com to
sales at adligo.com in your database!



On Tue, Mar 30, 2021 at 11:00 AM <gnucash-devel-request at gnucash.org> wrote:

> Send gnucash-devel mailing list submissions to
>         gnucash-devel at gnucash.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> or, via email, send a message with subject or body 'help' to
>         gnucash-devel-request at gnucash.org
>
> You can reach the person managing the list at
>         gnucash-devel-owner at gnucash.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gnucash-devel digest..."
>
>
> Today's Topics:
>
>    1. Re:  [GNC] Reports: Help normalizing a list of gnc:monetary
>       values (Christopher Lam)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 30 Mar 2021 10:05:01 +0800
> From: Christopher Lam <christopher.lck at gmail.com>
> To: Evelyn Yamanaka <evelyn.yamanaka at gmail.com>
> Cc: gnucash-devel <gnucash-devel at gnucash.org>
> Subject: Re: [GNC-dev] [GNC] Reports: Help normalizing a list of
>         gnc:monetary values
> Message-ID:
>         <CAKVAZZKt5rd+DaJcucm=Rn6=
> euCeD0HspkDnXYEf46w0k0sjoA at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi, the simple answer is gnc:monetary/ would divide two monetary amounts
> and the result is not a monetary but a simple ratio.
>
> (define (gnc:monetary/ a b)
>  (/ (gnc:gnc-monetary-amount a)
>     (gnc:gnc-monetary-amount b)))
>
> This would do the trick. Afterwards, for the chart amounts you can use the
> unit-less ratio directly. Do feel free to attach your work and we'll help
> you complete it.
>
> On Mon, 29 Mar 2021, 8:00 pm Evelyn Yamanaka, <evelyn.yamanaka at gmail.com>
> wrote:
>
> > I'm trying to create a stacked bar chart graph where the total for
> > each period on the x-axis is 100%, so you can easily see trends in
> > changes in the proportion of individual accounts relative to the
> > total.
> >
> > I'm using category-barchart.scm as a starting point, where account
> > balances are stored as a list of pairs (<account> <balance-list>) in
> > the variable all-data, and <balance-list> is a list of gnc:monetary
> > values (or something like that?) for each period on the x-axis.
> >
> > I can get totals for each period with:
> >
> > (let ((totals
> >         (map
> >           (lambda (l) (apply gnc:monetary+ l))
> >           (apply zip (map cadr all-data)))))
> >   (set! all-data-totals (list "Total" totals)))
> >
> > However, I'm not sure how to divide gnc:monetary values by other
> > gnc:monetary values. I know I can add with:
> >
> > (for-each
> >   (lambda (d)
> >     (let ((new-data (map gnc:monetary+ (cadr d) (cadr d))))
> >       (set! all-data-new
> >         (append all-data-new
> >                 (list (car d) new-data)))))
> >   all-data)
> >
> > But I'm not sure how to divide. Something like:
> >   (map gnc:monetary/ (cadr all-data-totals) (cadr d))
> >
> > Of course, "gnc:monetary/" is undefined, and simply using "/" does not
> > work either. Is there any way to do this? Any help would be appreciated.
> >
> > Thanks,
> > E
> > _______________________________________________
> > gnucash-user mailing list
> > gnucash-user at gnucash.org
> > To update your subscription preferences or to unsubscribe:
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > If you are using Nabble or Gmane, please see
> > https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> > -----
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> >
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
>
> ------------------------------
>
> End of gnucash-devel Digest, Vol 216, Issue 18
> **********************************************
>


-- 
Regards,
Scott Morgan
President & CEO
Adligo Inc
http://www.adligo.com
https://www.linkedin.com/in/scott-morgan-21739415
A+ Better Business Bureau Rating
<https://www.bbb.org/chicago/business-reviews/computer-software-publishers-and-developers/adligo-inc-in-chicago-il-88381256>
https://github.com/adligo

By Appointment Only:
1-866-968-1893 Ex 101
scott at adligo.com
skype:adligo1?call
Send Me Files Securely:
*https://www.sendthisfile.com/f.jsp?id=ewOnyeFQM18IDRf7MMIdolfI
<https://www.sendthisfile.com/f.jsp?id=ewOnyeFQM18IDRf7MMIdolfI>*


More information about the gnucash-devel mailing list