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,374
    • Issues 1,374
    • 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
  • #2904

Closed
Open
Created Oct 11, 2021 by Francis (Agileware)@agilewarefjDeveloper

Date fields are empty on memberships created with Order API Pending

Same problem as #2902 (closed).

Example Order.create API Call to reproduce:

{
  "contact_id": 202,
  "total_amount": 100.00,
  "financial_type_id": "Member Dues",
  "contribution_status_id": "Pending",
  "line_items" : [
    {
      "params": {
        "membership_type_id": "General",
        "contact_id": 202,
        "status_id": "Pending",
        "skipStatusCal":1 
      },
      "line_item": [
        {
          "entity_table":"civicrm_membership",
          "price_field_id":"4",
          "price_field_value_id":"7",
          "qty":"1",
          "unit_price":"100.00",
          "line_total":"100.00"
        }
      ]
    }
  ]
}

Result on 5.39 is a pending Contribution and Membership with join_date, start_date, and end_date

Result on 5.40+ is a pending Contribution and Membership with NO join_date, start_date, or end_date

Including 5.43alpha with @eileen's patch for #2902 applied

5.42+ works correctly without skipStatusCal set, however for backwards compatibility it should work with it also.

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