Commit Graph

20733 Commits

Author SHA1 Message Date
Ryan Turner
55583829b0 Report: Balance Forecast
This report forecasts the combined balances of the selected accounts
based on the scheduled transactions and plots them on a line graph.

You can set a "reserve" amount, which will draw a red line on the
graph, so you can easily see if your forecast dips below a given value.

There is also a "future minimum" line which shows what the lowest future
balance will be at a given point. I find this useful in conjunction with
the "target" line for planning.
2019-03-14 16:31:26 +08:00
Christopher Lam
b6a708196e [commodity-utilities] rewrite gnc:exchange-by-pricealist-nearest
this function made clearer. first we can remove sanity-check:
pricealist will always be sent as a list, and doesn't need to be
confirmed it is a pair? because assoc-ref can handle an empty list
returning #f.

then the conversion routine is reordered to be clearer.
2019-03-14 16:18:20 +08:00
Christopher Lam
274897fb8c [commodity-utilities] inline gnc:pricealist-lookup-nearest-in-time
this is an unexported single-use function. we can safely inline.
2019-03-14 16:18:20 +08:00
Christopher Lam
0e60c77577 [commodity-utilities] deprecate gnc:exchange-by-pricevalue-helper
This function is only used once, internally, and performs a sanity
check (if price-value ... ...) which is, never needed because the
price-value received has been sanitized to return a price, or 0 and
will never be #f. Inlining this function means we can skip this sanity
check.
2019-03-14 16:18:01 +08:00
Christopher Lam
9a0aaedc05 Bug 797136 - Balance sheet report "Show Exchange rate" broken when foreign currency is sold completely
For cases where total(amount)/total(value) = 0/0, the price is
reported as 0.
2019-03-13 19:37:43 +08:00
Christopher Lam
27985ee337 i18n: commit was missing GNC-OWNER-JOB
The commit 4ee0c3ef4 was incomplete and was missing GNC-OWNER-JOB
which would return #unspecified to string-append causing error. This
commit restores this conditional and also a fallback "" to return to
string-append.
2019-03-12 22:57:04 +08:00
Christopher Lam
b57f6d60f5 Revert "[report-utilities] fix gnc:strify for value/commodity collectors"
This reverts commit fc805d6155 which
causes test failure. I'll find a proper fix when I've found the cause.
2019-03-12 22:54:47 +08:00
Christopher Lam
fc805d6155 [report-utilities] fix gnc:strify for value/commodity collectors
this debugging tool was flawed and was not able to strify the value
collector.  we have to forego the procedure->str strify function
because scheme isn't typed and procedures would be called by the
value-collector section.
2019-03-12 17:42:40 +08:00
Christopher Lam
4ee0c3ef46 i18n: fix embedded translated strings 2019-03-12 17:41:59 +08:00
Christopher Lam
d6f4831a50 [commodity-utilities] deprecate gnc:exchange-by-pricedb-helper
this function is unused.
2019-03-11 20:57:49 +08:00
Christopher Lam
e107d861d3 [commodity-utilities] deprecate gnc:get-commoditylist-inst-prices
This function is "called" by gnc:case-exchange-function when the
latter is called with parameter 'actual-transactions but the later is
never used.

To boot it was called with 3 arguments but expects 5. I "fixed" this.

It can be deprecated.
2019-03-11 20:57:49 +08:00
John Ralls
4fd6497c31 Bug 797098 - Quitting Gnucash shortly after clicking Save...
may abort file save.

Fix mistake in d906ac41.
2019-03-10 14:54:00 -07:00
Matija-N
35ed4cf20a Bug 796952 - Report formatting (justify) is broken
Matija's patch manually applied
2019-03-10 19:53:49 +08:00
Christopher Lam
f99ca362f7 [income-gst-statement] amend comments
move comment 1 line up to prevent long #comment in gnucash.pot
2019-03-09 17:14:38 +08:00
Frank H. Ellenberger
15e47ec9f4 Patch .po files with recent I18N changes
Where seen some other issues were fixed, too.
2019-03-08 17:58:23 +01:00
Frank H. Ellenberger
cf4218230f I18N: get rid of 2 underlines in MsgIds
They produced false errors in 'msgfmt -c --check-accelerators="_" ...'
2019-03-08 17:58:20 +01:00
Christopher Lam
863303b172 [test-commodity-utils] upgrade to test DMLR prices
This commit adds:

* checking and capgains account in old DEM currency
* buy & sell DEM/DMLR transactions in DEM with capgains
* and tests prices in EUR currency

This aims to test the old intra-euro currency conversion in the
totalavg and inst price calculators.
2019-03-08 21:02:49 +08:00
Christopher Lam
4f333ee13c [budget-flow] don't write raw html 2019-03-08 21:02:49 +08:00
Christopher Lam
414992f8ec [budget-flow] *reindent/delete-trailing-whitespace/untabify* 2019-03-08 21:02:49 +08:00
Christopher Lam
edd87fa47c [cash-flow] preprocess accounts/money-in/out-accounts
this avoids set! calls
2019-03-08 21:02:49 +08:00
Christopher Lam
c7f7f078ec [cash-flow] convert account-disp-list to srfi-1 2019-03-08 21:02:49 +08:00
Christopher Lam
7d508b7731 [cash-flow] combine common add-accounts-flow code 2019-03-08 21:02:49 +08:00
Christopher Lam
beb6e508a4 [cash-flow] reduce code line length 2019-03-08 21:02:49 +08:00
Christopher Lam
9dd139f3ed [cash-flow] convert subaccounts to srfi-1
neater
2019-03-08 21:02:49 +08:00
Frank H. Ellenberger
b795773e1c Appdata: update data exchange [I18N] 2019-03-07 06:23:10 +01:00
Frank H. Ellenberger
6c59f7b7dd de.po: Several fixes
5087 übersetzte Meldungen, 60 ungenaue Übersetzungen, 100 unübersetzte
Meldungen.
(improved redo of the reverted commit)
2019-03-07 06:22:44 +01:00
Frank H. Ellenberger
0cf9b426cd Revert "de.po: reflect today changes in reports"
A broken editor had truncated the file.
This reverts commit 3b2527e430.
2019-03-06 07:38:25 +01:00
Francisco Javier Serrador
982964c0ad From Bug 797034 - Spanish Translation ...
Update spanish translation to 2018-12-29
2019-03-06 04:10:56 +01:00
Frank H. Ellenberger
d897a7caa9 I18N: Remove surplus spaces from a "Tip of the Day" 2019-03-06 03:03:47 +01:00
Frank H. Ellenberger
3b2527e430 de.po: reflect today changes in reports
1177 übersetzte Meldungen, 2 unübersetzte Meldungen.
2019-03-06 02:17:48 +01:00
Frank H. Ellenberger
c7805a1f1b Merge recent template in de.po 2019-03-05 22:04:03 +01:00
Frank H. Ellenberger
82ba6a3155 I18N: Unify thanks phrase in business reports
Fix typo
2019-03-05 21:38:19 +01:00
Frank H. Ellenberger
c3678d56b9 I18N: Unify thanks phrase in business reports 2019-03-05 21:29:50 +01:00
Frank H. Ellenberger
05606f240e Bug 797104 - Translations not showing in receipt options 2019-03-05 20:56:23 +01:00
Christopher Lam
c419c6d9e7 [budget] clean up useless comments 2019-03-04 22:01:51 +08:00
Christopher Lam
e5495caab9 [budget] compact gnc:html-table-display-budget-columns! 2019-03-04 21:40:26 +08:00
Christopher Lam
275119335b [budget] inline gnc:html-table-add-budget-line-columns!
This function is used only once. Inline it.
2019-03-04 21:39:51 +08:00
Christopher Lam
3ba0970d9d [budget] compact gnc:html-table-add-budget-line! 2019-03-04 21:39:38 +08:00
Christopher Lam
953b01cbc8 [budget] compact gnc:html-table-add-budget-values! 2019-03-04 21:39:33 +08:00
Christopher Lam
58cc7f00a5 [budget] compact budget-renderer 2019-03-04 21:39:25 +08:00
Christopher Lam
97bf596d31 [budget] compact calc-periods 2019-03-04 21:39:05 +08:00
Christopher Lam
5108accfcd [budget] compact gnc:html-table-add-budget-headers! 2019-03-04 21:38:54 +08:00
Christopher Lam
66657f466e [budget] convert iterative functions to use srfi-1 2019-03-04 21:22:11 +08:00
Christopher Lam
86cbebd0ac [budget] eradicate gnc-numeric methods 2019-03-04 21:22:11 +08:00
Christopher Lam
9d38d7fa8e [budget] compact find-period-relative-to-current 2019-03-04 21:22:11 +08:00
Christopher Lam
cd496cbe3c [budget] compact calc-user-period 2019-03-04 21:22:11 +08:00
Christopher Lam
c8625ab5fb [budget] *reindent/untabify/delete-trailing-whitespace* 2019-03-04 21:22:11 +08:00
Christopher Lam
d16d71dfc6 [test-budget] initial commit
Tests budget.scm.

Options are tested; this is not exhaustive but covers most options.
2019-03-04 21:10:59 +08:00
Christopher Lam
9573359b89 [test-extras] augment xml parser to understand – entity 2019-03-04 21:10:59 +08:00
Christopher Lam
e8637c7443 [budget][cash-flow] use srfi-1 functions
... instead of account utility functions which are now deprecated.
2019-03-03 17:28:02 +08:00