Browse Source

Merge branch 'develop'

prodstable
Guillaume 1 year ago
parent
commit
6cbd887cd2
2 changed files with 2 additions and 2 deletions
  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 View File

@@ -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 View File

@@ -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…
Cancel
Save