1
0
mirror of synced 2024-11-22 13:26:10 +03:00

Fix catalog purchasePrice

This commit is contained in:
Vlad 2021-11-02 11:23:42 +03:00 committed by GitHub
parent c3216f72d3
commit 380e1f0081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,9 +249,9 @@ class XmlOfferBuilder
* @param array $product
* @param bool|null $isLoadPrice
* @param string $purchasePriceNull
* @return int|null
* @return float|null
*/
private function getPurchasePrice(array $product, ?bool $isLoadPrice, string $purchasePriceNull): ?int
private function getPurchasePrice(array $product, ?bool $isLoadPrice, string $purchasePriceNull): ?float
{
if ($isLoadPrice) {
if ($product['CATALOG_PURCHASING_PRICE']) {