Skip to content

Commit 76e0871

Browse files
committed
Cast to int article.quantity
1 parent 12baa66 commit 76e0871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/lib/Aplazame/Aplazame/BusinessModel/Article.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function createFromOrderItemProduct( WC_Order_Item_Product $item_p
5050
$aArticle->sku = $product->get_sku();
5151
$aArticle->name = $product->get_title();
5252
$aArticle->url = $product->get_permalink();
53-
$aArticle->quantity = $item_product->get_quantity();
53+
$aArticle->quantity = (int) $item_product->get_quantity();
5454
$aArticle->price = Aplazame_Sdk_Serializer_Decimal::fromFloat( $item_product->get_total() / $item_product->get_quantity() );
5555
$aArticle->tax_rate = Aplazame_Sdk_Serializer_Decimal::fromFloat( $tax_rate );
5656

0 commit comments

Comments
 (0)