Releases: VirtoCommerce/vc-module-order
Releases Β· VirtoCommerce/vc-module-order
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.)
3.808.0
π Bug fixes
- The tree node that represents shipment operation in order details blade will display delivery date or "-" if not set.
- The tree node that represents shipment operation in order details blade will not display monetary amount associated with the shipment if it is not set.