1
0
mirror of synced 2025-01-18 08:51:41 +03:00

Merge pull request #113 from Frosin/master

Исправлен баг с некорректной передачей дробного количества
This commit is contained in:
Alex Lushpai 2019-09-18 16:50:15 +03:00 committed by GitHub
commit af86ba2821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
'offer' => array(),
'productName' => '',
'initialPrice' => 0.00,
'quantity' => 0
'quantity' => 0.00
);
/**
@ -53,7 +53,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
$data['productName'] = $item['name'];
$data['initialPrice'] = (float)$price;
$data['quantity'] = $item['qty'];
$data['quantity'] = (double)$item['qty'];
$this->set_data_fields($data);
$this->set_offer($item);
@ -126,7 +126,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
'offer' => array(),
'productName' => '',
'initialPrice' => 0.00,
'quantity' => 0
'quantity' => 0.00
);
}
}