Skip to main content

Billing Agreement Term

Billing::AgreementTerm is the model we use to represent all value. For sync, Billing::AgreementTerm will be generated immediately after Billing::Agreement is created. one Billing::Agreement could have many Billing::AgreementTerm, but for migration it will only have GIG AgreementTerm

Billing Agreement Term

Billing:: AgreementJodGig::Company (or other source)
idPK, increment
billing_agreement_idfrom created Billing::Agreement
billing_entitlement_id
term_keyhardcode to "gig_fee_rate" since this is from JodGig
term_valueJodGig::Company.contract_service_margin
term_unithardcode to "bps" (100bps = 1percent)
admin_created_byset to System's identities_admins id
admin_updated_byset to System's identities_admins id
created_attimestamp
updated_attimestamp