瀏覽代碼

Merge branch 'develop'

prodstable
Guillaume 1 年之前
父節點
當前提交
6cbd887cd2
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      backend/web/js/vuejs/document-form.js
  2. +1
    -1
      common/models/Document.php

+ 1
- 1
backend/web/js/vuejs/document-form.js 查看文件

@@ -98,7 +98,7 @@ var app = new Vue({
getProductById: function(idProduct) {
var app = this;

for(var i = 0; i <= Object.keys(this.productsArray).length ; i++) {
for(var i = 0; i <= Object.keys(this.productsArray).length + 1 ; i++) {
if(app.productsArray[i] && app.productsArray[i].id == idProduct) {
return app.productsArray[i];
}

+ 1
- 1
common/models/Document.php 查看文件

@@ -247,7 +247,7 @@ class Document extends ActiveRecordCommon
return '';
}

public function isValidClass($typeDocument)
public static function isValidClass($typeDocument)
{
return in_array($typeDocument, ['Invoice', 'DeliveryNote', 'Quotation']);
}

Loading…
取消
儲存