Closed (fixed)
Project:
Ledger
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2012 at 03:14 UTC
Updated:
17 Nov 2014 at 14:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
coreyp_1 commentedAttaching patches and screenshots:
Changes proposed to GUI:
Instead of selecting the account type from a drop-down, provide separate pages for each account type, thus allowing the appropriate fields to be displayed. This is analogous to the node module, where different node types are created using different menu paths.
Changes proposed to Schema:
I propose that the field
name(the machine name) in theledger_account_typetable be changed totype, which is included in the patch. First, it is consistent with other entity-enabled modules (like node), and secondly, it avoids confusion withledger_account, wherenameis the user-friendly name, andtypeis the machine name. Thirdly, it made the bug easier to track down.Comment #2
coreyp_1 commentedBah. I forgot to change the status.
Comment #3
m.stentaMakes perfect sense to me! Thanks for the patch! I'll review this ASAP... crunching to prepare for DrupalCon right now. :-D
Comment #4
m.stentaWorking on reviewing this patch... looks really good for the most part. I changed a few things, and some of your changes spurred other more-global changes that needed to be made (see the commit that comes before this one... when I push it up).
The only part I'm not sure about is the following:
Could you elaborate on this a bit?
Comment #5
m.stentaI'll close this issue, because the bulk of it is committed. But let's discuss the code in the comment above regardless.
Comment #6
m.stentaHi @corey_p: I wanted to get your input on the following issue: #2376593: Remove "Account Type" bundles?
We are questioning whether or not it's necessary to have different Account Types with different fields... or if we should collapse them down to a single Account entity type, with a "Type" property for defining what it's fundamental type is (asset, expense, income, equity, or liability).
What do you think? Are you using Account Types with different fields currently?