|
@@ -294,7 +294,7 @@ $(document).ready(() => {
|
|
|
treeSetting.calcFields.push('deal_tp');
|
|
|
}
|
|
|
treeSetting.calcFun = function (node) {
|
|
|
- if (node && node.b_code && isTz) {
|
|
|
+ if (node && node.b_code) {
|
|
|
const posData = pos.getLedgerPos(node.id) || [];
|
|
|
let camount = node.camount || 0;
|
|
|
if (posData.length > 0) {
|
|
@@ -1053,8 +1053,10 @@ $(document).ready(() => {
|
|
|
colSetting.field === 'sjcl_qty' || colSetting.field === 'sjcl_tp' ||
|
|
|
colSetting.field === 'qtcl_qty' || colSetting.field === 'qtcl_tp' ||
|
|
|
colSetting.field === 'camount' || colSetting.field === 'ca_tp') {
|
|
|
- toastMessageUniq(hint.posQty);
|
|
|
- continue;
|
|
|
+ if (isTz) {
|
|
|
+ toastMessageUniq(hint.posQty);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
if (value !== '' && invalidFields.posXmj.indexOf(colSetting.field) >= 0) {
|
|
|
toastMessageUniq(hint.posXmj);
|
|
@@ -1574,7 +1576,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
},
|
|
|
reCalcCamount: function (node) {
|
|
|
- if (node && node.b_code && isTz) {
|
|
|
+ if (node && node.b_code) {
|
|
|
const posData = pos.getLedgerPos(node.id) || [];
|
|
|
let camount = node.camount || 0;
|
|
|
if (posData.length > 0) {
|
|
@@ -2551,7 +2553,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
|
|
|
const orgText = posData ? posData[col.field] : null;
|
|
|
- const newText = trimInvalidChar(info.editingText);
|
|
|
+ const newText = col.wordWrap ? info.editingText : trimInvalidChar(info.editingText);
|
|
|
if (orgText === newText || ((!orgText || orgText === '') && (newText === ''))) return;
|
|
|
|
|
|
if (!node) {
|
|
@@ -3031,7 +3033,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
};
|
|
|
posSpread.bind(spreadNS.Events.SelectionChanged, posSpreadObj.selectionChanged);
|
|
|
- if (!readOnly && isTz) {
|
|
|
+ if (!readOnly) {
|
|
|
$('a[name="pos-opr"]').click(function () {
|
|
|
posSpreadObj.baseOpr(posSheet, this.getAttribute('type'));
|
|
|
});
|