intuit / QuickBooks-V3-PHP-SDK

Official PHP SDK for QuickBooks REST API v3.0: https://developer.intuit.com/
Apache License 2.0
241 stars 240 forks source link

Void On BillPayment is not working #479

Open shoaibsharif opened 1 year ago

shoaibsharif commented 1 year ago

Currently, when I am trying to void a BillPayment I keep getting Unknow Operation error:

$bill_payment= $dataService->FindById('BillPayment', 1);
$dataService->Void($bill_payment);

I found out that it is not getting the correct query params on DataService.php:

https://github.com/intuit/QuickBooks-V3-PHP-SDK/blob/20ce804a7e643d91b0a8f115e969bf6a0713f64e/src/DataService/DataService.php#L862-L866

and CoreConstant.php

https://github.com/intuit/QuickBooks-V3-PHP-SDK/blob/20ce804a7e643d91b0a8f115e969bf6a0713f64e/src/DataService/DataService.php#L862

I have made a pull request #478 where it fixes the issue.