Rev 106 | Rev 144 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 106 | Rev 140 | ||
|---|---|---|---|
| Line 29... | Line 29... | ||
| 29 | private static final long serialVersionUID = 1L; |
29 | private static final long serialVersionUID = 1L; |
| 30 | 30 | ||
| 31 | private Long sequencial; |
31 | private Long sequencial; |
| 32 | private Pessoa pessoa; |
32 | private Pessoa pessoa; |
| 33 | private Boolean emiteNotaFiscal; |
33 | private Boolean emiteNotaFiscal; |
| - | 34 | private Boolean sujeitoST; |
|
| 34 | private Boolean ativo; |
35 | private Boolean ativo; |
| 35 | 36 | ||
| 36 | public Fornecedor() { |
37 | public Fornecedor() { |
| 37 | setEmiteNotaFiscal(false); |
38 | setEmiteNotaFiscal(false); |
| 38 | setAtivo(true); |
39 | setAtivo(true); |
| Line 65... | Line 66... | ||
| 65 | public Boolean getEmiteNotaFiscal() { |
66 | public Boolean getEmiteNotaFiscal() { |
| 66 | return emiteNotaFiscal; |
67 | return emiteNotaFiscal; |
| 67 | }
|
68 | }
|
| 68 | public void setEmiteNotaFiscal(Boolean emiteNotaFiscal) { |
69 | public void setEmiteNotaFiscal(Boolean emiteNotaFiscal) { |
| 69 | this.emiteNotaFiscal = emiteNotaFiscal; |
70 | this.emiteNotaFiscal = emiteNotaFiscal; |
| - | 71 | }
|
|
| - | 72 | ||
| - | 73 | @Column(name="ind_sujeito_st", nullable=false) |
|
| - | 74 | @NotNull(message="Obrigatório informar a indicação de substituição tributária", groups={Cadastrar.class, Alterar.class}) |
|
| - | 75 | public Boolean getSujeitoST() { |
|
| - | 76 | if (VerificadorUtil.estaNulo(sujeitoST)) { |
|
| - | 77 | return false; |
|
| - | 78 | }
|
|
| - | 79 | return sujeitoST; |
|
| - | 80 | }
|
|
| - | 81 | public void setSujeitoST(Boolean sujeitoST) { |
|
| - | 82 | this.sujeitoST = sujeitoST; |
|
| 70 | }
|
83 | }
|
| 71 | 84 | ||
| 72 | @Column(name="ind_ativo", nullable=false) |
85 | @Column(name="ind_ativo", nullable=false) |
| 73 | @NotNull(message="Obrigatório informar a indicação de ativo", groups={Cadastrar.class, Alterar.class}) |
86 | @NotNull(message="Obrigatório informar a indicação de ativo", groups={Cadastrar.class, Alterar.class}) |
| 74 | public Boolean getAtivo() { |
87 | public Boolean getAtivo() { |