|
@@ -1968,7 +1968,9 @@ $(document).ready(() => {
|
|
|
try {
|
|
|
const exprInfo = getExprInfo(colSetting.field, true);
|
|
|
posData[exprInfo.expr] = trimInvalidChar(info.sheet.getText(curRow, curCol));
|
|
|
- posData[exprInfo.qty] = math.evaluate(transExpr(posData[exprInfo.expr]));
|
|
|
+ if (posData[exprInfo.expr] || !posData[exprInfo.qty]) {
|
|
|
+ posData[exprInfo.qty] = math.evaluate(transExpr(posData[exprInfo.expr]));
|
|
|
+ }
|
|
|
bPaste = true;
|
|
|
} catch (err) {
|
|
|
toastMessageUniq(hint.expr);
|