소스 검색

Merge branch 'master' of http://192.168.1.41:3000/maixinrong/Calculation

TonyKang 5 년 전
부모
커밋
d69ff1e4b0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/service/deal_bills.js

+ 2 - 2
app/service/deal_bills.js

@@ -56,7 +56,7 @@ module.exports = app => {
                             iQty = -1;
                         }
                     } else {
-                        const code = this.ctx.helper._.trimEnd(row[iCode]);
+                        const code = this.ctx.helper._.trim(row[iCode]);
                         console.log(code);
                         if (this.ctx.helper.validBillsCode(code)) {
                             const data = {
@@ -149,7 +149,7 @@ module.exports = app => {
                         iTp = -1;
                     }
                 } else {
-                    const code = this.ctx.helper.replaceReturn(this.ctx.helper._.trimEnd(row[iCode]));
+                    const code = this.ctx.helper.replaceReturn(this.ctx.helper._.trim(row[iCode]));
                     if (this.ctx.helper.validBillsCode(code)) {
                         const data = {
                             deal_id: bills.length + 1,