Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-3175

Services with coupon shows different total price than generated invoice due to tax

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6.0-b2
    • Component/s: Plugins
    • Labels:
      None

      Description

      When adding a service as an admin in the admin UI, or ordering one from the order form, the price of the generated invoice differs from the totals shown during the add process. This accurs when a coupon is applied to the service.

      When applying a coupon to the service, it appears that the totals are calculated by taxing the coupon amount, but when the invoice is generated, the coupon line items are not taxed, so the price is higher on the invoice than what was shown in the totals box when adding the service.

      Additionally, it appears that applying tax to the coupon line items on the invoice after the fact will reduce the total price, but it reduces it a little too much. I suspect this discrepancy may be caused by rounding afterward, and this will probably go away if the invoice taxes the coupon amounts at generation.

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.6.0 beta Sprint 1 [ 86 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Assignee Jonathan Reissmueller [ jonathan ]
        Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        Automated transition triggered when Jonathan Reissmueller created pull request #685 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 7 hours, 30 minutes [ 27000 ]
        Worklog Id 12311 [ 12311 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #685 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jun/19

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 7 hours, 30 minutes
              7h 30m

                Agile