CSR-98 Add zip code to saveOrder
This commit is contained in:
parent
927f7c8a00
commit
11c40edccd
3 changed files with 2 additions and 3 deletions
|
|
@ -10,8 +10,7 @@ import baseMixin from "@/mixins/base-mixin";
|
||||||
*/
|
*/
|
||||||
export async function loadOrderIfPresent() {
|
export async function loadOrderIfPresent() {
|
||||||
const funnelCookie = getFunnelCookie();
|
const funnelCookie = getFunnelCookie();
|
||||||
console.log(funnelCookie)
|
|
||||||
|
|
||||||
// Do nothing if there is no cookie or no correlation id.
|
// Do nothing if there is no cookie or no correlation id.
|
||||||
if (funnelCookie == null || funnelCookie.ReferralCorrelationId == null) {
|
if (funnelCookie == null || funnelCookie.ReferralCorrelationId == null) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,6 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
arePagePrerequisitesValid() {
|
arePagePrerequisitesValid() {
|
||||||
// Check if isRepair is populated and if the pageData we need is here (Parts data)
|
// Check if isRepair is populated and if the pageData we need is here (Parts data)
|
||||||
console.log(store.getters.pageData(fmgPageValues.VEHICLE_PARTS))
|
|
||||||
if (
|
if (
|
||||||
(store.getters.damage.isRepair != null) &&
|
(store.getters.damage.isRepair != null) &&
|
||||||
Object.keys(store.getters.pageData(fmgPageValues.VEHICLE_PARTS))
|
Object.keys(store.getters.pageData(fmgPageValues.VEHICLE_PARTS))
|
||||||
|
|
|
||||||
|
|
@ -374,6 +374,7 @@ export const actions = {
|
||||||
style: vehicle.style,
|
style: vehicle.style,
|
||||||
},
|
},
|
||||||
numberOfChips: damage.numberOfChips,
|
numberOfChips: damage.numberOfChips,
|
||||||
|
zipCode: 43215, // TODO CSR-416, should not be hardcoded
|
||||||
glassToReplace: damage.glassToReplace,
|
glassToReplace: damage.glassToReplace,
|
||||||
referralNumber: context.state.order.referralNumber,
|
referralNumber: context.state.order.referralNumber,
|
||||||
referralDate: context.state.order.referralDate
|
referralDate: context.state.order.referralDate
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue