merchi_sdk_js 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/variation_field.js +2 -0
package/package.json
CHANGED
package/src/variation_field.js
CHANGED
@@ -3,6 +3,7 @@ import { fieldTypes } from './field_types.js';
|
|
3
3
|
import { addPropertyTo } from './model.js';
|
4
4
|
import { isUndefinedOrNull, clone } from './helpers.js';
|
5
5
|
import { DiscountGroup } from './discount_group.js';
|
6
|
+
import { InventoryGroup } from './inventory_group.js';
|
6
7
|
import { VariationFieldsOption } from './variation_fields_option.js';
|
7
8
|
import { Variation } from './variation.js';
|
8
9
|
import { VariationOption } from './variation_option.js';
|
@@ -21,6 +22,7 @@ export function VariationField() {
|
|
21
22
|
addPropertyTo(this, 'defaultValue');
|
22
23
|
addPropertyTo(this, 'required');
|
23
24
|
addPropertyTo(this, 'independent');
|
25
|
+
addPropertyTo(this, 'inventoryGroup', InventoryGroup);
|
24
26
|
addPropertyTo(this, 'variationCost');
|
25
27
|
addPropertyTo(this, 'variationCostDiscountGroup', DiscountGroup);
|
26
28
|
addPropertyTo(this, 'variationUnitCost');
|