[#925] Unrelated Service-Add-on being included and addon-amount not included in Booking

Migrated from Redmine #925 | Author: Fayaz Ahamed PA
Status: Feedback | Priority: Immediate, there is BUG! | Created: 2022-09-01


Hi,
During booking The services-Add-on that are not linked to a Service is added to the booking.
Also the added service-add-on amount is not being added to the payment.
Here we have two issue,

  1. The service-add-on that is not linked to a service is getting linked and included automatically to the booking.
  2. Also the linked and automatically added service-add-on amount is not being added to the Invoice total amount.

Attached the screenshot
Request you to clear the issue at the earliest.

Redmine Admin wrote:

please provide raw http request fro both issues and your company login

Fayaz Ahamed PA wrote:

Hi,
Find enclosed the raw http request.

X-Company-Login: safebuy
token: 2ec7bba4f854f53ef9a6df72fabdb055a337421130f7833bc9d6d82d19dc809c
Content-Type: application/json
User-Agent: PostmanRuntime/7.29.2
Accept: /
Postman-Token: d9ae3c09-bb7d-4940-93d8-9b41b6b122fc
Host: localhost:3001
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 898
Cookie: safebuyRedis=s%3AOtvmeILrsHLE9JUk6Gf9fzPaLlMi9Ko6.qzgppkVlowTY2X3%2BsmjQ2W2HgJocaebZ0dN7uaFRmH0

{
“service_id”: 2,
“provider_id”: 1,
“date”: “2022-12-02”,
“time”: “08:00:00”,
“clientData” : {
“name”: “Alobin Tech”,
“email”: “test@gmail.com”,
“phone”: “+617894561230”
},
“additional_fields”:{
“174f93dea26a3e68edd5863971f1a776”: “developer wasim”,
“1e03f7a8574a6acea8d9871c3fb65b25”: “1234567890”,
“2d42cf2bb70e82898ba9ffc46dba74f2”: “Balaclava VIC, Australia”,
“9f785f73333f13a44dbd5cc9df0060f4”: “Hyundai i20”,
“73de0266822ac41e149412761cf1b731”: “2022”,
“ac59cc4cfbdefb7805668ea679018e02”: “1300000”,
“a25f4d5f4cba4c7428d27430d7dca0d6”: “Rego”,
“661e7ff7914016277b3e4de4c62fb285”: “123”,
“a6bf0d4d47602038ef0bbb2fd3ff6f22”: null,
“36820785829f0404de8fb18d886350a7”: “test booking”,
“handle_invoice”: true,
“products”:
}
}

Company Login details
COMPANY_LOGIN = safebuy
LOGIN = admin
PASSWORD = de$mo$12$34

Dmytro Bondarev wrote:

Hi!

  1. please provide created booking code, that was made with wrong service addons.
  2. please change password, because it can be viewed by anyone.

Fayaz Ahamed PA wrote:

Hi Dmitry, Please find the booking codes Booking #1gab1r5un0 (opted ad on was not added to the bill and not passed to Payment Gateway) and Booking #1gab1uzj68 (wrong service ad on in the invoice, amount not passed to payment gateway). I will change the password shortly, thanks for the advice.

-Fayaz

Dmytro Bondarev wrote:

Hi, as far as i see:

  1. 1gab1r5un0 - all adons in booking are the same as in invoice/bill.
  2. 1gab1uzj68 - addon was passed in API request and it was added in invoice/bill (I-00001232).

As i see everything is correct.
Please check with system reports and let us know what exactly is wrong.

Fayaz Ahamed PA wrote:

  1. 1gab1uzj68- The service ad-on ECU Report that is not linked to the Comprehensive Mobile Inspection Service got included automatically to the booking and invoice. However , ECU Report amount $25 not passed to the payment Gateway, so customer has only paid $255.

  2. 1gab1r5un0- a) The opted ad-ons Car History Report (PPSR Included) $22.00 and Car Valuation Report $30.00 added in the invoice but it did not passed to the payment gateway, * as a result customer paid only $255, actually customer should have paid $307* b) ECU Report amount $25 that is not linked to the Comprehensive Mobile Inspection Service got included automatically to the booking and invoice.

Hope my explanations are clear.

Fayaz Ahamed PA wrote:

Fayaz Ahamed PA wrote:

  1. 1gab1uzj68- The service ad-on ECU Report that is not linked to the Comprehensive Mobile Inspection Service got included automatically to the booking and invoice. However , ECU Report amount $25 not passed to the payment Gateway, so customer has only paid $255.

  2. 1gab1r5un0- a) The opted ad-ons Car History Report (PPSR Included) $22.00 and Car Valuation Report $30.00 added in the invoice but it did not passed to the payment gateway, as a result customer paid only $255, actually customer should have paid $307 b) ECU Report amount $25 that is not linked to the Comprehensive Mobile Inspection Service got included automatically to the booking and invoice.

Hope my explanations are clear.

Dmytro Bondarev wrote:

Please check the transactions in “Payment transactions”.

Here is correct amounts.
But these payments were confirmed manually (or via API).
And as i see from our side we didn’t init payment in Stripe, so you should check your code why your amounts are wrong.

Fayaz Ahamed PA wrote:

Kindly let us know why ECU report ad on got added to the below transaction when it is not linked to the Comprehensive Mobile Inspection Service.

Kindly check the attached screenshot, you can find ECU report ad on was not linked.

Dmytro Bondarev wrote:

i do not see any attachment.

Kindly let us know why ECU report ad on got added to the below transaction when it is not linked to the Comprehensive Mobile Inspection Service.
It was passed in API request.

Fayaz Ahamed PA wrote:

Hi Please find the screenshot in the below link.

Why it was passed in API when it is not part of the service?

-Fayaz

Redmine Admin wrote:

it is allowed to add ANY addon to the product

Redmine Admin wrote:

to the service

if you want to restrict this then it should be done via code on your side