Merge pull request #2011 from SchrodingersGat/boolean-form-fixes

Fix for "part" form fields
This commit is contained in:
Oliver 2021-08-24 12:10:00 +10:00 committed by GitHub
commit 44ecd958a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,34 +74,34 @@ function partFields(options={}) {
icon: 'fa-boxes',
},
component: {
value: global_settings.PART_COMPONENT,
default: global_settings.PART_COMPONENT,
group: 'attributes',
},
assembly: {
value: global_settings.PART_ASSEMBLY,
default: global_settings.PART_ASSEMBLY,
group: 'attributes',
},
is_template: {
value: global_settings.PART_TEMPLATE,
default: global_settings.PART_TEMPLATE,
group: 'attributes',
},
trackable: {
value: global_settings.PART_TRACKABLE,
default: global_settings.PART_TRACKABLE,
group: 'attributes',
},
purchaseable: {
value: global_settings.PART_PURCHASEABLE,
default: global_settings.PART_PURCHASEABLE,
group: 'attributes',
onEdit: function(value, name, field, options) {
setFormGroupVisibility('supplier', value, options);
}
},
salable: {
value: global_settings.PART_SALABLE,
default: global_settings.PART_SALABLE,
group: 'attributes',
},
virtual: {
value: global_settings.PART_VIRTUAL,
default: global_settings.PART_VIRTUAL,
group: 'attributes',
},
};