webERP Forum
Supplier credit note not working - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8)
+--- Thread: Supplier credit note not working (/showthread.php?tid=8436)

Pages: 1 2


Supplier credit note not working - srdjanm - 04-27-2021

webERP 4.15.1
In "Supplier credit note" there is an option to credit against "Purchase Order" , SuppCreditGRNs.php
In this screen, there is a list of GRN to credit. When "Add to Credit Note" is pressed nothing happen, just a title screen from SuppCreditGRNs.php file.
Is there any option in "System Parameters" that control this, or ...?
Thank you
Srdjan


RE: Supplier credit note not working - TurboPT - 04-28-2021

I'll have to check, but is there any error in your server error log?


RE: Supplier credit note not working - TimSchofield - 04-28-2021

(04-27-2021, 11:46 PM)srdjanm Wrote: webERP 4.15.1
In "Supplier credit note" there is an option to credit against "Purchase Order" , SuppCreditGRNs.php
In this screen, there is a list of GRN to credit. When "Add to Credit Note" is pressed nothing happen, just a title screen from SuppCreditGRNs.php file.
Is there any option in "System Parameters" that control this, or ...?
Thank you
Srdjan
Did you add in the quantity to be credited (see screenshot below)? It defaults to zero (do people think this is correct?) and if no quantity is entered nothing happens.

Tim

[attachment=1050]


RE: Supplier credit note not working - srdjanm - 04-29-2021

(04-28-2021, 01:24 PM)TurboPT Wrote: I'll have to check, but is there any error in your server error log?
I tested on my local server, same problem and there is an error:
[Wed Apr 28 13:44:13.945317 2021] [php7:error] [pid 1579] [client 127.0.0.1:40576] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function SuppTrans::Add_GRN_To_Trans(), 19 passed in /var/www/html/webERP-4.15.1/SuppCreditGRNs.php on line 72 and exactly 20 expected in /var/www/html/webERP-4.15.1/includes/DefineSuppTransClass.php:88\nStack trace:\n#0 /var/www/html/webERP-4.15.1/SuppCreditGRNs.php(72): SuppTrans->Add_GRN_To_Trans('2237', '2402', 'BLACK-SPR-OR', 'Black Spruce Oi...', '18', '18', '18.00', '136', '136.00', false, '130', '0', '0', '1420', '1503', '0', 0, '2', '1472')\n#1 {main}\n  thrown in /var/www/html/webERP-4.15.1/includes/DefineSuppTransClass.php on line 88, referer: http://localhost/webERP-4.15.1/SuppCreditGRNs.php


RE: Supplier credit note not working - srdjanm - 04-29-2021

(04-28-2021, 06:58 PM)falkoner Wrote:
(04-27-2021, 11:46 PM)srdjanm Wrote: webERP 4.15.1
In "Supplier credit note" there is an option to credit against "Purchase Order" , SuppCreditGRNs.php
In this screen, there is a list of GRN to credit. When "Add to Credit Note" is pressed nothing happen, just a title screen from SuppCreditGRNs.php file.
Is there any option in "System Parameters" that control this, or ...?
Thank you
Srdjan
Did you add in the quantity to be credited (see screenshot below)? It defaults to zero (do people think this is correct?) and if no quantity is entered nothing happens.

Tim

Yes, I added the quantity to credit, Same problem in two different environment, On my local, test server and on production, hosting environment
Thank you
Srdjan



RE: Supplier credit note not working - TurboPT - 04-29-2021

Thanks for the error info @srdjanm, I see that there is one parameter short, looking into what should be supplied for the value for that area.


RE: Supplier credit note not working - TurboPT - 05-02-2021

In file SuppCreditGRNs.php on line 72:

Change:
PHP Code:
$_POST['GRNBatchNo']); 

To:
PHP Code:
$_POST['GRNBatchNo'],
$_SESSION['SuppTrans']->SupplierID); 

To use the SupplierID as the last parameter.


RE: Supplier credit note not working - TimSchofield - 05-03-2021

Paul, have you committed this fix?

Tim


RE: Supplier credit note not working - TurboPT - 05-04-2021

Tim, not yet, I was hoping to get some feedback first, but I'll do so tomorrow either way.

I decided to go ahead and commit, but it looks like the exact same change that I posted has already been applied? (glad to see that I had the same idea)
See this commit.


RE: Supplier credit note not working - TimSchofield - 05-04-2021

Thanks Paul I hadn't checked to see if it was already committed

Tim