After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 635439 - [PATCH] Payment dialog fixes
[PATCH] Payment dialog fixes
Status: RESOLVED INCOMPLETE
Product: GnuCash
Classification: Other
Component: Business
git-master
Other All
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
: 637041 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-11-21 15:06 UTC by Matthijs Kooijman
Modified: 2018-06-29 22:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to autoset owner in the payment dialog (against trunk r19847) (4.09 KB, patch)
2010-11-21 15:06 UTC, Matthijs Kooijman
committed Details | Review
Patch to autoset invoice in an open payment dialog when choosing "Pay Inovice" (against trunk r19847) (1.47 KB, patch)
2010-11-21 15:07 UTC, Matthijs Kooijman
committed Details | Review
0001-Fix-Pay-invoice-for-invoices-that-have-a-job.patch - Fix for "Patch to autoset owner in the payment dialog" (1.81 KB, patch)
2010-11-22 13:40 UTC, Matthijs Kooijman
accepted-commit_now Details | Review
0002-Let-gnc_invoice_set_invoice-accept-a-NULL-invoice.patch - Second fix for "Patch to autoset owner in the payment dialog" (1.18 KB, patch)
2010-11-22 13:40 UTC, Matthijs Kooijman
accepted-commit_now Details | Review
Updated version of "Patch to autoset owner in the payment dialog" that fixes the issues (4.96 KB, patch)
2010-11-22 14:29 UTC, Matthijs Kooijman
committed Details | Review
Revert temporary revert of r19951. (4.33 KB, patch)
2010-12-16 21:48 UTC, Christian Stimming
needs-work Details | Review

Description Matthijs Kooijman 2010-11-21 15:06:12 UTC
Created attachment 174961 [details] [review]
Patch to autoset owner in the payment dialog (against trunk r19847)

> Here's a patch to fix a pet peeve I've had for quite some time with the
> invoice payment dialog: Make it possible to enter just the invoice
> (number), instead of always needing to select the owner manually. This
> is especially useful when processing bank statements, when the invoice
> number is listed on the statement.
> 
> I've added a second patch, for a bug I noticed while digging through the
> code. Note that the inconsistent use of spaces in between a function
> name and the opening brace for the arguments is to remain consistent
> with the surrounding code (but dialog-payment.c uses different
> styles...).
> 
> Patches are against current SVN trunk (r19847).
Comment 1 Matthijs Kooijman 2010-11-21 15:07:42 UTC
Created attachment 174962 [details] [review]
Patch to autoset invoice in an open payment dialog when choosing "Pay Inovice" (against trunk r19847)
Comment 2 Christian Stimming 2010-11-21 20:18:13 UTC
r19853, r19854, thanks a lot!
Comment 3 Mike Evans 2010-11-22 11:58:04 UTC
This patch breaks GnuCash for me.

Selecting pay invoice while an invoice is open fills in the customer field with the job instead of the customer.  Selecting OK crashes. This only occurs where there is a job associated with an invoice, no job no problem.

GnuCash.gnc_invoice_set_invoice: assertion `invoice != NULL' failed
Comment 4 Christian Stimming 2010-11-22 12:16:11 UTC
(In reply to comment #3)
> This patch breaks GnuCash for me.

Oops. Can you narrow down which one of the two patches will cause the crash for you? Feel free to directly revert either one or both so that the patch will be improved before being applied again. Of course a newly introduced crash is no good, so you can revert it right away.
Comment 5 Matthijs Kooijman 2010-11-22 12:48:01 UTC
Woops, didn't realize the job / owner issue. The != NULL assertion has a different cause (It's probably also triggered when changing the owner after selecting an invoice). Two patches to fix this coming up.
Comment 6 Matthijs Kooijman 2010-11-22 13:40:01 UTC
Created attachment 175032 [details] [review]
0001-Fix-Pay-invoice-for-invoices-that-have-a-job.patch - Fix for "Patch to autoset owner in the payment dialog"

Here's two additional patches to fix these issues. Sorry for the breakage...
Comment 7 Matthijs Kooijman 2010-11-22 13:40:33 UTC
Created attachment 175033 [details] [review]
0002-Let-gnc_invoice_set_invoice-accept-a-NULL-invoice.patch - Second fix for "Patch to autoset owner in the payment dialog"
Comment 8 Mike Evans 2010-11-22 14:04:04 UTC
Matthijs:  Can you submit the complete patch again and not just the diffs on you last patch?  I'd reverted your original to avoid having a broken SVN.
Comment 9 Matthijs Kooijman 2010-11-22 14:29:13 UTC
Created attachment 175034 [details] [review]
Updated version of "Patch to autoset owner in the payment dialog" that fixes the issues

Ah, I didn't see the revert yet when I was preparing the patches. Here's a new patch with the original patch and the two fixes squashed together.
Comment 10 Mike Evans 2010-11-22 15:16:51 UTC
Comment on attachment 175034 [details] [review]
Updated version of "Patch to autoset owner in the payment dialog" that fixes the issues

Committed r19861
Thanks!
Comment 11 Derek Atkins 2010-12-16 13:42:55 UTC
FYI, it looks like this patch causes another problem.  See Bug #637041
Comment 12 Christian Stimming 2010-12-16 21:45:53 UTC
*** Bug 637041 has been marked as a duplicate of this bug. ***
Comment 13 Christian Stimming 2010-12-16 21:48:03 UTC
Created attachment 176561 [details] [review]
Revert temporary revert of r19951.
Comment 14 Christian Stimming 2010-12-31 12:23:14 UTC
Matthijs: Any updates here so that it doesn't crash anymore?
Comment 15 Christian Stimming 2011-01-01 21:06:24 UTC
Comment on attachment 176561 [details] [review]
Revert temporary revert of r19951.

Matthijs: Can you re-submit a changed patch from comment#13 which has the crasher of bug#637041 resolved? Thanks!
Comment 16 Akhil Laddha 2011-07-22 04:25:38 UTC
Matthijs, were you able to re-submit the fix as per comment#15 ?
Comment 17 Akhil Laddha 2011-11-02 07:13:26 UTC
Closing this bug report as no further information has been provided.
Comment 18 John Ralls 2018-06-29 22:47:55 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=635439. Please update any external references or bookmarks.