mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Set default invoice values
This commit is contained in:
parent
cf458c52a2
commit
c6c9a34c04
@ -304,11 +304,13 @@ class Account extends Eloquent
|
|||||||
{
|
{
|
||||||
$invoice = Invoice::createNew();
|
$invoice = Invoice::createNew();
|
||||||
|
|
||||||
|
$invoice->is_recurring = false;
|
||||||
|
$invoice->is_quote = false;
|
||||||
$invoice->invoice_date = Utils::today();
|
$invoice->invoice_date = Utils::today();
|
||||||
$invoice->start_date = Utils::today();
|
$invoice->start_date = Utils::today();
|
||||||
$invoice->invoice_design_id = $this->invoice_design_id;
|
$invoice->invoice_design_id = $this->invoice_design_id;
|
||||||
$invoice->client_id = $clientId;
|
$invoice->client_id = $clientId;
|
||||||
|
|
||||||
if ($entityType === ENTITY_RECURRING_INVOICE) {
|
if ($entityType === ENTITY_RECURRING_INVOICE) {
|
||||||
$invoice->invoice_number = microtime(true);
|
$invoice->invoice_number = microtime(true);
|
||||||
$invoice->is_recurring = true;
|
$invoice->is_recurring = true;
|
||||||
|
@ -27,6 +27,8 @@ class OnlinePaymentCest
|
|||||||
|
|
||||||
$userAccount = $userAccounts[0];
|
$userAccount = $userAccounts[0];
|
||||||
$this->token = $userAccount->token;
|
$this->token = $userAccount->token;
|
||||||
|
|
||||||
|
Debug::debug("Token: {$this->token}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testAPI(AcceptanceTester $I)
|
public function testAPI(AcceptanceTester $I)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user