[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



lsmb 1.5.6.

In the Goods and Services search there is a radio button for onhand 
searching. I would expect it to mean "find products with something in 
stock, i.e. onhand > 0. But pushing it returns an empty list, and 
looking into the goods__search function definition in 
sql/modules/Goods.sql there's no reference to the onhand parameter.

If my expectations are correct, I think there's a missing line in the 
in_status check, something like

OR (in_status = 'onhand' and p.onhand > 0)

At least that produces the list I expected.


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Ledger-smb-devel mailing list