Prevent credit number from being enabled

This commit is contained in:
Hillel Coren 2017-09-08 17:04:10 +03:00
parent 7c140d1f0e
commit 8a8dc09e53

View File

@ -356,7 +356,7 @@ trait GeneratesNumbers
$this->reset_counter_date = $resetDate->format('Y-m-d');
$this->invoice_number_counter = 1;
$this->quote_number_counter = 1;
$this->credit_number_counter = 1;
$this->credit_number_counter = $this->credit_number_counter > 0 ? 1 : 0;
$this->save();
}
}