conneqt/module-sap-my-account

N/A

Installs: 776

Dependents: 0

Suggesters: 0

Security: 0

Type:magento2-module


README

How do the configurations work?

  • Use SAP account -> By setting this option to Yes the anchor tags that navigate to the customer dashboard are redirect to the modules SAP dashboard page if this option is set to No the anchor tags will just redirect to the Magento dashboard page.
  • Use SAP address -> By setting this option to Yes the anchor tags that navigate to the customer address book are redirect to the modules SAP address book page if this option is set to No the anchor tags will just redirect to the Magento address book page. This option also influences address overview in the SAP dashboard.
  • Allow creating new addresses -> By setting this option to Yes an anchor tag is added to the SAP address book page which redirects to an address creation form.
  • Use SAP order history -> By setting this option to Yes the anchor tags that navigate to the customer order history are redirect to the modules SAP order history page if this option is set to No the anchor tags will just redirect to the Magento order history page.
  • Use SAP return request -> By setting this option to Yes an anchor tag is added to the navigation menus which redirects to the SAP return history page.
  • Use SAP invoice -> By setting this option to Yes an anchor tag is added to the navigation menus which redirects to the SAP invoice history page.

Setup configuration

For this module to work you will have to make sure the API credentials are filled in for the SAP base module.

The settings for the SAP base module can be found at Store > Configuration > Conneqt > SAP

For customers to see their SAP information the field CardCode has to be filled in, this field can be found in the admin environment navigate to the customers edit page and under Account information you will find the field at the bottom. The value of CardCode should be the same as the value of CardCode in SAP for this customer. Customers will only see their personal information on the dashboard if the magento accounts email matches that of the data from SAP.

What does it do?

This module creates pages for logged in customers where they can find their data from SAP, this data is collected from SAP using APIS from SAP directly.

How to setup backorders

As backorders can't be collected using a default SAP endpoint we have to add a custom SQL endpoint.

In Postman run the following api.

  • TYPE: Post
  • URL: {{base_url}}SQLQueries
  • Body: { "SqlCode": "GetBackorders", "SqlName": "GetOrderInfoForCustomer", "SqlText": "SELECT ORDR.DocNum, ORDR.DocDate,ORDR.DocDueDate,RDR1.ItemCode,RDR1.Dscription,RDR1.Price, RDR1.OpenQty, RDR1.Quantity FROM ORDR ORDR inner join RDR1 RDR1 on ORDR.DocEntry = RDR1.DocEntry inner join OCRD OCRD on ORDR.CardCode = OCRD.CardCode WHERE ORDR.DocStatus <> 'C' and RDR1.LineStatus <> 'C' and RDR1.OpenQty <> 0 and ORDR.CardCode = :CardCode" }