|
@@ -1326,7 +1326,7 @@ $(document).ready(() => {
|
|
|
if (node) {
|
|
|
const posData = pos.getLedgerPos(node.id) || [];
|
|
|
SpreadJsObj.loadSheetData(posSheet, 'data', posData);
|
|
|
- posSheet.zh_setting.readOnly = posData.length === 0 && node.used;
|
|
|
+ posSheet.zh_setting.readOnly = readOnly || posData.length === 0;
|
|
|
} else {
|
|
|
SpreadJsObj.loadSheetData(posSheet, 'data', []);
|
|
|
posSheet.zh_setting.readOnly = true;
|