Pos Payments Only For Super User

0

Hi,

I'm facing a problem with POS payments
When create a user with any permissions we can't place a payments and receiving error message

500 Internal server error
Call to member function payments() on null

Please advice

Thanks

Question Resolved For: eCommerce Module for Modern POS Solution 0 Votes 7 Answers 1.4k Views
Asked by Khaled Dafar 2 years ago

0

Answered by Mian Saleem 2 years ago

Hello,

I didn't understand. Does the user have permission to add payment?

Let me know so that I can check and suggest.

Thank you

0

Answered by Khaled Dafar 2 years ago

Hi,

Please check attached images for user permissions

Thanks

0

Answered by Khaled Dafar 2 years ago

Hi,

Would you please reply

Thanks

0

Answered by Mian Saleem 2 years ago

Thank you for the screenshots. I will fix this in coming update.

0

Answered by Khaled Dafar 2 years ago

When updates will be out ?

0

Answered by Khaled Dafar 2 years ago

Hi,

In which place we have to modify to make it work

Thanks

0

Answered by Mian Saleem 2 years ago

Hello,

The update will be this week.

I am not sure if that is only 1 place but you can edit modules/MPS/Models/Traits/BelongsToCustomer.php and replace the line 11 with

return $this->belongsTo(Customer::class)->withoutGlobalScope('mine');

Thank you

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.