Merge branch 'Warehouse/improve2' into 'master'
Warehouse/improve2 See merge request fronk/thetool!1258
This commit is contained in:
@@ -219,6 +219,7 @@ class WarehouseOrderController extends TTCrud {
|
|||||||
$mail->Password = TT_WAREHOUSE_ORDER_SMTP_PASS;
|
$mail->Password = TT_WAREHOUSE_ORDER_SMTP_PASS;
|
||||||
$mail->SMTPSecure = PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS;
|
$mail->SMTPSecure = PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS;
|
||||||
$mail->Port = 587;
|
$mail->Port = 587;
|
||||||
|
$mail->CharSet = "UTF-8";
|
||||||
|
|
||||||
// Recipients
|
// Recipients
|
||||||
$mail->setFrom('einkauf@xinon.at', 'XINON Einkauf');
|
$mail->setFrom('einkauf@xinon.at', 'XINON Einkauf');
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ Vue.component('warehouse-order-modal', {
|
|||||||
>
|
>
|
||||||
<template #form-actions-append>
|
<template #form-actions-append>
|
||||||
<tt-button
|
<tt-button
|
||||||
v-if="!isNaN(parseInt($refs.positionsManager.formData.article))"
|
v-if="!isNaN(parseInt($refs.positionsManager?.formData?.article))"
|
||||||
text="Zum Artikel"
|
text="Zum Artikel"
|
||||||
sm
|
sm
|
||||||
additional-class="btn-outline-primary"
|
additional-class="btn-outline-primary"
|
||||||
@@ -436,6 +436,7 @@ Vue.component('warehouse-order-modal', {
|
|||||||
},
|
},
|
||||||
async fetchDistributors(article) {
|
async fetchDistributors(article) {
|
||||||
const url = `${window.TT_CONFIG["BASE_PATH"]}/WarehouseOrder/getArticleDistributorData`;
|
const url = `${window.TT_CONFIG["BASE_PATH"]}/WarehouseOrder/getArticleDistributorData`;
|
||||||
|
console.log(article);
|
||||||
const params = typeof article === 'string' ? {allDistributor: true} : {articleId: article};
|
const params = typeof article === 'string' ? {allDistributor: true} : {articleId: article};
|
||||||
if (JSON.stringify(params) === JSON.stringify(this.lastDistributorFetch)) return;
|
if (JSON.stringify(params) === JSON.stringify(this.lastDistributorFetch)) return;
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,9 @@ Vue.component('tt-autocomplete', {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setOldDisplayValue(newValue, oldValue) {
|
setOldDisplayValue(newValue, oldValue) {
|
||||||
if (this.emitDisplayValue && newValue) this.$emit('displayValue', newValue);
|
if (this.emitDisplayValue && newValue && typeof this.value !== 'number') {
|
||||||
|
this.$emit('displayValue', newValue);
|
||||||
|
}
|
||||||
this.oldDisplayValue = oldValue;
|
this.oldDisplayValue = oldValue;
|
||||||
},
|
},
|
||||||
async updateDisplayValue(newValue, oldValue) {
|
async updateDisplayValue(newValue, oldValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user