Jauges bug

This commit is contained in:
2026-05-17 18:28:39 +02:00
parent 62941a5c3b
commit 3a31cc354a
2 changed files with 6 additions and 20 deletions

View File

@@ -2770,18 +2770,12 @@ class PurchaseTradeTestCase(ModuleTestCase):
matching_lot.lot_theoretical_qt = Decimal('100')
matching_lot.lot_already_matched_qt = Decimal('40')
matching_lot.lot_matched_qt = Decimal('65')
matching_lot.lot_tol_min = Decimal('5')
matching_lot.lot_tol_max = Decimal('10')
matching_lot.lot_tolerance_min = Decimal('-5')
matching_lot.lot_tolerance_max = Decimal('10')
self.assertEqual(
matching_lot.on_change_with_lot_tolerance_used(),
Decimal('5.00000'))
self.assertEqual(
matching_lot.on_change_with_lot_tolerance_min(),
Decimal('-5'))
self.assertEqual(
matching_lot.on_change_with_lot_tolerance_max(),
Decimal('10'))
def test_go_matching_defaults_selected_open_lot_qts(self):
'go to matching only preloads selected unmatched open lot.qt rows'