Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added virtual fields OrderDeliveryAddressExternalId, OrderDeliveryAdd… #37

Closed
wants to merge 7 commits into from

Conversation

MatthiasSort
Copy link
Contributor

…ressExternalId, OrderDeliveryAddressLocationCode, OrderDeliveryAddressShipmentMethodCode, OrderDeliveryAddressShippingAgentCode and OrderDeliveryAddressShippingAgentServiceCode to store and handle DeliveryAddresses for orders, only OrderDeliveryAddressExternalId for import. Added logic for merging conditionals from EcomOrders to EcomOrderLines so when we only have one table mapping to EcomOrders it will merge else the conditionals will be skipped. Added left join on EcomOrders so we now fetch AccessUserAddress based on the OrderDeliveryAddressId. Updated PackageReference to 10.11 (not released yet) as the extra fields/virtuel-fields will be released on that version.

…ressExternalId, OrderDeliveryAddressLocationCode, OrderDeliveryAddressShipmentMethodCode, OrderDeliveryAddressShippingAgentCode and OrderDeliveryAddressShippingAgentServiceCode to store and handle DeliveryAddresses for orders, only OrderDeliveryAddressExternalId for import. Added logic for merging conditionals from EcomOrders to EcomOrderLines so when we only have one table mapping to EcomOrders it will merge else the conditionals will be skipped. Added left join on EcomOrders so we now fetch AccessUserAddress based on the OrderDeliveryAddressId. Updated PackageReference to 10.11 (not released yet) as the extra fields/virtuel-fields will be released on that version.
@MatthiasSort
Copy link
Contributor Author

do not merge untill DW 10.11 is released (or wait for me to say it is ready) :)

@DWDBE
Copy link
Contributor

DWDBE commented Nov 26, 2024

Can you merge with the last version of the OrderProvider because looks like it missed the changes from today :)

src/OrderProvider.cs Outdated Show resolved Hide resolved
src/OrderProvider.cs Outdated Show resolved Hide resolved
src/OrderProvider.cs Outdated Show resolved Hide resolved
src/OrderProvider.cs Outdated Show resolved Hide resolved
src/OrderProvider.cs Outdated Show resolved Hide resolved
@@ -351,6 +380,7 @@ public override bool RunJob(Job job)
using (var reader = job.Source.GetReader(mapping))
{
var columnMappings = new ColumnMappingCollection(MappingExtensions.ReplaceKeyColumnsWithAutoIdIfExists(mapping));
FindColumnMappings(columnMappings);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like the method is only needed for the EcomOrders tables mappings and not for the other tables so may be skipped for those that are not appropriate fx EcomOrderLines etc?

@MatthiasSort
Copy link
Contributor Author

the fields will be saved directly on the order when an alternative address is selected in the UI, so changes in Order Provider is not needed.

@MatthiasSort MatthiasSort deleted the mss/22051 branch December 16, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants