Fix response for vat ex price . #636

This commit is contained in:
Korina Cordero 2021-10-28 02:10:59 +00:00
parent 0fe66f4719
commit b14007e276

View file

@ -1158,7 +1158,7 @@ class APIController extends Controller implements LoggedController
// make invoice json data
$invoice_data = [
'total_price' => $invoice->getTotalPrice(),
'vat_ex_price' => $invoice->getVATExclusivePrice(),
'vat_ex_price' => (float) $invoice->getVATExclusivePrice(),
'vat' => $invoice->getVAT(),
'discount' => $invoice->getDiscount(),
'trade_in' => $invoice->getTradeIn(),
@ -3073,7 +3073,7 @@ class APIController extends Controller implements LoggedController
// make invoice json data
$invoice_data = [
'total_price' => $invoice->getTotalPrice(),
'vat_ex_price' => $invoice->getVATExclusivePrice(),
'vat_ex_price' => (float) $invoice->getVATExclusivePrice(),
'vat' => $invoice->getVAT(),
'discount' => $invoice->getDiscount(),
'trade_in' => $invoice->getTradeIn(),