Taxa não entra no boleto gerado

Este tópico contém resposta, possui 1 voz e foi atualizado pela última vez por  Edilson 1 mês atrás.

  • Autor
    Posts
  • #11102

    Edilson
    Participante

    Olá Maurício, primeiramente, obrigado pelo módulo!

    Peciso de um ajuda, já que tentei muito e devo não estar acertando.

    Preciso acrescentar emostrar este acrescimo no boleto gerado, ou até mesmo na fatura no campo da descrição dos valos.

    Todas as configurações do módulo
    Array
    (
        [companyname] => SOUZAHOST
        [systemurl] => https://www.souzahost.com.br/financeiro/
        [langpaynow] => Pagar agora
        [admin] => 1
        [cancelbillet] => 
        [clientid] => Client_Id_e68bc9cf82dd2d26bf49865a25630873c4f62834
        [clientidsandbox] => Client_Id_0dbd9df60b13b6f1c67cfbb78681dfee2065a254
        [clientsecret] => Client_Secret_e81345198c50e2f7a495be337494db99c0ee66c8
        [clientsecretsandbox] => Client_Secret_e618a1a099de4030a27370ca710f8a7eb6d70aa9
        [convertto] => 
        [customfieldcnpj] => 
        [customfieldcpf] => 0
        [customfielddescontotipo] => 
        [customfielddescontovalor] => 
        [debugmode] => on
        [descontooutaxa] => 2
        [diasantesvencadddesconto] => 
        [diasparavencimento] => 
        [emailonerror] => 
        [exibedescontooutaxa] => 
        [fee] => 3.49
        [footer] => 
        [instruction1] => 
        [instruction2] => 
        [instruction3] => 
        [instruction4] => 
        [juros] => 0.33
        [message] => Sua conta foi ativada! Você tem 10 dias para pagar.
        [minimunamount] => 5
        [multa] => 3
        [name] => Boleto
        [paybutton] => 
        [redirecttobillet] => 
        [requirecnpjandcpf] => 
        [separator_1] => 
        [separator_2] => 
        [separator_3] => 
        [separator_4] => 
        [separator_5] => 
        [separator_6] => 
        [showbarcode] => 
        [showduedate] => 
        [testmode] => 
        [tipodescontooutaxa] => 2
        [type] => Invoices
        [valordescontooutaxa] => 3.49
        [visible] => on
        [paymentmethod] => gofasgerencianetboleto
        [whmcsVersion] => 7.6.1-release.1
        [invoiceid] => 17267
        [invoicenum] => 17267
        [amount] => 114.28
        [description] => SOUZAHOST - Fatura #17267
        [returnurl] => https://www.souzahost.com.br/financeiro/viewinvoice.php?id=17267
        [dueDate] => 2018-11-15 00:00:00
        [clientdetails] => Array
            (
                [userid] => 66
                [id] => 66
                [uuid] => 08a9669b-113d-4947-abb9-1a21ec8c724e
                [firstname] => Luiz
                [lastname] => Marcelo
                [fullname] => Luiz Marcelo
                [companyname] => 
                [email] => lumaoli@gmail.com
                [address1] => Maranguape II
                [address2] => Maranguape II
                [city] => Paulista
                [fullstate] => PE
                [state] => PE
                [postcode] => 53421412
                [countrycode] => BR
                [country] => BR
                [phonenumber] => 8198837966
                [password] => $2y$10$aiMNmvDQe.Ppbl6Dt57T/eb6V4wBduNFlk.FasnTBZXkpNXJn3I4e
                [model] => WHMCS\User\Client Object
                    (
                        [table:protected] => tblclients
                        [columnMap:protected] => Array
                            (
                                [passwordHash] => password
                                [twoFactorAuthModule] => authmodule
                                [twoFactorAuthData] => authdata
                                [currencyId] => currency
                                [defaultPaymentGateway] => defaultgateway
                                [overrideLateFee] => latefeeoveride
                                [overrideOverdueNotices] => overideduenotices
                                [disableAutomaticCreditCardProcessing] => disableautocc
                                [billingContactId] => billingcid
                                [securityQuestionId] => securityqid
                                [securityQuestionAnswer] => securityqans
                                [creditCardType] => cardtype
                                [creditCardLastFourDigits] => cardlastfour
                                [creditCardExpiryDate] => expdate
                                [storedBankNameCrypt] => bankname
                                [storedBankTypeCrypt] => banktype
                                [storedBankCodeCrypt] => bankcode
                                [storedBankAccountCrypt] => bankacct
                                [paymentGatewayToken] => gatewayid
                                [lastLoginDate] => lastlogin
                                [lastLoginIp] => ip
                                [lastLoginHostname] => host
                                [passwordResetKey] => pwresetkey
                                [passwordResetKeyRequestDate] => pwresetexpiry
                            )
    
                        [timestamps] => 1
                        [dates:protected] => Array
                            (
                                [0] => lastLoginDate
                                [1] => passwordResetKeyRequestDate
                            )
    
                        [booleans:protected] => Array
                            (
                                [0] => taxExempt
                                [1] => overrideLateFee
                                [2] => overrideOverdueNotices
                                [3] => separateInvoices
                                [4] => disableAutomaticCreditCardProcessing
                                [5] => emailOptOut
                                [6] => marketingEmailsOptIn
                                [7] => overrideAutoClose
                                [8] => emailVerified
                            )
    
                        [unique] => Array
                            (
                                [0] => email
                            )
    
                        [appends:protected] => Array
                            (
                                [0] => fullName
                                [1] => countryName
                            )
    
                        [fillable:protected] => Array
                            (
                                [0] => lastlogin
                                [1] => ip
                                [2] => host
                                [3] => pwresetkey
                                [4] => pwresetexpiry
                            )
    
                        [hidden:protected] => Array
                            (
                                [0] => password
                                [1] => authdata
                                [2] => securityqans
                                [3] => cardnum
                                [4] => startdate
                                [5] => expdate
                                [6] => issuenumber
                                [7] => bankname
                                [8] => banktype
                                [9] => bankcode
                                [10] => bankacct
                                [11] => pwresetkey
                                [12] => pwresetexpiry
                            )
    
                        [guardedForUpdate] => Array
                            (
                            )
    
                        [strings:protected] => Array
                            (
                            )
    
                        [ints:protected] => Array
                            (
                            )
    
                        [semanticVersions:protected] => Array
                            (
                            )
    
                        [commaSeparated:protected] => Array
                            (
                            )
    
                        [characterSeparated:protected] => Array
                            (
                            )
    
                        [rules:protected] => Array
                            (
                            )
    
                        [errors:protected] => 
                        [customValidationMessages:protected] => Array
                            (
                            )
    
                        [connection:protected] => 
                        [primaryKey:protected] => id
                        [perPage:protected] => 15
                        [incrementing] => 1
                        [attributes:protected] => Array
                            (
                                [id] => 66
                                [uuid] => 08a9669b-113d-4947-abb9-1a21ec8c724e
                                [firstname] => Luiz
                                [lastname] => Marcelo
                                [companyname] => 
                                [email] => lumaoli@gmail.com
                                [address1] => Maranguape II
                                [address2] => Maranguape II
                                [city] => Paulista
                                [state] => PE
                                [postcode] => 53421412
                                [country] => BR
                                [phonenumber] => +55.81 9883-7966
                                [password] => $2y$10$aiMNmvDQe.Ppbl6Dt57T/eb6V4wBduNFlk.FasnTBZXkpNXJn3I4e
                                [authmodule] => 
                                [authdata] => 
                                [currency] => 1
                                [defaultgateway] => 
                                [credit] => 0.00
                                [taxexempt] => 0
                                [latefeeoveride] => 0
                                [overideduenotices] => 0
                                [separateinvoices] => 0
                                [disableautocc] => 0
                                [datecreated] => 2018-11-05
                                [notes] => 
                                [billingcid] => 0
                                [securityqid] => 0
                                [securityqans] => BDKWahaxpkib3/vrDLAyCGM6SsQ=
                                [groupid] => 0
                                [cardtype] => 
                                [cardlastfour] => 
                                [cardnum] => 
                                [startdate] => 
                                [expdate] => 
                                [issuenumber] => 
                                [bankname] => 
                                [banktype] => 
                                [bankcode] => 
                                [bankacct] => 
                                [gatewayid] => 
                                [lastlogin] => 2018-11-05 16:04:54
                                [ip] => 170.79.170.98
                                [host] => 170.79.170.98
                                [status] => Active
                                [language] => 
                                [pwresetkey] => 
                                [emailoptout] => 1
                                [marketing_emails_opt_in] => 0
                                [overrideautoclose] => 0
                                [allow_sso] => 1
                                [email_verified] => 0
                                [created_at] => 0000-00-00 00:00:00
                                [updated_at] => 2018-11-05 16:04:54
                                [pwresetexpiry] => 0000-00-00 00:00:00
                            )
    
                        [original:protected] => Array
                            (
                                [id] => 66
                                [uuid] => 08a9669b-113d-4947-abb9-1a21ec8c724e
                                [firstname] => Luiz
                                [lastname] => Marcelo
                                [companyname] => 
                                [email] => lumaoli@gmail.com
                                [address1] => Maranguape II
                                [address2] => Maranguape II
                                [city] => Paulista
                                [state] => PE
                                [postcode] => 53421412
                                [country] => BR
                                [phonenumber] => +55.81 9883-7966
                                [password] => $2y$10$aiMNmvDQe.Ppbl6Dt57T/eb6V4wBduNFlk.FasnTBZXkpNXJn3I4e
                                [authmodule] => 
                                [authdata] => 
                                [currency] => 1
                                [defaultgateway] => 
                                [credit] => 0.00
                                [taxexempt] => 0
                                [latefeeoveride] => 0
                                [overideduenotices] => 0
                                [separateinvoices] => 0
                                [disableautocc] => 0
                                [datecreated] => 2018-11-05
                                [notes] => 
                                [billingcid] => 0
                                [securityqid] => 0
                                [securityqans] => BDKWahaxpkib3/vrDLAyCGM6SsQ=
                                [groupid] => 0
                                [cardtype] => 
                                [cardlastfour] => 
                                [cardnum] => 
                                [startdate] => 
                                [expdate] => 
                                [issuenumber] => 
                                [bankname] => 
                                [banktype] => 
                                [bankcode] => 
                                [bankacct] => 
                                [gatewayid] => 
                                [lastlogin] => 2018-11-05 16:04:54
                                [ip] => 170.79.170.98
                                [host] => 170.79.170.98
                                [status] => Active
                                [language] => 
                                [pwresetkey] => 
                                [emailoptout] => 1
                                [marketing_emails_opt_in] => 0
                                [overrideautoclose] => 0
                                [allow_sso] => 1
                                [email_verified] => 0
                                [created_at] => 0000-00-00 00:00:00
                                [updated_at] => 2018-11-05 16:04:54
                                [pwresetexpiry] => 0000-00-00 00:00:00
                            )
    
                        [relations:protected] => Array
                            (
                            )
    
                        [visible:protected] => Array
                            (
                            )
    
                        [guarded:protected] => Array
                            (
                                [0] => *
                            )
    
                        [dateFormat:protected] => 
                        [casts:protected] => Array
                            (
                            )
    
                        [touches:protected] => Array
                            (
                            )
    
                        [observables:protected] => Array
                            (
                            )
    
                        [with:protected] => Array
                            (
                            )
    
                        [morphClass:protected] => 
                        [exists] => 1
                        [wasRecentlyCreated] => 
                    )
    
                [statecode] => PE
                [countryname] => Brazil
                [phonecc] => 55
                [phonenumberformatted] => +55.8198837966
                [telephoneNumber] => +55.8198837966
                [billingcid] => 0
                [notes] => 
                [twofaenabled] => 
                [currency] => 1
                [defaultgateway] => 
                [cctype] => 
                [cclastfour] => 
                [gatewayid] => 
                [securityqid] => 0
                [securityqans] => 
                [groupid] => 0
                [status] => Active
                [credit] => 0.00
                [taxexempt] => 
                [latefeeoveride] => 
                [overideduenotices] => 
                [separateinvoices] => 
                [disableautocc] => 
                [emailoptout] => 1
                [marketing_emails_opt_in] => 
                [overrideautoclose] => 
                [allowSingleSignOn] => 1
                [language] => 
                [isOptedInToMarketingEmails] => 
                [lastlogin] => Date: 05/11/2018 16:04<br>IP Address: 170.79.170.98<br>Host: 170.79.170.98
                [customfields1] => 855.332.204-10
                [customfields] => Array
                    (
                        [0] => Array
                            (
                                [id] => 1
                                [value] => 855.332.204-10
                            )
    
                        [1] => Array
                            (
                                [id] => 2
                                [value] =>  Recomendação
                            )
    
                        [2] => Array
                            (
                                [id] => 3
                                [value] => 
                            )
    
                        [3] => Array
                            (
                                [id] => 4
                                [value] => 
                            )
    
                    )
    
                [customfields2] =>  Recomendação
                [customfields3] => 
                [customfields4] => 
            )
    
        [currency] => BRL
        [currencyId] => 1
    )
    
    Resultado da consulta por informações da fatura (API interna - WHMCS).
    Array
    (
        [result] => success
        [invoiceid] => 17267
        [invoicenum] => 
        [userid] => 66
        [date] => 2018-11-05
        [duedate] => 2018-11-15
        [datepaid] => 0000-00-00 00:00:00
        [lastcaptureattempt] => 0000-00-00 00:00:00
        [subtotal] => 114.28
        [credit] => 0.00
        [tax] => 0.00
        [tax2] => 0.00
        [total] => 114.28
        [balance] => 114.28
        [taxrate] => 0.00
        [taxrate2] => 0.00
        [status] => Unpaid
        [paymentmethod] => gofasgerencianetboleto
        [notes] => 
        [ccgateway] => 
        [items] => Array
            (
                [item] => Array
                    (
                        [0] => Array
                            (
                                [id] => 299
                                [type] => Hosting
                                [relid] => 110
                                [description] => Premium Host - gvssat.com (05/11/2018 - 04/12/2018)
                                [amount] => 7.49
                                [taxed] => 0
                            )
    
                        [1] => Array
                            (
                                [id] => 300
                                [type] => DomainRegister
                                [relid] => 16
                                [description] => Registro de domínio - gvssat.com - 1 Ano(s) (05/11/2018 - 04/11/2019)
                                [amount] => 49.80
                                [taxed] => 0
                            )
    
                        [2] => Array
                            (
                                [id] => 301
                                [type] => DomainRegister
                                [relid] => 15
                                [description] => Registro de domínio - gvssat.com.br - 1 Ano(s) (05/11/2018 - 04/11/2019)
                                [amount] => 56.99
                                [taxed] => 0
                            )
    
                    )
    
            )
    
        [transactions] => Array
            (
                [transaction] => Array
                    (
                        [0] => Array
                            (
                                [id] => 76
                                [userid] => 66
                                [currency] => 0
                                [gateway] => gofasgerencianetboleto
                                [date] => 2018-11-08 16:12:25
                                [description] => Boleto gerado aguardando pagamento.
                                [amountin] => 0.00
                                [fees] => 0.00
                                [amountout] => 0.00
                                [rate] => 1.00000
                                [transid] => ggnb_live_waiting-96597181
                                [invoiceid] => 17267
                                [refundid] => 0
                            )
    
                    )
    
            )
    
    )
    
    Transações registradas por esta fatura - API WHMCS.
    
    Transação existente: 96597181
    
    Configurações de juros e multa
    
    Array
    (
        [fine] => 300
        [interest] => 330
    )
    
    Multa de 3% equivale a fine = 300
    Juros de 0.33% equivale a interest = 330
    
    Produtos/serviços da fatura - API WHMCS.
    
    Itens com valor negativo:
    Array
    (
    )
    
    Itens da Fatura:
    
    Soma dos itens com valor negativo:
    $discount_item: 
    $whmcs_discount: 
    
    Desconto válido até:
    2018-11-15 | 0 dias antes do vencimento
    
    Cálculos.
    Hoje: 
    Vencimento: 
    Diferença entre datas:  dia(s)
    Multa: 
    Juros: 
    Valor original * 100: 0
    Total: 
    
    Dados do cliente - API WHMCS.
    stdClass Object
    (
        [id] => 66
        [uuid] => 08a9669b-113d-4947-abb9-1a21ec8c724e
        [firstname] => Luiz
        [lastname] => Marcelo
        [companyname] => 
        [email] => lumaoli@gmail.com
        [address1] => Maranguape II
        [address2] => Maranguape II
        [city] => Paulista
        [state] => PE
        [postcode] => 53421412
        [country] => BR
        [phonenumber] => +55.81 9883-7966
        [password] => $2y$10$aiMNmvDQe.Ppbl6Dt57T/eb6V4wBduNFlk.FasnTBZXkpNXJn3I4e
        [authmodule] => 
        [authdata] => 
        [currency] => 1
        [defaultgateway] => 
        [credit] => 0.00
        [taxexempt] => 0
        [latefeeoveride] => 0
        [overideduenotices] => 0
        [separateinvoices] => 0
        [disableautocc] => 0
        [datecreated] => 2018-11-05
        [notes] => 
        [billingcid] => 0
        [securityqid] => 0
        [securityqans] => BDKWahaxpkib3/vrDLAyCGM6SsQ=
        [groupid] => 0
        [cardtype] => 
        [cardlastfour] => 
        [cardnum] => 
        [startdate] => 
        [expdate] => 
        [issuenumber] => 
        [bankname] => 
        [banktype] => 
        [bankcode] => 
        [bankacct] => 
        [gatewayid] => 
        [lastlogin] => 2018-11-05 16:04:54
        [ip] => 170.79.170.98
        [host] => 170.79.170.98
        [status] => Active
        [language] => 
        [pwresetkey] => 
        [emailoptout] => 1
        [marketing_emails_opt_in] => 0
        [overrideautoclose] => 0
        [allow_sso] => 1
        [email_verified] => 0
        [created_at] => 0000-00-00 00:00:00
        [updated_at] => 2018-11-05 16:04:54
        [pwresetexpiry] => 0000-00-00 00:00:00
    )
    
    Dados do cliente enviados à GN API
    cpf: 85533000000
    cnpj: 
    $customer: Array
    (
        [name] => Luiz Marcelo
        [cpf] => 85533000000
        [phone_number] => 8198837966
    )
    
    $juridical_data:
    
    Boletos gerados por esta fatura - API Gerencianet.
    Essa fatura já gerou um boleto.
    Array
    (
        [code] => 200
        [data] => Array
            (
                [charge_id] => 96597181
                [total] => 11428
                [status] => waiting
                [custom_id] => 17267
                [created_at] => 2018-11-08 14:12:25
                [notification_url] => https://www.souzahost.com.br/financeiro//modules/gateways/gofasgerencianetboleto/callback.php
                [items] => Array
                    (
                        [0] => Array
                            (
                                [name] => Premium Host - gvssat.com (05/11/2018 - 04/12/2018)
                                [value] => 749
                                [amount] => 1
                            )
    
                        [1] => Array
                            (
                                [name] => Registro de domínio - gvssat.com - 1 Ano(s) (05/11/2018 - 04/11/2019)
                                [value] => 4980
                                [amount] => 1
                            )
    
                        [2] => Array
                            (
                                [name] => Registro de domínio - gvssat.com.br - 1 Ano(s) (05/11/2018 - 04/11/2019)
                                [value] => 5699
                                [amount] => 1
                            )
    
                    )
    
                [history] => Array
                    (
                        [0] => Array
                            (
                                [message] => Cobrança criada
                                [created_at] => 2018-11-08 14:12:25
                            )
    
                        [1] => Array
                            (
                                [message] => Pagamento via boleto aguardando confirmação
                                [created_at] => 2018-11-08 14:12:25
                            )
    
                        [2] => Array
                            (
                                [message] => Cliente visualizou esse boleto bancário
                                [created_at] => 2018-11-08 14:12:51
                            )
    
                    )
    
                [customer] => Array
                    (
                        [name] => Luiz Marcelo
                        [cpf] => 85533000000
                        [phone_number] => 8198837966
                    )
    
                [payment] => Array
                    (
                        [method] => banking_billet
                        [created_at] => 2018-11-08 14:12:25
                        [message] => Sua conta foi ativada! Você tem 10 dias para pagar.
                        [banking_billet] => Array
                            (
                                [barcode] => 03399.32766 55400.013136 95568.701015 2 77090000011428
                                [link] => https://visualizacao.gerencianet.com.br/emissao/183970_5_DRAMA6/A4XB-183970-131395568-HISI8
                                [pdf] => Array
                                    (
                                        [charge] => https://download.gerencianet.com.br/183970_5_DRAMA6/183970-131395568-HISI8.pdf
                                    )
    
                                [expire_at] => 2018-11-15
                                [configurations] => Array
                                    (
                                        [interest] => 330
                                        [fine] => 300
                                    )
    
                            )
    
                    )
    
            )
    
    )
    
    status: waiting

Você deve fazer login para responder a este tópico.