Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Void On BillPayment is not working #479

Open
shoaibsharif opened this issue Mar 23, 2023 · 0 comments
Open

Void On BillPayment is not working #479

shoaibsharif opened this issue Mar 23, 2023 · 0 comments

Comments

@shoaibsharif
Copy link

shoaibsharif commented Mar 23, 2023

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:

if(in_array($className, CoreConstants::PAYMENTCLASSNAME)) {
$appendString = CoreConstants::VOID_QUERYPARAMETER_PAYMENT;
} else{
$appendString = CoreConstants::VOID_QUERYPARAMETER_GENERAL;
}

and CoreConstant.php

if(in_array($className, CoreConstants::PAYMENTCLASSNAME)) {

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant