-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
…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.
do not merge untill DW 10.11 is released (or wait for me to say it is ready) :) |
Can you merge with the last version of the OrderProvider because looks like it missed the changes from today :) |
src/OrderProvider.cs
Outdated
@@ -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); |
There was a problem hiding this comment.
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?
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. |
…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.