Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enter Customer Receipt: crash when deleting from batch
09-29-2023, 05:11 AM,
#1
Enter Customer Receipt: crash when deleting from batch
Hello All,

Issue: deleting receipt entry blocks the page (and all receipts stored in the session are lost Angry )

Step to reproduce issue:

main Menu > Receivables > Enter Receipt

Add a few receipts to the batch and try to delete one : webERP is blocked after rendering the header

the line causing it in CustomerReceipt.php is 
Code:
/* User hit delete the receipt entry from the batch */

$_SESSION['ReceiptBatch' . $identifier]->remove_receipt_item($_GET['Delete']);

the function remove_receipt_item is in DefineReceiptClass.php and attempts to unset an element from an array in an object (and recalculates the entries total). Which seems to make sense, but doesn't work.


webERP 4.14, php 7.0

Thank you for your input


Attached Files Thumbnail(s)
   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)