From fd2fc4d8211920a0cec185f76fd00f67b68a1b4f Mon Sep 17 00:00:00 2001 From: Marko <52066939+HeX87@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:12:52 +0200 Subject: [PATCH] add float to amount --- config/packages/sentry.yaml | 2 +- src/Helper/Hiltes.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/packages/sentry.yaml b/config/packages/sentry.yaml index 173ac9d..86faa51 100644 --- a/config/packages/sentry.yaml +++ b/config/packages/sentry.yaml @@ -16,7 +16,7 @@ when@prod: handlers: sentry: type: sentry - level: !php/const Monolog\Logger::INFO + level: !php/const Monolog\Logger::ERROR hub_id: Sentry\State\HubInterface # Uncomment these lines to register a log message processor that resolves PSR-3 placeholders diff --git a/src/Helper/Hiltes.php b/src/Helper/Hiltes.php index 8b25e4a..e4a2b18 100644 --- a/src/Helper/Hiltes.php +++ b/src/Helper/Hiltes.php @@ -139,7 +139,7 @@ class Hiltes $arr['SaleList'][] = array( "OrderNumber" => $tA['externOrderId'], #X - "SalesLabel" => 'Ean',#$v['sku'],#X + "SalesLabel" => 1,#$v['sku'],#X "SalesLabelNumber" => $SalesNumber,#X "SalesGoodsGroupNumber" => $SalesGoodsGroupNumber, #"SizeDescription" => '',#"string", @@ -148,12 +148,12 @@ class Hiltes "Amount" => floatval($v['menge']),#X "CalculatedSellingPrice" => $v['CalculatedSellingPrice'], #X kalkulierter Verkaufspreis "AchievedSalesPrice" => $v['AchievedSalesPrice'], #X erzielter Verkaufspreis - "TransactionType" => "Sale", #X die Vorgangsart Sale=Verkauf Exchange=Umtausch / Storno + "TransactionType" => 1, #X die Vorgangsart Sale=Verkauf Exchange=Umtausch / Storno "ReceiptNumber" => substr($order->getOrderId(), 3), #Die Belegnummer "DateOfSale" => $tA['orderdate'],#X das Verkaufsdatum mit Verkaufszeit - "PaymentMethod" => 'Invoice',#X "CreditCard", + "PaymentMethod" => 2,#X "CreditCard", "Currency" => 'EUR',#X "string", - "Unit" => "Piece",#X + "Unit" => 0,#X "DistributionChannel" => 5 ); }