@@ -55,7 +55,7 @@ export class PunchoutService implements PunchoutFacade {
55
55
* Logout silently
56
56
* Login silently
57
57
* Load Cart
58
- * store of initial cart entries for EDIT mode
58
+ * Only for EDIT mode: Fetch Requisition to store initial cart in CXML format.
59
59
* Route to target page based on punchout session info
60
60
* Redirect to Punchout Error page if error occurs
61
61
*/
@@ -99,8 +99,7 @@ export class PunchoutService implements PunchoutFacade {
99
99
} ) ;
100
100
if (
101
101
punchoutSession . punchOutOperation === PunchOutOperation . EDIT &&
102
- punchoutSession ?. cartId &&
103
- ! payload ?. isPageRefresh
102
+ punchoutSession ?. cartId
104
103
) {
105
104
this . setPunchoutInitialRequisition ( ) ;
106
105
}
@@ -169,12 +168,12 @@ export class PunchoutService implements PunchoutFacade {
169
168
170
169
/**
171
170
* closePunchoutSession workflow:
172
- * for EDIT operation:
173
- * - initial Requisition is sent to ARIBA
174
- * for CREATE operation:
175
- * - do same Cancel punchout button
176
- * for INSPECT operation:
177
- * - do same as 'back to requition' button
171
+ * For EDIT operation:
172
+ * - Initial cart snapshot gets sent in CXML, driven by closePunchoutSession flag.
173
+ * For CREATE operation:
174
+ * - Empty cart gets sent in CXML, driven by cancelRequisition flag.
175
+ * For INSPECT operation:
176
+ * - Current cart gets sent in CXML.
178
177
*/
179
178
180
179
protected closePunchoutSessionCommand : Command < undefined , boolean > =
0 commit comments