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