= 2; $co_contract = $co_can_bill ? clientOnboardingContract($client_id, $co_row) : null; $co_contract_recurring = $co_contract ? contractRecurringRow($co_contract) : null; $co_offer_recurring = $co_contract && !$co_contract_recurring && (contractRecurringShouldRun($co_contract) || $co_contract['contract_status'] === 'Draft'); ?>
'- Nobody in particular -'] + $co_billing_people, ['id' => 'coBillingContact', 'icon' => 'fa-user-tag', 'label' => 'Invoices go to', 'help' => 'Marked as their billing contact - invoices, quotes and statements go to them.']) ?>
Nobody yet - add their people on People.
'coTaxId', 'icon' => 'fa-balance-scale', 'label' => 'Tax ID', 'maxlength' => 255, 'placeholder' => 'Their tax number, for invoices']) ?>
'coReminders', 'label' => 'Payment reminders and statements', 'help' => 'Emailed as set in Admin > Settings > Invoice. Off, they get neither - invoices can still be sent by hand.']) ?>

The agreement's recurring invoice

There's no agreement to bill yet - start one on Agreement, or add a recurring invoice on the client's Recurring Invoices.

bills - .

has ended, so it isn't billed - renew it from its page first.

'coRecurring', 'label' => 'Bill ' . $co_contract['contract_name'] . ' with a recurring invoice', 'data' => ['gs-reveal' => 'coRecurringFields'], 'help' => $co_contract['contract_status'] === 'Draft' ? 'It is paused until the contract is countersigned and active, and paused again once it ends.' : 'It runs while the contract is active, and is paused once it ends.']) ?>
'coAmount', 'icon' => 'fa-dollar-sign', 'label' => 'Amount each time', 'inputmode' => 'decimal', 'placeholder' => '1,500.00']) ?>
'coFrequency', 'icon' => 'fa-sync-alt', 'label' => 'How often']) ?>
'coFirst', 'icon' => 'fa-calendar-day', 'type' => 'date', 'label' => 'First invoice', 'max' => '2999-12-31']) ?>
'coCategory', 'icon' => 'fa-tag', 'label' => 'Category', 'options_html' => '' . categoryOptionsHtml('Income', settingsValue('category', '0'))]) ?>
'coItemName', 'icon' => 'fa-cube', 'label' => 'Line', 'maxlength' => 200]) ?>
'coItemDescription', 'icon' => 'fa-align-left', 'label' => 'Description', 'maxlength' => 1000, 'help' => '{month}, {quarter}, {year} and {period} become the dates each invoice covers.']) ?>
'coItemTax', 'icon' => 'fa-percent', 'label' => 'Tax', 'options_html' => taxOptionsHtml(billingTaxes(), intval(settingsValue('tax_id', taxDefaultFor($client_id, 'goods'))))]) ?>
'coAutoSend', 'label' => 'Email each invoice by itself']) ?>