bhima
bhima copied to clipboard
Fix getAMC integration:stock test
The test test/integration-stock/depots.js
on line 78 that is failing because the getAMC() function does not seem to be handling the leap year correctly, because of February 29.
The calculation for the test assumes 10 days, but getAMC() apparently only uses 9, so the check values in the test are incorrect.
Fix this test and also figure out of the SQL getAMC()
function needs fixing.