|
@@ -64,7 +64,7 @@ $(document).ready(() => {
|
|
|
if (col.field.indexOf('dgn') >= 0) {
|
|
|
$('#bills-expr').attr('readOnly', readOnly || cell.locked() || (_.isString(data.b_code) && data.b_code !== ''));
|
|
|
} else if (col.field === 'unit_price') {
|
|
|
- $('#bills-expr').attr('readOnly', readOnly || cell.locked() || (data.children && data.children.length > 0) || node.used);
|
|
|
+ $('#bills-expr').attr('readOnly', readOnly || cell.locked() || (data.children && data.children.length > 0) || (_.isBoolean(data.used) && data.used === true));
|
|
|
} else {
|
|
|
$('#bills-expr').attr('readOnly', readOnly || cell.locked() || (data.children && data.children.length > 0));
|
|
|
}
|