merchi_sdk_js 0.0.10 → 0.0.11-s
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/assignment.js +1 -0
- package/src/job.js +1 -0
- package/src/variation_fields_option.js +4 -1
package/package.json
CHANGED
package/src/assignment.js
CHANGED
@@ -28,6 +28,7 @@ export function Assignment() {
|
|
28
28
|
addPropertyTo(this, 'supplyJob', Job);
|
29
29
|
addPropertyTo(this, 'supplier', User);
|
30
30
|
addPropertyTo(this, 'quote', Quote);
|
31
|
+
addPropertyTo(this, 'quoteTotalCost');
|
31
32
|
addPropertyTo(this, 'shipment', Shipment);
|
32
33
|
addPropertyTo(this, 'supplyDomain', SupplyDomain);
|
33
34
|
addPropertyTo(this, 'comments', ProductionComment);
|
package/src/job.js
CHANGED
@@ -73,6 +73,7 @@ export function Job() {
|
|
73
73
|
addPropertyTo(this, 'productionShippingAddress', Address);
|
74
74
|
addPropertyTo(this, 'supplyAssignment', Assignment);
|
75
75
|
addPropertyTo(this, 'supplyJob', Job);
|
76
|
+
addPropertyTo(this, 'supplyQuoteTotalCost');
|
76
77
|
addPropertyTo(this, 'domain', Domain);
|
77
78
|
addPropertyTo(this, 'cost');
|
78
79
|
addPropertyTo(this, 'taxAmount');
|
@@ -3,6 +3,7 @@ import { addPropertyTo } from './model.js';
|
|
3
3
|
import { DiscountGroup } from './discount_group.js';
|
4
4
|
import { MerchiFile } from './merchi_file.js';
|
5
5
|
import { VariationField } from './variation_field.js';
|
6
|
+
import { DraftTemplate } from './draft_template.js';
|
6
7
|
|
7
8
|
export function VariationFieldsOption() {
|
8
9
|
this.resource = '/variationFieldOptions';
|
@@ -20,7 +21,9 @@ export function VariationFieldsOption() {
|
|
20
21
|
addPropertyTo(this, 'variationUnitCost');
|
21
22
|
addPropertyTo(this, 'variationUnitCostDiscountGroup', DiscountGroup);
|
22
23
|
addPropertyTo(this, 'linkedFile', MerchiFile);
|
23
|
-
addPropertyTo(this, 'variationField', VariationField)
|
24
|
+
addPropertyTo(this, 'variationField', VariationField);
|
25
|
+
addPropertyTo(this, 'draftTemplates', DraftTemplate);
|
26
|
+
|
24
27
|
|
25
28
|
this.totalCost = function (quantity) {
|
26
29
|
var total = this.variationCost() ?
|