Explorar o código

部位明细,定义前一条bug

MaiXinRong %!s(int64=6) %!d(string=hai) anos
pai
achega
52dfbfd282
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/public/js/ledger.js

+ 1 - 1
app/public/js/ledger.js

@@ -703,7 +703,7 @@ $(document).ready(function() {
                 const sheet = posSpread.getActiveSheet();
                 const sel = sheet.getSelections()[0];
                 const curRow = sel ? sel.row : 0;
-                let next = _.find(resultArr, function (d) {
+                let next = _.findLast(resultArr, function (d) {
                     return d.index < curRow;
                 });
                 if (!next) next = resultArr[resultArr.length - 1];