From a2deea8b5e0068209ccd8276b03febd510afd18d Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Wed, 19 Jun 2019 17:21:05 +0300 Subject: [PATCH] Update EstimatedBreakdownMaybe to use SCA process --- src/forms/BookingDatesForm/EstimatedBreakdownMaybe.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/forms/BookingDatesForm/EstimatedBreakdownMaybe.js b/src/forms/BookingDatesForm/EstimatedBreakdownMaybe.js index 8289d423..6fa01417 100644 --- a/src/forms/BookingDatesForm/EstimatedBreakdownMaybe.js +++ b/src/forms/BookingDatesForm/EstimatedBreakdownMaybe.js @@ -30,7 +30,7 @@ import moment from 'moment'; import Decimal from 'decimal.js'; import { types as sdkTypes } from '../../util/sdkLoader'; import { dateFromLocalToAPI, nightsBetween, daysBetween } from '../../util/dates'; -import { TRANSITION_REQUEST, TX_TRANSITION_ACTOR_CUSTOMER } from '../../util/transaction'; +import { TRANSITION_REQUEST_PAYMENT, TX_TRANSITION_ACTOR_CUSTOMER } from '../../util/transaction'; import { LINE_ITEM_DAY, LINE_ITEM_NIGHT, LINE_ITEM_UNITS } from '../../util/types'; import { unitDivisor, convertMoneyToNumber, convertUnitToSubUnit } from '../../util/currency'; import { BookingBreakdown } from '../../components'; @@ -86,7 +86,7 @@ const estimatedTransaction = (unitType, bookingStart, bookingEnd, unitPrice, qua attributes: { createdAt: now, lastTransitionedAt: now, - lastTransition: TRANSITION_REQUEST, + lastTransition: TRANSITION_REQUEST_PAYMENT, payinTotal: totalPrice, payoutTotal: totalPrice, lineItems: [ @@ -103,7 +103,7 @@ const estimatedTransaction = (unitType, bookingStart, bookingEnd, unitPrice, qua { createdAt: now, by: TX_TRANSITION_ACTOR_CUSTOMER, - transition: TRANSITION_REQUEST, + transition: TRANSITION_REQUEST_PAYMENT, }, ], },