Merge pull request '2815 - Fix ticket without state' (#598) from 2815-ticket_without_state into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #598
Reviewed-by: Carlos Jimenez Ruiz <carlosjr@verdnatura.es>
This commit is contained in:
Carlos Jimenez Ruiz 2021-04-08 11:56:00 +00:00
commit c846b6a170
1 changed files with 5 additions and 2 deletions

View File

@ -27,9 +27,12 @@ class Controller extends Section {
}
get ticketState() {
if (!this.ticket) return null;
const ticket = this.ticket;
if (!ticket) return null;
return this.ticket.ticketState.state.code;
const ticketState = ticket.ticketState;
return ticketState && ticketState.state.code;
}
getSaleTotal(sale) {