Article View: grisbi.devel
Article #17Re: Amélioration - opération à débit 0
From: Ludovic Rousseau
Date: Fri, 04 Dec 2026 22:10
Date: Fri, 04 Dec 2026 22:10
26 lines
6791 bytes
6791 bytes
Le mer. 2 déc. 2026 à 23:45, stemu@ymail.com <stemu@ymail.com> a écrit : > > Parfois dans grisbi, je saisis des opérations à débit 0, par exemple dans le cas d'un achat par carte cadeau, car j'aime bien garder dans grisbi une trace de mes achats. > Lorsqu'on fait ça, lors de la validation, grisbi met automatiquement la valeur 0 dans le champ crédit. Je pense qu'il serait bien de pouvoir garder la valeur 0 dans le champ débit. La case débit ou crédit dépend du montant. montant >= 0 alors crédit montant < 0 alors débit Il est possible de modifier le code pour qu'un montant de 0,00 soit considéré comme débit et plus comme crédit. Mais ça risque de perturber les personnes (si elles existent) qui utilisent un montant de 0,00 comme crédit. Ou alors pour un montant de 0 on peut mettre le 0,00 dans les cases débit ET crédit. Quelle est la bonne solution ? -- Dr. Ludovic Rousseau
Technical Details
Message-ID:
<mailman.3162.1796422235.1946.devel@listes.grisbi.org>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.gegeweb.eu!gegeweb.org!.POSTED.mail.gegeweb.local!not-for-mailReferences:
<782695025.3969117.1796251496922.ref@mail.yahoo.com> <782695025.3969117.1796251496922@mail.yahoo.com> <CAGstE8BbT6eMCRuxuDyZHHot1pELni0Cf5Va1Utkf4RqAFShuQ@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.gegeweb.eu!gegeweb.org!.POSTED.mail.gegeweb.local!not-for-mail From: Ludovic Rousseau <ludovic.rousseau@gmail.com> Newsgroups: grisbi.devel Subject: Re: Amélioration - opération à débit 0 Date: Fri, 4 Dec 2026 23:10:15 +0100 Organization: Gegeweb News Server Lines: 26 Message-ID: <mailman.3162.1796422235.1946.devel@listes.grisbi.org> References: <782695025.3969117.1796251496922.ref@mail.yahoo.com> <782695025.3969117.1796251496922@mail.yahoo.com> <CAGstE8BbT6eMCRuxuDyZHHot1pELni0Cf5Va1Utkf4RqAFShuQ@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.gegeweb.eu; posting-account="mailman@usenet.local"; posting-host="mail.gegeweb.local:10.0.0.25"; logging-data="41117"; mail-complaints-to="abuse@gegeweb.eu" To: "Grisbi's Development" <devel@listes.grisbi.org> List-Id: Grisbi's Development <devel.listes.grisbi.org> ARC-Seal: i=1; a=rsa-sha256; t=1796422227; cv=none; d=google.com; s=arc-20260327; b=seoMAXIHpT+JPjAelwKdOtoij+HD79d3nbczxefp9+B/hJ8/EyGCrFKwGEMfDns7m2 fnDCg9xhQJjOGeTltHmo8FTCc7qZ3n9CD9N4WSM/EzC5nihGwM9ib3bEFaR/atNfHgwd VmuPI4VcMIBZtOw3VViSWjD/+sehV3WMaRV3ri7pOE3hVA4+LUBmXGivnX/CcL2uptHV 5kGEOjxHQC52RjuBF+6tW69yRBSL25TKqnGHVxTORiRaq6xo+n7FbaW9stoStHf1zAVb LaTIMr/TJjTjtKRAjrLr0q55m0LAdkeZH60vqu/qlFRJM5VqenFv1qOSdc8yM6AsL9nb iQaQ== In-Reply-To: <782695025.3969117.1796251496922@mail.yahoo.com> List-Post: <mailto:devel@listes.grisbi.org> Precedence: list X-Gm-Features: Aa3M54rM-VDm9o5Tz8AL0bmqyvGlrZReZUO6NCNmdYBLQlc4xrFth4-nWDyYQJs X-Mailman-Original-Message-ID: <CAGstE8BbT6eMCRuxuDyZHHot1pELni0Cf5Va1Utkf4RqAFShuQ@mail.gmail.com> X-Original-To: devel@listes.grisbi.org List-Unsubscribe: <http://listes.grisbi.org/mailman/options/devel>, <mailto:devel-request@listes.grisbi.org?subject=unsubscribe> X-Gm-Gg: AZFdTZfGNI8VzSrwqRx2CMiONmAUbMr/E4xp0c98wvnPheHhK02b16oHI/1w31rt2aO ovFmTMx1P8trLPKgCH26doLNpDZm6eRbRCIm3MKtA9+ZKnGXSPCYP7PXKxwBruk+D4N+R7q4+F+ vF1pK7kaF61F3SXlG1Xio8PvIh5sz/NJqDhTrUBHqR55p6F0sh6/Pt2LWqxE7B6ee6R905rSB/X 0srFtKu6WYO225VZWO99muinpzI4nAHHi1xGNGBP/roidVlKZPAW1Mj8d+EzcRo8ySeaNaLe2ap A0YvmaStu2Ap7vcHk8QhglfSRpu9CGOfC4Bqx07YURcqHmoEBe4CY4jwCd58RIhj0XGkBP9xC12 d4UHU005JdPS438Sg/niI8XsC4bY+S2FSaVdekADKC0oQcs94Sg+Ha0IQudz5/d2fxpOQCrWkxO AGWUp4qRTgINRBoow= X-Mailman-Original-References: <782695025.3969117.1796251496922.ref@mail.yahoo.com> <782695025.3969117.1796251496922@mail.yahoo.com> X-Gm-Message-State: APuU4Z8EYOJn/xAJeGZGB7ILXHOtcIXPG4mPkz+XWY/phUraGfTxeVQU X12zu0Ian7ziCmHYXpL7BCU6Lcu3hLGvApkZHdOIEAMdmJUGOpKpPu4oND/3BUIfRSw+gy3eH6y Gjfwr9wqy25QA3qJVmDvB+p2dayHI25eQrA== Cancel-Lock: sha256:xmzdmULy199KRoVYMvtqUjSYBFjS0MqdRzIXrniRB14= List-Archive: <http://listes.grisbi.org/pipermail/devel/> Return-Path: <ludovic.rousseau@gmail.com> Delivered-To: devel@mail.gegeweb.eu X-BeenThere: devel@listes.grisbi.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tybcMg6Nhepj7z7TwdhH1SswHyEplxqY68TRL6A482s=; fh=LWm6cVQidT+bpIKoUk7gem9Jsv4MC+5rOwOK6lgKgQc=; b=SQkXSPAOBuZZbaondhVKk8KhqvE8xRnjaunVFRpFyElYo0hKisik/gcNTTgNdmVh3j ue4v63GeY6FjmFii/eG2DrcZt0hkwNHGj7kJnzD4mkvXgKkMVnru0cIFrSVH1kSFzKx1 AG5BQr0c9MlX0pL/0YABwBFLCnNZILNH5kt7EsV+x5trHCI+aCTlbjfzR4pCuVd3uLRh im3maTeqOjpAYzSgZzQ+kaAEULshEAhxza+zcx4QVaz0RcoH67NS+cwZeQ48IfxcvvJ9 NRF9QPFhAky6+K2lGebCejRmy5BLHPJe1CNCx+Jx7g6V2qf1QWSYPmeDCSpo3QvmR/XB Q04Q==; darn=listes.grisbi.org X-Mailman-Version: 2.1.29 ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796422227; x=1797027027; darn=listes.grisbi.org; h=content-transfer-encoding:content-type:to:subject:message-id:date :from:in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to:content-type; bh=tybcMg6Nhepj7z7TwdhH1SswHyEplxqY68TRL6A482s=; b=uxYaykhlVEmckX8P6ISSuE50ct62Q89jYlvdUc8LMYH2cfQPI5T6UR9r2USLzHr1s2 q5CVllKxju2hmJMfXj+hcGxCxSZkxSECdQZlzuUPQhD7fGTXzEVJtt6G49PqZiCCkf/o AnupUzGCXh2DYJ+78Nsj1KaklqXjjlXgj0aNFJvnS0QM4+hLVsepDe78nN/bdrmebhVi WZnGyB+6tB/UNGXHJF7/CLTcm8HjIzjJdngGyVziXoyHmuBL504Anaw77MX8lPxqyuwK qKg5NCjTAV2fzTHdaCW2x1GNxaId0R8Mma6pg+/UtE6iBYAJcfPf0DJ/NWgQ6VoQtGX6 Z9Ng== List-Help: <mailto:devel-request@listes.grisbi.org?subject=help> X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796422227; x=1797027027; h=content-transfer-encoding:content-type:to:subject:message-id:date :from:in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to:content-type; bh=tybcMg6Nhepj7z7TwdhH1SswHyEplxqY68TRL6A482s=; b=fq0fXBZ7BJ1O28H/4S6oykkvoJWWNPQggWJ2avOEdU/3MgQMZaDtINOZk6jT23NmpD OH6R64/vGlSZGrH9SiFyUAqP6TbRaIbvYQAJuyemB9Vsx4cQkDSqCfwvs1L9QkFSE40I 3OO70UzVnKWqPstvxv86v7+VdSR4vrul9ErtX/Of0p1IAGS1cAJ39e8ZgwB+3yXjVwLT gNpiCPNUCA+0kHIFoG/w9j831ZdeyQEgsRTBiLlqEADru/bAUuiSJSdcipAJRpDR246j lqIX6XT9tundsXlPa4/7oP4vmWqta6aQO9xXa2kGZ36rWl11pcEI0apjYeMZbsbpzS/e 0Ldw== X-Received: by 2002:a17:906:5cc:b0:c52:732e:b36d with SMTP id a640c23a62f3a-c52732ec158mr115304866b.41.1796422227148; Fri, 04 Dec 2026 14:10:27 -0800 (PST) List-Subscribe: <http://listes.grisbi.org/mailman/listinfo/devel>, <mailto:devel-request@listes.grisbi.org?subject=subscribe>