Last active
May 29, 2020 12:49
-
-
Save TheoOliveira/3eca291caf173ee173b971c8d0179d22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public with sharing class Compra2 { | |
| public ClienteFloricultura2 Cliente = new ClienteFloricultura2(); | |
| public List<ItemCompra2> Itens = new List<ItemCompra2>(); | |
| public Id CompraId{get; set;} | |
| private Date DataCompra {get; set;} | |
| private String StatusCompra {get; set;} | |
| private Double TicketMedio {get; set;} | |
| private Double ValorTotalCompras {get; set;} | |
| public Compra2(Date dataCompra, ClienteFloricultura2 cliente, List<ItemCompra2> itens){ | |
| DataCompra = dataCompra; | |
| Cliente = cliente; | |
| Itens = itens; | |
| } | |
| public List<ItemCompra2> getItemCompra(){ | |
| return this.Itens = Itens; | |
| } | |
| public void setItemCompra(List<ItemCompra2> itensCompra){ | |
| this.Itens = itensCompra; | |
| if (itensCompra != null) { | |
| for (Integer i = 0; i < itensCompra.size(); i++) { | |
| } | |
| } | |
| } | |
| public Date getDataCompra() { | |
| return this.dataCompra; | |
| } | |
| public void setDataCompra(Date dataCompra){ | |
| this.dataCompra = DataCompra; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment