Releases: VirtoCommerce/vc-module-order
Releases · VirtoCommerce/vc-module-order
3.814.0
3.813.0
3.812.0
🎯 Development
Updates last-xxx filters with these rules:
- Today.
- Last Day - Display date range from the day before the current date to the current date at midnight.
- Last Week - Calculate date range starting from the Monday of the week before the current date to the Monday of the current week.
- Last Month - Determine date range from the first day of the previous month to the first day of the current month.
- Last Year - Define date range from the first day of the year before the current year to the first day of the current year.
3.225.17
3.225.16
3.811.0
🎯 Development
- Extended OrderOperation registration with isLocked function to check readonly/locked mode
- Added knownOperations.isLocked(type, entity) for checking readonly/locked mode of an entity
- Admin UI now supports customization of Readonly/Locked Mode for order operations. Operation extended with isLocked(entity) function for defining custom readonly rules.
Operation Registation
knownOperations.registerOperation({
type: 'CustomerOrder',
treeTemplateUrl: 'orderOperationDefault.tpl.html',
isLocked: function (entity) {
return entity.status === 'Completed' ||
entity.cancelledState === 'Completed' ||
entity.isCancelled;
},
detailBlade: {
id: 'orderDetail',
template: 'Modules/$(VirtoCommerce.Orders)/Scripts/blades/customerOrder-detail.tpl.html',
knownChildrenOperations: ['Shipment', 'PaymentIn'],
metaFields: [
...
Extension Samples - Deactivate Readonly
var orderOperation = knownOperations.getOperation('CustomerOrder');
// Override Readonly/Locked default logic for CustomerOrder
orderOperation.isLocked = function () {
return false;
};
3.810.0
3.809.0
3.800.6
🐞 Bug fixes
- (The form of the new shipment, payment document contains the value in the Date and time field 1 of January.)
3.426.7
🐞 Bug fixes
- (The form of the new shipment, payment document contains the value in the Date and time field 1 of January.)