Resolve "Resq 1.5 changes" #1556

Merged
korina.cordero merged 30 commits from 632-resq-1-5-changes into master-fix 2021-12-03 05:54:22 +00:00
Showing only changes of commit f7def95cdd - Show all commits

View file

@ -1161,7 +1161,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(),
@ -3087,7 +3087,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(),