Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11110

Maintain Premiums Accounting Type integrity

    Details

    • Type: Task
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: Accounting Integration
    • Labels:
      None

      Description

      1. On the form for browsing a Financial Type's Financial Accounts (civicrm/admin/financial/financialType/accounts?reset=1&action=browse&aid=3), before allowing an Account to be deleted that has a 'Cost of Sales Account is' or 'Premiums Inventory Account is' relationship, ensure that the financial type is not currently specified as the Financial Type for a civicrm_premium_product or a civicrm_product. Error message: "You cannot remove an account with a 'Cost of Sales Account is' or 'Premiums Inventory Account is' relationship while the Financial Type is used for a Premium."

      2. On the form for editing the relationship between a Financial Account and a Financial Type, do not allow a 'Cost of Sales Account is' or 'Premiums Inventory Account is' relationship type to be changed if the Financial Type is used either for civicrm_product or civicrm_premium_product. Error message: one of the following:
      "You cannot remove the 'Premiums Inventory Account is' relationship while the Financial Type is used for a Premium."
      or
      "You cannot remove the 'Cost of Sales Account is' relationship while the Financial Type is used for a Premium."

        Attachments

          Activity

            People

            • Assignee:
              joemurray Joe Murray
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: