Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,372
    • Issues 1,372
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • CiviCRM Core
  • Issues
  • #762
Closed
Open
Created Feb 27, 2019 by guanhuan@guanhuanDeveloper

Financial transaction does not respect Payment Method when marking a contribution as Completed

How it currently works

Tested in the latest CiviCRM.

When marking a contribution to "Completed", a financial transaction is created. The transaction picks the default financial account as its debit account rather than taking the asset account assigned to the payment method specified in the contribution.

For example:

  • payment method Credit Card has 1210 Credit Card Bank assigned to it
  • CiviCRM has 1200 Payment Processor Account set as default account
  • A pending contribution has payment method set to Credit Card

When editing the contribution and changing its status to Completed, a payment financial transaction is created and its debit account is 1200 Payment Processor Account.

How is should work

When a contribution is marked as "Completed" in the back office forms without using a payment processor, the financial transaction should use the account assigned to the contribution payment method as its debit account.

For example:

  • payment method Credit Card has 1210 Credit Card Bank assigned to it
  • CiviCRM has 1200 Payment Processor Account set as default account
  • A pending contribution has payment method set to Credit Card

When editing the contribution and changing its status to Completed, a payment financial transaction is created and its debit account should be 1210 Credit Card Bank.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking