sukhvir007 / tracmor

Automatically exported from code.google.com/p/tracmor
GNU General Public License v2.0
0 stars 0 forks source link

Ajax error comes if no quantity is entered during restock inventory #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Login to Tracmor .
2. Click on invebtory - restock inventory.
3. select the value for Restock to.
4. Enter a valid inventory code and click on Add button.
5. Click Save

What is the expected output? What do you see instead?
It should prompt a message that Quantity is blank or we should enter value 
either 0 or greater than zero.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by anurodh....@gmail.com on 10 Aug 2010 at 6:21

GoogleCodeExporter commented 8 years ago
The following error message comes in a new popup window if no quantity is
entered during restock inventory. This bug exists in original application : 

MySqli Error: Column 'quantity' cannot be null
Exception Type:   QMySqliDatabaseException 

Source File:  
/var/www/html/includes/data_classes/InventoryTransaction.class.php     Line:  
123 

Line 123:                       parent::Save($blnForceInsert, $blnForceUpdate);

Call Stack:

#0
/var/www/html/includes/data_classes/generated/InventoryTransactionGen.class.php(
648):
QMySqliDatabase->NonQuery('???????INSERT I...')
#1 /var/www/html/includes/data_classes/InventoryTransaction.class.php(123):
InventoryTransactionGen->Save(false, false)
#2
/var/www/html/includes/qcodo/qform/QInventoryTransactComposite.class.php(548):
InventoryTransaction->Save()
#3 /var/www/html/includes/qcodo/_core/qform/QFormBase.class.php(655):
QInventoryTransactComposite->btnSave_Click('InventoryModelE...', 'c49', '')
#4 /var/www/html/includes/qcodo/_core/qform/QFormBase.class.php(774):
QFormBase->TriggerMethod('c49', 'c42:btnSave_Cli...')
#5 /var/www/html/includes/qcodo/_core/qform/QFormBase.class.php(242):
QFormBase->TriggerActions()
#6 /var/www/html/inventory/inventory_edit.php(305):
QFormBase::Run('InventoryModelE...', 'inventory_edit....')
#7 {main}

Original comment by anurodh....@gmail.com on 10 Aug 2010 at 6:22