Specific topic
✅ Returning used coupons
We have made some improvements to the existing functionality of returning used coupons.
Details
Coupons and order lines will now be bound to each other, meaning that the usage of a coupon will be deleted if the order line is returned. Coupons applied to entire orders will only be released if the entire order is returned.
Additionally, if there is a customer attached to the order and the discount is not expired, then an email will be sent out to that customer via the ReturnDiscountCoupon stencil informing them. Note that the stencil must be configured in order for this to work.
Lastly, an event export message will be sent out about this returned coupon with target Coupon, type Release_coupon.
🆕 ShippingRestriction extension point
By creating a script with the ShippingRestriction extension point you can dictate when to restrict shipping. This means the outcome of this script supersedes the usual OU and address checks. Once a script returns true then shipping the order is restricted.
Note that the use of this script requires you to have the ShippingRestriction functionality.
Details
extend ShippingRestriction
if ShippingAddress.CountryID = 'NL' then
output false
end
output true
CurrentOrganizationUnit: { // usual organization unit variable
ID: 9,
Name: 'Example',
BackendID: 'my-example',
CountryID: 'NL'
},
ShippingAddress: {
CountryID: 'US',
HouseNumber: '5',
Address1: 'P.J. Oudweg',
Address2: 'Apt. 204',
ZipCode: '1314CH',
Subdistrict: 'District'
Subdistrict: 'Subdistrict',
City: 'San Francisco',
State: 'California'
Latitude: 37.806667,
Longitude: -122.465
},
SoldFromAddress: {
// similar to ShippingAddress
}
Order: { // normal order variable
TotalAmountInTax: 15.99,
OrderLines: [...],
HasReturnLines: true,
IsVerified: true,
// ...
},
PaymentTypes: [{ // usual payment type variable
Name: "Cash",
Code: "CASH",
IsActive: true,
// ...
}],
ShippingRestriction: {
CountryID: "NL",
ZipCodeFrom: "1314CH",
ZipCodeTo: "1214CH",
ShippingRestrictionTypeID: 1 // enum ShippingRestrictionType
}
Fixes
- Fixed two issues in Portuguese certified PDF invoice, as follows:
- The label 'FATURA SIMPLIFICADA' has been replaced with 'FATURA RECIBO';
- In the PREÇO UNI (UNIT PRICE) column of the products table, the value previously displayed was the Base Price (Unit price - Tax). This has been changed to now correctly display the Unit price (Base Price + Tax).
- Fixed an issue with the
CreateManualTaxExemptionReason
deprecated Line object (announced in core 2.0.749, that was resulting in an error when creating/editing tax exemption reasons. - EVA will include child products when ProductIDs are explicitly set on a product set.
- Workspaces will no longer have issues with deleted roles.
- Orders with cancelled order lines will be properly flagged as cancelled.
- Anynomous sessions will always be anonymous, regardless of role configurations.
- EVA will now be more selective as to when to raise a subscription_changed event.
it will no longer be raised for other user data changing
Deprecations
🆕 Introduced
These deprecations are now announced for the first time. Usage of these services and/or fields will return the appropriate EVA-Warnings
header.
Setting
Highest
- Highest Vertex:UseMappingHack is deprecated and will assume the default value of False from 2.0.760: This is a temporary hack that will automatically stop working after 2.0.792.
⚡ Removed from typings
These deprecations are now halfway through their deprecation timeline. As of now, these services and/or fields will no longer be exposed by our typings.
Deprecated
High
- High Result.ReturnWithoutRetakeAvailable is deprecated and will be removed in 2.0.744: Use
ReturnWithoutProducts
.- GetReturnableStatusForOrderResponse.Result.ReturnWithoutRetakeAvailable
🚫 Effective
These deprecations are now effective. As of now, these services and/or fields are no longer available in EVA and can no longer be used.
Deprecated
Low
- Low PriceListID is deprecated since 2.0.728: PriceListAdjustment shouldn't be moved from one pricelist to another.
- UpdatePriceListAdjustment.PriceListID
Release dates may vary
The exact date for deploying a Core release to production environments may vary. See How we handle Core releases for more details.