コード例 #1
0
 private static Proposals GenerateProposal(CrmBEPropostaOPV proposalInfo, List <ProposalsLine> lines)
 {
     return(new Proposals()
     {
         ProposalNumber = proposalInfo.get_NumProposta(),
         Description = proposalInfo.get_Descricao(),
         PaymentMethod = proposalInfo.get_ModoPagamento(),
         PaymentCondition = proposalInfo.get_CondPagamento(),
         Cost = proposalInfo.get_Custo(),
         Value = proposalInfo.get_Valor(),
         DiscountValue = proposalInfo.get_ValorDesconto(),
         Observations = proposalInfo.get_Observacoes(),
         Margin = proposalInfo.get_Margem(),
         EntityDiscount = proposalInfo.get_DescontoEntidade(),
         Rentability = proposalInfo.get_Rentabilidade(),
         ProposalsLines = lines,
         Totalize = proposalInfo.get_NaoTotalizadora()
     });
 }