Merge branch 'master' of github.com:akaunting/akaunting into 2.1-dev

This commit is contained in:
Cüneyt Şentürk
2020-09-08 11:11:36 +03:00
48 changed files with 1230 additions and 279 deletions

View File

@ -65,7 +65,7 @@ export default {
},
initial_index: {
type: Number,
default: 1,
default: 0,
description: "index of the initially active slide (starting from 0)"
},
trigger: {

View File

@ -980,6 +980,10 @@ export default {
}
this.$emit('interface', this.real_model);
setTimeout(function() {
this.change();
}.bind(this), 800);
},
methods: {
@ -1218,6 +1222,8 @@ export default {
} else {
this.real_model = value.toString();
}
this.change();
},
model: function (value) {
@ -1226,6 +1232,8 @@ export default {
} else {
this.real_model = value.toString();
}
this.change();
}
},
}

View File

@ -616,6 +616,10 @@ export default {
}
this.$emit('interface', this.real_model);
setTimeout(function() {
this.change();
}.bind(this), 800);
},
methods: {

View File

@ -32,6 +32,10 @@ const app = new Vue({
methods: {
onChangeCategory(category) {
if (!category.length) {
return;
}
let path = document.getElementById('category_page').value;
if (category != '*') {

View File

@ -61,6 +61,10 @@ const app = new Vue({
methods: {
onChangeCategory(category) {
if (!category.length) {
return;
}
let path = document.getElementById('category_page').value;
if (category != '*') {

View File

@ -46,6 +46,7 @@ const app = new Vue({
edit: {
status: false,
currency: false,
items: false,
},
}
},
@ -54,6 +55,7 @@ const app = new Vue({
if ((document.getElementById('items') != null) && (document.getElementById('items').rows)) {
this.colspan = document.getElementById("items").rows[0].cells.length - 1;
}
this.form.items = [];
if (this.form.method) {
@ -92,6 +94,10 @@ const app = new Vue({
methods: {
onChangeContact(contact_id) {
if (!contact_id) {
return;
}
if (this.edit.status && !this.edit.currency) {
this.edit.currency = true;
@ -226,7 +232,7 @@ const app = new Vue({
// set global total variable.
this.totals.sub = sub_total;
this.totals.tax = tax_total;
this.totals.tax = Math.abs(tax_total);
this.totals.item_discount = line_item_discount_total;
// Apply discount to total
@ -285,6 +291,12 @@ const app = new Vue({
},
onSelectItem(item, index) {
if (this.edit.status && !this.edit.items) {
this.edit.items = true;
return;
}
let tax_id = (item.tax_id) ? [item.tax_id.toString()] : '';
this.form.items[index].item_id = item.id;

View File

@ -46,6 +46,7 @@ const app = new Vue({
edit: {
status: false,
currency: false,
items: false,
},
}
},
@ -93,6 +94,10 @@ const app = new Vue({
methods: {
onChangeContact(contact_id) {
if (!contact_id) {
return;
}
if (this.edit.status && !this.edit.currency) {
this.edit.currency = true;
@ -286,6 +291,12 @@ const app = new Vue({
},
onSelectItem(item, index) {
if (this.edit.status && !this.edit.items) {
this.edit.items = true;
return;
}
let tax_id = (item.tax_id) ? [item.tax_id.toString()] : '';
this.form.items[index].item_id = item.id;