update slack msg
This commit is contained in:
parent
5c62edb0d8
commit
3a8b62c75a
@ -68,13 +68,10 @@ class SlackNotifySubscriber implements EventSubscriberInterface
|
|||||||
'allow_markdown' => true,
|
'allow_markdown' => true,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
dd($item);
|
|
||||||
|
|
||||||
$msg = "Bestellung {$order->getOrderId()}: \n";
|
$msg = "Bestellung {$order->getOrderId()}: \n";
|
||||||
$msg .= $item['marke'] . '-';
|
|
||||||
$msg .= $item['name'];
|
$msg .= $item['name'];
|
||||||
$msg .= '-' . $item['han'];
|
$msg .= ' ' . $item['sku'];
|
||||||
$msg .= ' - *' . $item['menge'] . "* \n";
|
$msg .= ' Menge: ' . $item['menge'] . "\n";
|
||||||
|
|
||||||
if ($order->getStatus() == 1) {
|
if ($order->getStatus() == 1) {
|
||||||
$slack->from('CDS-Notify')->send($msg);
|
$slack->from('CDS-Notify')->send($msg);
|
||||||
@ -89,6 +86,10 @@ class SlackNotifySubscriber implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
private function getWarehouseByGtin(string $gtin)
|
private function getWarehouseByGtin(string $gtin)
|
||||||
{
|
{
|
||||||
|
if ($gtin == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$product = $this->productRepository->findOneBy(['gtin' => $gtin]);
|
$product = $this->productRepository->findOneBy(['gtin' => $gtin]);
|
||||||
|
|
||||||
if ($product) {
|
if ($product) {
|
||||||
|
Loading…
Reference in New Issue
Block a user