Demurrage
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user