"""Label Contract.""" from accounting.models.base_model import BaseModel class LabelContract(BaseModel): """Label Contract data model.""" fields = { 'id': 0, 'digital_split': 0.7, 'advance_recoupable_percentage': 1.0, 'oms_deal_type': 'none', 'ringtone_publishing_type': 'none', 'physical_track_publishing_type': 'none', 'oms_fees': 0.15, 'first_contract': True, 'payment_interval': 'quarter', 'apply_fx_spread': False, 'currency_id': 1, 'release_dig_threshold': 10, 'release_phy_threshold': 250, 'label_dig_threshold': 50, 'label_phy_threshold': 1000, 'artist_dig_threshold': 50, 'artist_phy_threshold': 1000, 'dms_split': '', 'dms_master_split': '', 'territory_split': '', 'transaction_territory_split': '', 'transaction_type_split': '' } int_fields = ['id', 'currency_id'] float_fields = [ 'digital_split', 'advance_recoupable_percentage', 'oms_fees', 'release_dig_threshold', 'release_phy_threshold', 'label_dig_threshold', 'label_phy_threshold', 'artist_dig_threshold', 'artist_phy_threshold'] boolean_fields = [ 'first_contract', 'apply_fx_spread'] required_fields = []