Demurrage

This commit is contained in:
2026-06-04 09:41:08 +02:00
parent 0efa60f3b5
commit e9bd6ff57f
2 changed files with 5 additions and 0 deletions

View File

@@ -405,6 +405,7 @@ RATE_BASIS = [
(None, ''),
('per_day', 'Per Day'),
('per_hour', 'Per Hour'),
('mt_per_hour', 'MT/hour'),
('per_mt', 'Per MT'),
('per_wmt', 'Per WMT'),
('per_dmt', 'Per DMT'),

View File

@@ -152,6 +152,10 @@ class PurchaseTradeTestCase(ModuleTestCase):
self.assertEqual(rate.basis, 'per_day')
def test_charter_condition_rate_basis_includes_pumping_unit(self):
'charter condition rates expose a clear pumping throughput unit'
self.assertIn(('mt_per_hour', 'MT/hour'), stock_module.RATE_BASIS)
@with_transaction()
def test_charter_condition_role_defaults_from_context(self):
'charter condition role defaults to the business source context'