Uploaded image for project: 'ASTPP Community'
  1. ASTPP Community
  2. ASTPPCOM-929

Package assignation with same price as account balance fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: v5.0
    • Fix Version/s: None
    • Labels:
    • Reproducibility:
      always
    • Category:
      Functional
    • Sprint:
      2022-COM-DEV-V60-W37
    • Edition:
      Community

      Description

      If customer on a prepaid account has $100 on balance, and administrator tries to assign a product that costs $100, it fails with "not enough balance" error message.

      Found that the validation onĀ /opt/ASTPP/web_interface/astpp/application/modules/accounts/controllers/accounts.php for the function customer_orders_save checks for = instead of >=

      It should be:

      if ($account_balance >= $total_amt)

        Attachments

          Activity

            People

            Assignee:
            kinjal.prajapati Kinjal Prajapati
            Reporter:
            webudo Alejandro Mejia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5h 40m
                5h 40m