Ejemplo n.º 1
0
        public NFe CalculateWithhold(decimal invoiceValue, decimal IR, decimal PIS, decimal COFINS, decimal CSLL)
        {
            var csll   = new CSLLService(CSLL);
            var cofins = new COFINSService(COFINS);
            var ir     = new IRService(IR);
            var pis    = new PISService(PIS);

            NFe nfe = new NFe(cofins, csll, ir, pis);

            nfe.invoiceValue = invoiceValue;

            return(InternalCalculate(nfe));
        }
Ejemplo n.º 2
0
 public AaController(IRService rService)
 {
     this.rService = rService;
 }
Ejemplo n.º 3
0
 public RController(IRService rService)
 {
     _rService = rService;
 }
Ejemplo n.º 4
0
 public PValueController(IRService rService)
 {
     _rService = rService;
 }