mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Only set invoice public notes from client if value is set
This commit is contained in:
parent
943c658e00
commit
41923a2e8b
@ -14,7 +14,9 @@ function ViewModel(data) {
|
||||
@if (!$invoice->id)
|
||||
self.setDueDate();
|
||||
// copy default note from the client to the invoice
|
||||
model.invoice().public_notes(client.public_notes);
|
||||
if (client.public_notes) {
|
||||
model.invoice().public_notes(client.public_notes);
|
||||
}
|
||||
@endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user