GnuCash
Contact   Instructions
Bug 797025 - Import Bills & Invoices: the type of the post to account is not validated - enabling A/P and A/R postings on regular accounts
Summary: Import Bills & Invoices: the type of the post to account is not validated - e...
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Import - CSV (show other bugs)
Version: git-maint
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Rob Laan
QA Contact: import
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-07 07:54 EST by Rob Laan
Modified: 2020-01-30 15:56 EST (History)
2 users (show)

See Also:


Attachments
Import file to illustrate the bug (138 bytes, text/plain)
2019-01-07 07:57 EST, Rob Laan
no flags Details

Description Rob Laan 2019-01-07 07:54:25 EST
In the function Import Bills & Invoices, the account type of the post to account in the import file should be Accounts Payable for bills, and Accounts Receivable for invoices.

But GnuCash does not validate the account type, enabling A/P and A/R postings on any type of account.
Comment 1 Rob Laan 2019-01-07 07:57:46 EST
Created attachment 373112 [details]
Import file to illustrate the bug

Using a book with common and business accounts, dd/mm/yyyy date format, vendor 2001.

The post to account in the import file is not of account type Accounts Payable (it is Expenses:Charity). The bill is posted anyhow.

(When manually posting a bill, it is not possible to use an account of any other type than Accounts Payable).
Comment 2 Rob Laan 2020-01-30 15:56:16 EST
Pull request #457 merged into maint, https://github.com/Gnucash/gnucash/pull/457.

Note You need to log in before you can comment on or make changes to this bug.