Package org.brerp.sped.nfe.model
Class MCOFRPS
java.lang.Object
org.compiere.model.PO
org.brerp.sped.nfe.model.X_COF_RPS
org.brerp.sped.nfe.model.MCOFRPS
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_COF_RPS
,I_Persistent
,DocAction
,DocOptions
,Evaluatee
Header do RPS
- Version:
- $Id: MCOFRPS.java, 2018/03/27 10:58:12 muriloht
- Author:
- Murilo H. Torquato (devCoffee, www.devcoffee.com.br), muriloht
- See Also:
-
Field Summary
Fields inherited from class org.brerp.sped.nfe.model.X_COF_RPS
COF_DEDUCAOPOR_Percentual, COF_DEDUCAOPOR_Valor, COF_EXIGIBILIDADEISS_1_Exigível, COF_EXIGIBILIDADEISS_2_NãoIncidência, COF_EXIGIBILIDADEISS_3_Isenção, COF_EXIGIBILIDADEISS_4_Exportação, COF_EXIGIBILIDADEISS_5_Imunidade, COF_EXIGIBILIDADEISS_6_ExigibilidadeSuspensaPorDecisãoJudicial, COF_EXIGIBILIDADEISS_7_ExigibilidadeSuspensaPorProcessoAdministrativo, COF_INCENTIVADORCULTURAL_AD_Reference_ID, COF_INCENTIVADORCULTURAL_No, COF_INCENTIVADORCULTURAL_Yes, COF_INCENTIVOFISCAL_AD_Reference_ID, COF_INCENTIVOFISCAL_No, COF_INCENTIVOFISCAL_Yes, COF_ISSRETIDO_AD_Reference_ID, COF_ISSRETIDO_No, COF_ISSRETIDO_Yes, COF_NATUREZATRIBUTACAO_1_SimplesNacional, COF_NATUREZATRIBUTACAO_2_Fixo, COF_NATUREZATRIBUTACAO_3_DepósitoEmJuízo, COF_NATUREZATRIBUTACAO_4_ExigibilidadeSuspensaPorDecisãoJudicial, COF_NATUREZATRIBUTACAO_5_ExigibilidadeSuspensaPorProcedimentoAdministrativo, COF_OPERACAO_A_SemDedução, COF_OPERACAO_B_ComDeduçãoMateriais, COF_OPERACAO_C_ImuneIsentaDeISSQN, COF_OPERACAO_D_DevoluçãoSimplesRemessa, COF_OPERACAO_JIntermediação, COF_OPTANTESIMPLESNACIONAL_AD_Reference_ID, COF_OPTANTESIMPLESNACIONAL_No, COF_OPTANTESIMPLESNACIONAL_Yes, COF_REGIMEESPECIALTRIBUTACAO_1_MicroempresaMunicipal, COF_REGIMEESPECIALTRIBUTACAO_2_Estimativa, COF_REGIMEESPECIALTRIBUTACAO_3_SociedadeDeProfissionais, COF_REGIMEESPECIALTRIBUTACAO_4_Cooperativa, COF_REGIMEESPECIALTRIBUTACAO_5_MicroempresárioIndividualMEI, COF_REGIMEESPECIALTRIBUTACAO_6_MicroempresárioEEmpresaDePequenoPorteMEEPP, COF_REGIMEESPECIALTRIBUTACAO_7_LucroReal, COF_REGIMEESPECIALTRIBUTACAO_8LucroPresumido, COF_SITUACAONOTA_1_Normal, COF_SITUACAONOTA_2_Cancelada, COF_SITUACAORPSBARUERI_Cancelado, COF_SITUACAORPSBARUERI_Enviado, COF_TIPORPS_1_RPS, COF_TIPORPS_2_NotaConjugada, COF_TIPORPS_3_Cupom, COF_TIPOTRIBUTACAO_1_IsentaDeISS, COF_TIPOTRIBUTACAO_2_Imune, COF_TIPOTRIBUTACAO_3_NãoIncidênciaNoMunicípio, COF_TIPOTRIBUTACAO_4_NãoTributável, COF_TIPOTRIBUTACAO_5_Retida, COF_TIPOTRIBUTACAO_6_TributávelDentroDoMunicípio, COF_TIPOTRIBUTACAO_7_TributávelForaDoMunicípio, COF_TRIBUTAVEL_AD_Reference_ID, COF_TRIBUTAVEL_No, COF_TRIBUTAVEL_Yes, DOCACTION_AD_Reference_ID, DOCACTION_Approve, DOCACTION_Close, DOCACTION_Complete, DOCACTION_Invalidate, DOCACTION_None, DOCACTION_Post, DOCACTION_Prepare, DOCACTION_Re_Activate, DOCACTION_Reject, DOCACTION_Reverse_Accrual, DOCACTION_Reverse_Correct, DOCACTION_Unlock, DOCACTION_Void, DOCACTION_WaitComplete, DOCSTATUS_AD_Reference_ID, DOCSTATUS_Approved, DOCSTATUS_Closed, DOCSTATUS_Completed, DOCSTATUS_Drafted, DOCSTATUS_InProgress, DOCSTATUS_Invalid, DOCSTATUS_NotApproved, DOCSTATUS_Reversed, DOCSTATUS_Unknown, DOCSTATUS_Voided, DOCSTATUS_WaitingConfirmation, DOCSTATUS_WaitingPayment, LBR_NFESTATUSEMAIL_FalhaNoEnvioDoEmail, LBR_NFESTATUSEMAIL_NotaEnviada, LBR_NFESTATUSEMAIL_NotaLiberadaParaEnvio, LBR_NFESTATUSEMAIL_NotaNãoPodeSerEnviadaAinda, LBR_TRANSACTIONTYPE_EndUser, LBR_TRANSACTIONTYPE_Export, LBR_TRANSACTIONTYPE_ExportaçãoIndireta, LBR_TRANSACTIONTYPE_Import, LBR_TRANSACTIONTYPE_InternalUse, LBR_TRANSACTIONTYPE_Manufacturing, LBR_TRANSACTIONTYPE_Others, LBR_TRANSACTIONTYPE_Remessa, LBR_TRANSACTIONTYPE_Resale, LBR_TRANSACTIONTYPE_Transfer
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, p_ctx, p_info, UUID_NEW_RECORD, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
Fields inherited from interface org.compiere.process.DocAction
ACTION_Approve, ACTION_Close, ACTION_Complete, ACTION_Invalidate, ACTION_None, ACTION_Post, ACTION_Prepare, ACTION_ReActivate, ACTION_Reject, ACTION_Reverse_Accrual, ACTION_Reverse_Correct, ACTION_Unlock, ACTION_Void, ACTION_WaitComplete, AD_REFERENCE_ID, DOC_COLUMNNAME_AD_User_ID, DOC_COLUMNNAME_C_Currency_ID, DOC_COLUMNNAME_C_DocType_ID, DOC_COLUMNNAME_C_DocTypeTarget_ID, DOC_COLUMNNAME_DateAcct, DOC_COLUMNNAME_DateTrx, DOC_COLUMNNAME_Description, DOC_COLUMNNAME_DocAction, DOC_COLUMNNAME_DocStatus, DOC_COLUMNNAME_DocumentNo, DOC_COLUMNNAME_IsApproved, DOC_COLUMNNAME_Processed, DOC_COLUMNNAME_Processing, DOC_COLUMNNAME_SalesRep_ID, STATUS_Approved, STATUS_Closed, STATUS_Completed, STATUS_Drafted, STATUS_InProgress, STATUS_Invalid, STATUS_NotApproved, STATUS_Reversed, STATUS_Unknown, STATUS_Voided, STATUS_WaitingConfirmation, STATUS_WaitingPayment
Fields inherited from interface org.brerp.sped.nfe.model.I_COF_RPS
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_C_Currency_ID, COLUMNNAME_C_DocType_ID, COLUMNNAME_C_DocTypeTarget_ID, COLUMNNAME_C_Invoice_ID, COLUMNNAME_C_Order_ID, COLUMNNAME_C_PaymentTerm_ID, COLUMNNAME_cof_AliquotaCOFINS, COLUMNNAME_cof_AliquotaCOFINSEFD, COLUMNNAME_cof_AliquotaCSLL, COLUMNNAME_cof_AliquotaINSS, COLUMNNAME_cof_AliquotaIR, COLUMNNAME_cof_AliquotaISS, COLUMNNAME_cof_AliquotaISSRetido, COLUMNNAME_cof_AliquotaPIS, COLUMNNAME_cof_AliquotaPISEFD, COLUMNNAME_cof_Art, COLUMNNAME_cof_Assinatura, COLUMNNAME_cof_BairroTomador, COLUMNNAME_cof_BaseCalculo, COLUMNNAME_cof_BaseCalculoCOFINS, COLUMNNAME_cof_BaseCalculoCOFINSEFD, COLUMNNAME_cof_BaseCalculoCSLL, COLUMNNAME_cof_BaseCalculoINSS, COLUMNNAME_cof_BaseCalculoIR, COLUMNNAME_cof_BaseCalculoPIS, COLUMNNAME_cof_BaseCalculoPISEFD, COLUMNNAME_cof_CEPTomador, COLUMNNAME_cof_CidadeEstrangeiraTomador, COLUMNNAME_COF_CodigoCEI, COLUMNNAME_cof_CodigoCidadePrestacao, COLUMNNAME_cof_CodigoCidadeTomador, COLUMNNAME_cof_CodigoCnae, COLUMNNAME_cof_CodigoItemListaServico, COLUMNNAME_cof_CodigoObra, COLUMNNAME_cof_CodigoPais, COLUMNNAME_cof_CodigoSubItemListaServico, COLUMNNAME_cof_CodigoTributacaoMunicipio, COLUMNNAME_cof_Competencia, COLUMNNAME_cof_ComplementoTomador, COLUMNNAME_cof_CpfCnpjIntermediario, COLUMNNAME_cof_CpfCnpjPrestador, COLUMNNAME_cof_CPFCNPJReferencia, COLUMNNAME_cof_CpfCnpjTomador, COLUMNNAME_cof_CSTCOFINSEFD, COLUMNNAME_cof_CSTPISEFD, COLUMNNAME_cof_DataCancelamento, COLUMNNAME_cof_DataEmissao, COLUMNNAME_cof_DataEmissaoNfse, COLUMNNAME_cof_DataEmissaoNfseSubstituida, COLUMNNAME_cof_DDDPrestador, COLUMNNAME_cof_DDDTomador, COLUMNNAME_cof_DeducaoPor, COLUMNNAME_cof_DescontoCondicionado, COLUMNNAME_cof_DescontoIncondicionado, COLUMNNAME_cof_DescricaoCidadePrestacao, COLUMNNAME_cof_DescricaoCidadeTomador, COLUMNNAME_cof_DescricaoDocumentoTomador, COLUMNNAME_cof_DescricaoRPS, COLUMNNAME_cof_DiscriminacaoServico, COLUMNNAME_cof_DocTomadorEstrangeiro, COLUMNNAME_cof_EmailTomador, COLUMNNAME_cof_EnderecoTomador, COLUMNNAME_cof_ExigibilidadeISS, COLUMNNAME_COF_HistoricoRetornoRPS, COLUMNNAME_cof_IdentificadorSistemaLegado, COLUMNNAME_cof_IDLote, COLUMNNAME_cof_IdRps, COLUMNNAME_cof_IncentivadorCultural, COLUMNNAME_cof_IncentivoFiscal, COLUMNNAME_COF_InformacoesComplementares, COLUMNNAME_cof_InscricaoEstadualTomador, COLUMNNAME_cof_InscricaoMunicipalIntermediario, COLUMNNAME_cof_InscricaoMunicipalPrestador, COLUMNNAME_cof_InscricaoMunicipalTomador, COLUMNNAME_cof_IssRetido, COLUMNNAME_cof_JustificativaDeducao, COLUMNNAME_cof_MotCancelamento, COLUMNNAME_cof_MunicipioIncidencia, COLUMNNAME_cof_NaturezaTributacao, COLUMNNAME_COF_NFSeCancelamento_ID, COLUMNNAME_COF_NFSeHandle, COLUMNNAME_COF_NFSeMotivo, COLUMNNAME_COF_NFSeSituacao, COLUMNNAME_cof_NumEmissorRps, COLUMNNAME_cof_NumeroNfReferencia, COLUMNNAME_cof_NumeroNfse, COLUMNNAME_cof_NumeroNfseSubstituida, COLUMNNAME_cof_NumeroRps, COLUMNNAME_cof_NumeroRpsSubstituido, COLUMNNAME_cof_NumeroTomador, COLUMNNAME_cof_Operacao, COLUMNNAME_cof_OptanteSimplesNacional, COLUMNNAME_cof_OutrasRetencoes, COLUMNNAME_cof_PaisTomador, COLUMNNAME_cof_PercentualDeduzir, COLUMNNAME_cof_QuantidadeServicos, COLUMNNAME_cof_RazaoSocialIntermediario, COLUMNNAME_cof_RazaoSocialPrestador, COLUMNNAME_cof_RazaoSocialTomador, COLUMNNAME_cof_RegimeEspecialTributacao, COLUMNNAME_cof_ResponsavelRetencao, COLUMNNAME_COF_RPS_ID, COLUMNNAME_COF_RPS_Lote_ID, COLUMNNAME_COF_RPS_UU, COLUMNNAME_cof_SerieNfse, COLUMNNAME_cof_SeriePrestacao, COLUMNNAME_cof_SerieRps, COLUMNNAME_cof_SerieRpsSubstituido, COLUMNNAME_cof_SituacaoNota, COLUMNNAME_COF_SituacaoRPSBarueri, COLUMNNAME_cof_TelefonePrestador, COLUMNNAME_cof_TelefoneTomador, COLUMNNAME_cof_TipoBairroTomador, COLUMNNAME_cof_TipoDeducao, COLUMNNAME_cof_TipoDocumentoTomador, COLUMNNAME_cof_TipoLogradouroTomador, COLUMNNAME_cof_TipoRps, COLUMNNAME_cof_TipoRpsSubstituido, COLUMNNAME_cof_TipoTributacao, COLUMNNAME_cof_Tributavel, COLUMNNAME_cof_UfTomador, COLUMNNAME_cof_ValorCOFINS, COLUMNNAME_cof_ValorCOFINSEFD, COLUMNNAME_cof_ValorCSLL, COLUMNNAME_cof_ValorDeducoes, COLUMNNAME_cof_ValorINSS, COLUMNNAME_cof_ValorIR, COLUMNNAME_cof_ValorISS, COLUMNNAME_cof_ValorISSRetido, COLUMNNAME_cof_ValorIssServico, COLUMNNAME_cof_ValorLiquidoNfse, COLUMNNAME_cof_ValorPIS, COLUMNNAME_cof_ValorPISEFD, COLUMNNAME_cof_ValorServicos, COLUMNNAME_cof_ValorTotalReferencia, COLUMNNAME_cof_ValorUnitarioServico, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_DateAcct, COLUMNNAME_dest_BPartner_ID, COLUMNNAME_dest_City_ID, COLUMNNAME_Dest_Country_ID, COLUMNNAME_Dest_Region_ID, COLUMNNAME_DocAction, COLUMNNAME_DocStatus, COLUMNNAME_DocumentNo, COLUMNNAME_IsActive, COLUMNNAME_IsApproved, COLUMNNAME_IsPrinted, COLUMNNAME_IsSOTrx, COLUMNNAME_lbr_IsOwnDocument, COLUMNNAME_lbr_NFeStatusEmail, COLUMNNAME_lbr_TransactionType, COLUMNNAME_M_PriceList_ID, COLUMNNAME_Org_Location_ID, COLUMNNAME_Processed, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMCOFRPS
(Properties ctx, int COF_RPS_ID, String trxName) MCOFRPS
(Properties ctx, int COF_RPS_ID, String trxName, String... virtualColumns) MCOFRPS
(Properties ctx, String COF_RPS_UU, String trxName) MCOFRPS
(Properties ctx, String COF_RPS_UU, String trxName, String... virtualColumns) MCOFRPS
(Properties ctx, ResultSet rs, String trxName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDescricaoRPS
(String msg) Adiciona novas mensagens complementares ao documentoboolean
Approve Documentprotected boolean
beforeSave
(boolean newRecord) Before Saveboolean
closeIt()
Close DocumentComplete DocumentCreate PDFint
customizeValidActions
(String docStatus, Object processing, String orderType, String isSOTrx, int AD_Table_ID, String[] docAction, String[] options, int index) Customize Valid Actionsvoid
descricaoOrder
(MOrder order) void
detalhesDescricao
(MInvoice invoice) static MCOFRPS
geLBRDocFiscal
(int p_M_InOut_ID, boolean nfImportada, String trxName) Obtem um DocumentoFiscal associado a um recebimento/expedicao de materialGet Document Approval Amountint
Get Currency.static int
getCOF_RPS_ID
(String DocumentNo, String trx) Obter ID de documento Fiscal à partir do Número do Documentostatic int
getCOF_RPS_ID
(String numeroRPS, String situacaoRPSBarueri, String trx) Obter ID de documento Fiscal à partir do Número do RPS e Situacao do RPS Barueriint
Get Document OwnerGet Document StatusGet Document InfogetForSped
(Properties ctx, Timestamp DateFrom, Timestamp DateTo, Integer[] orgs_ID, Boolean IsSOTrx, String trxName) Retornar Documentos Fiscais de acordo com os parâmetrosgetLines()
Get RPS_Lines of RPSgetLines
(boolean requery) Get LinesGet RPS Lines of RPSGet Process Messagestatic MCOFRPS[]
Obter RPS vinculado a uma faturaGet SummarygetTSelection
(Properties ctx, String trx, String whereClause, Integer AD_PInstance_ID) Retorna registros de RPS selecionados em sua InfoWindowboolean
Invalidate Documentboolean
Document Status is Complete or Closedboolean
Prepare Documentboolean
Process documentboolean
Re-activateboolean
rejectIt()
Reject Approvalboolean
Reverse Accrualboolean
Reverse Correctionvoid
setBPAsEmitOrDest
(int C_BPartner_ID) Define o PN como Prestador ou Destinatário Mediante documento proprio ou nãovoid
Ajusta o Tipo de Documento correto para o RPS de acordo com a Organização ou pela Faturavoid
setC_Invoice_ID
(int p_C_Invoice_ID) Set Invoice.void
setClientOrg
(PO po) Overwrite Client Org if differentvoid
setcof_SituacaoNota
(String cof_SituacaoNota) Define a situacao do RPS e forca o status de enviovoid
setEnderecoPrestador
(int C_Location_ID) Set Endereco Prestador.void
setEnderecoTomador
(int C_Location_ID) Set Endereco Tomador.void
setInvoice
(MInvoice inv, boolean force) Set Invoicevoid
setIsPrinted
(boolean isPrinted) Set Printed.void
setOrgAsEmitOrDest
(int p_AD_Org_Trx_ID) Seta informções da organização mediante o documento ser de emissão propria ou naoboolean
unlockIt()
Unlock Document.boolean
voidIt()
Void DocumentMethods inherited from class org.brerp.sped.nfe.model.X_COF_RPS
get_AccessLevel, getC_Currency, getC_DocType, getC_DocType_ID, getC_DocTypeTarget, getC_DocTypeTarget_ID, getC_Invoice, getC_Invoice_ID, getC_Order, getC_Order_ID, getC_PaymentTerm, getC_PaymentTerm_ID, getcof_AliquotaCOFINS, getcof_AliquotaCOFINSEFD, getcof_AliquotaCSLL, getcof_AliquotaINSS, getcof_AliquotaIR, getcof_AliquotaISS, getcof_AliquotaISSRetido, getcof_AliquotaPIS, getcof_AliquotaPISEFD, getcof_Art, getcof_Assinatura, getcof_BairroTomador, getcof_BaseCalculo, getcof_BaseCalculoCOFINS, getcof_BaseCalculoCOFINSEFD, getcof_BaseCalculoCSLL, getcof_BaseCalculoINSS, getcof_BaseCalculoIR, getcof_BaseCalculoPIS, getcof_BaseCalculoPISEFD, getcof_CEPTomador, getcof_CidadeEstrangeiraTomador, getCOF_CodigoCEI, getcof_CodigoCidadePrestacao, getcof_CodigoCidadeTomador, getcof_CodigoCnae, getcof_CodigoItemListaServico, getcof_CodigoObra, getcof_CodigoPais, getcof_CodigoSubItemListaServico, getcof_CodigoTributacaoMunicipio, getcof_Competencia, getcof_ComplementoTomador, getcof_CpfCnpjIntermediario, getcof_CpfCnpjPrestador, getcof_CPFCNPJReferencia, getcof_CpfCnpjTomador, getcof_CSTCOFINSEFD, getcof_CSTPISEFD, getcof_DataCancelamento, getcof_DataEmissao, getcof_DataEmissaoNfse, getcof_DataEmissaoNfseSubstituida, getcof_DDDPrestador, getcof_DDDTomador, getcof_DeducaoPor, getcof_DescontoCondicionado, getcof_DescontoIncondicionado, getcof_DescricaoCidadePrestacao, getcof_DescricaoCidadeTomador, getcof_DescricaoDocumentoTomador, getcof_DescricaoRPS, getcof_DiscriminacaoServico, getcof_DocTomadorEstrangeiro, getcof_EmailTomador, getcof_EnderecoTomador, getcof_ExigibilidadeISS, getCOF_HistoricoRetornoRPS, getcof_IdentificadorSistemaLegado, getcof_IDLote, getcof_IdRps, getcof_IncentivadorCultural, getcof_IncentivoFiscal, getCOF_InformacoesComplementares, getcof_InscricaoEstadualTomador, getcof_InscricaoMunicipalIntermediario, getcof_InscricaoMunicipalPrestador, getcof_InscricaoMunicipalTomador, getcof_IssRetido, getcof_JustificativaDeducao, getcof_MotCancelamento, getcof_MunicipioIncidencia, getcof_NaturezaTributacao, getCOF_NFSeCancelamento_ID, getCOF_NFSeHandle, getCOF_NFSeMotivo, getCOF_NFSeSituacao, getcof_NumEmissorRps, getcof_NumeroNfReferencia, getcof_NumeroNfse, getcof_NumeroNfseSubstituida, getcof_NumeroRps, getcof_NumeroRpsSubstituido, getcof_NumeroTomador, getcof_Operacao, getcof_OptanteSimplesNacional, getcof_OutrasRetencoes, getcof_PaisTomador, getcof_PercentualDeduzir, getcof_QuantidadeServicos, getcof_RazaoSocialIntermediario, getcof_RazaoSocialPrestador, getcof_RazaoSocialTomador, getcof_RegimeEspecialTributacao, getcof_ResponsavelRetencao, getCOF_RPS_ID, getCOF_RPS_Lote, getCOF_RPS_Lote_ID, getCOF_RPS_UU, getcof_SerieNfse, getcof_SeriePrestacao, getcof_SerieRps, getcof_SerieRpsSubstituido, getcof_SituacaoNota, getCOF_SituacaoRPSBarueri, getcof_TelefonePrestador, getcof_TelefoneTomador, getcof_TipoBairroTomador, getcof_TipoDeducao, getcof_TipoDocumentoTomador, getcof_TipoLogradouroTomador, getcof_TipoRps, getcof_TipoRpsSubstituido, getcof_TipoTributacao, getcof_Tributavel, getcof_UfTomador, getcof_ValorCOFINS, getcof_ValorCOFINSEFD, getcof_ValorCSLL, getcof_ValorDeducoes, getcof_ValorINSS, getcof_ValorIR, getcof_ValorISS, getcof_ValorISSRetido, getcof_ValorIssServico, getcof_ValorLiquidoNfse, getcof_ValorPIS, getcof_ValorPISEFD, getcof_ValorServicos, getcof_ValorTotalReferencia, getcof_ValorUnitarioServico, getDateAcct, getdest_BPartner, getdest_BPartner_ID, getdest_City, getdest_City_ID, getDest_Country_ID, getDest_Region, getDest_Region_ID, getDocAction, getDocStatus, getDocumentNo, getlbr_NFeStatusEmail, getlbr_TransactionType, getM_PriceList, getM_PriceList_ID, getOrg_Location, getOrg_Location_ID, initPO, isApproved, islbr_IsOwnDocument, isPrinted, isProcessed, isSOTrx, setC_Currency_ID, setC_DocType_ID, setC_DocTypeTarget_ID, setC_Order_ID, setC_PaymentTerm_ID, setcof_AliquotaCOFINS, setcof_AliquotaCOFINSEFD, setcof_AliquotaCSLL, setcof_AliquotaINSS, setcof_AliquotaIR, setcof_AliquotaISS, setcof_AliquotaISSRetido, setcof_AliquotaPIS, setcof_AliquotaPISEFD, setcof_Art, setcof_Assinatura, setcof_BairroTomador, setcof_BaseCalculo, setcof_BaseCalculoCOFINS, setcof_BaseCalculoCOFINSEFD, setcof_BaseCalculoCSLL, setcof_BaseCalculoINSS, setcof_BaseCalculoIR, setcof_BaseCalculoPIS, setcof_BaseCalculoPISEFD, setcof_CEPTomador, setcof_CidadeEstrangeiraTomador, setCOF_CodigoCEI, setcof_CodigoCidadePrestacao, setcof_CodigoCidadeTomador, setcof_CodigoCnae, setcof_CodigoItemListaServico, setcof_CodigoObra, setcof_CodigoPais, setcof_CodigoSubItemListaServico, setcof_CodigoTributacaoMunicipio, setcof_Competencia, setcof_ComplementoTomador, setcof_CpfCnpjIntermediario, setcof_CpfCnpjPrestador, setcof_CPFCNPJReferencia, setcof_CpfCnpjTomador, setcof_CSTCOFINSEFD, setcof_CSTPISEFD, setcof_DataCancelamento, setcof_DataEmissao, setcof_DataEmissaoNfse, setcof_DataEmissaoNfseSubstituida, setcof_DDDPrestador, setcof_DDDTomador, setcof_DeducaoPor, setcof_DescontoCondicionado, setcof_DescontoIncondicionado, setcof_DescricaoCidadePrestacao, setcof_DescricaoCidadeTomador, setcof_DescricaoDocumentoTomador, setcof_DescricaoRPS, setcof_DiscriminacaoServico, setcof_DocTomadorEstrangeiro, setcof_EmailTomador, setcof_EnderecoTomador, setcof_ExigibilidadeISS, setCOF_HistoricoRetornoRPS, setcof_IdentificadorSistemaLegado, setcof_IDLote, setcof_IdRps, setcof_IncentivadorCultural, setcof_IncentivoFiscal, setCOF_InformacoesComplementares, setcof_InscricaoEstadualTomador, setcof_InscricaoMunicipalIntermediario, setcof_InscricaoMunicipalPrestador, setcof_InscricaoMunicipalTomador, setcof_IssRetido, setcof_JustificativaDeducao, setcof_MotCancelamento, setcof_MunicipioIncidencia, setcof_NaturezaTributacao, setCOF_NFSeCancelamento_ID, setCOF_NFSeHandle, setCOF_NFSeMotivo, setCOF_NFSeSituacao, setcof_NumEmissorRps, setcof_NumeroNfReferencia, setcof_NumeroNfse, setcof_NumeroNfseSubstituida, setcof_NumeroRps, setcof_NumeroRpsSubstituido, setcof_NumeroTomador, setcof_Operacao, setcof_OptanteSimplesNacional, setcof_OutrasRetencoes, setcof_PaisTomador, setcof_PercentualDeduzir, setcof_QuantidadeServicos, setcof_RazaoSocialIntermediario, setcof_RazaoSocialPrestador, setcof_RazaoSocialTomador, setcof_RegimeEspecialTributacao, setcof_ResponsavelRetencao, setCOF_RPS_ID, setCOF_RPS_Lote_ID, setCOF_RPS_UU, setcof_SerieNfse, setcof_SeriePrestacao, setcof_SerieRps, setcof_SerieRpsSubstituido, setCOF_SituacaoRPSBarueri, setcof_TelefonePrestador, setcof_TelefoneTomador, setcof_TipoBairroTomador, setcof_TipoDeducao, setcof_TipoDocumentoTomador, setcof_TipoLogradouroTomador, setcof_TipoRps, setcof_TipoRpsSubstituido, setcof_TipoTributacao, setcof_Tributavel, setcof_UfTomador, setcof_ValorCOFINS, setcof_ValorCOFINSEFD, setcof_ValorCSLL, setcof_ValorDeducoes, setcof_ValorINSS, setcof_ValorIR, setcof_ValorISS, setcof_ValorISSRetido, setcof_ValorIssServico, setcof_ValorLiquidoNfse, setcof_ValorPIS, setcof_ValorPISEFD, setcof_ValorServicos, setcof_ValorTotalReferencia, setcof_ValorUnitarioServico, setDateAcct, setdest_BPartner_ID, setdest_City_ID, setDest_Country_ID, setDest_Region_ID, setDocAction, setDocStatus, setDocumentNo, setIsApproved, setIsSOTrx, setlbr_IsOwnDocument, setlbr_NFeStatusEmail, setlbr_TransactionType, setM_PriceList_ID, setOrg_Location_ID, setProcessed, toString
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, buildInsertSQL, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, toInsertSQL, unlock, update_Tree, validForeignKeys
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface org.compiere.process.DocAction
get_ID, get_Logger, get_Table_ID, get_TrxName, getAD_Client_ID, getAD_Org_ID, getCtx, getDocAction, getDocStatus, getDocumentNo, save, saveEx, setDocStatus
Methods inherited from interface org.brerp.sped.nfe.model.I_COF_RPS
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
Methods inherited from interface org.compiere.model.I_Persistent
save
-
Field Details
-
legalMessages
-
-
Constructor Details
-
MCOFRPS
-
MCOFRPS
-
MCOFRPS
-
MCOFRPS
-
MCOFRPS
-
MCOFRPS
- Throws:
LBRDocException
-
-
Method Details
-
getRPS
Obter RPS vinculado a uma fatura- Parameters:
ctx
-C_Invoice_ID
-trxName
-- Returns:
-
geLBRDocFiscal
Obtem um DocumentoFiscal associado a um recebimento/expedicao de material- Parameters:
p_M_InOut_ID
-- Returns:
-
setC_DocTypeTarget_ID
public void setC_DocTypeTarget_ID()Ajusta o Tipo de Documento correto para o RPS de acordo com a Organização ou pela Fatura -
setInvoice
Set Invoice- Parameters:
MInvoice
- inv- Throws:
LBRDocException
Exception
-
getLines
Get RPS Lines of RPS- Parameters:
whereClause
- starting with AND- Returns:
- List
-
getLines
Get Lines- Parameters:
boolean
- requery- Returns:
- List
-
getLines
Get RPS_Lines of RPS- Returns:
- List
-
setC_Invoice_ID
public void setC_Invoice_ID(int p_C_Invoice_ID) Set Invoice.- Specified by:
setC_Invoice_ID
in interfaceI_COF_RPS
- Overrides:
setC_Invoice_ID
in classX_COF_RPS
- Parameters:
C_Invoice_ID
- Invoice Identifier
-
setOrgAsEmitOrDest
public void setOrgAsEmitOrDest(int p_AD_Org_Trx_ID) Seta informções da organização mediante o documento ser de emissão propria ou nao- Parameters:
AD_OrgTrx_ID
- Performing or initiating organization
-
setBPAsEmitOrDest
public void setBPAsEmitOrDest(int C_BPartner_ID) Define o PN como Prestador ou Destinatário Mediante documento proprio ou não- Parameters:
Dest_BPartner_ID
- Parceiro Tomador
-
setEnderecoTomador
public void setEnderecoTomador(int C_Location_ID) Set Endereco Tomador.- Parameters:
C_Location_ID
- Endereco Tomador
-
setEnderecoPrestador
public void setEnderecoPrestador(int C_Location_ID) Set Endereco Prestador.- Parameters:
C_Location_ID
- Endereco Prestador
-
beforeSave
protected boolean beforeSave(boolean newRecord) Before Save- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- new- Returns:
- true
-
processIt
Process document -
unlockIt
public boolean unlockIt()Unlock Document. -
invalidateIt
public boolean invalidateIt()Description copied from interface:DocAction
Invalidate Document- Specified by:
invalidateIt
in interfaceDocAction
- Returns:
- true if success
-
prepareIt
Description copied from interface:DocAction
Prepare Document -
completeIt
Description copied from interface:DocAction
Complete Document- Specified by:
completeIt
in interfaceDocAction
- Returns:
- new status (Complete, In Progress, Invalid, Waiting ..)
-
closeIt
public boolean closeIt()Description copied from interface:DocAction
Close Document -
reActivateIt
public boolean reActivateIt()Description copied from interface:DocAction
Re-activate- Specified by:
reActivateIt
in interfaceDocAction
- Returns:
- true if success
-
getSummary
Description copied from interface:DocAction
Get Summary- Specified by:
getSummary
in interfaceDocAction
- Returns:
- Summary of Document
-
getDocumentInfo
Description copied from interface:DocAction
Get Document Info- Specified by:
getDocumentInfo
in interfaceDocAction
- Returns:
- Type and Document No
-
createPDF
Description copied from interface:DocAction
Create PDF -
getProcessMsg
Description copied from interface:DocAction
Get Process Message- Specified by:
getProcessMsg
in interfaceDocAction
- Returns:
- clear text message
-
getDoc_User_ID
public int getDoc_User_ID()Description copied from interface:DocAction
Get Document Owner- Specified by:
getDoc_User_ID
in interfaceDocAction
- Returns:
- AD_User_ID
-
getC_Currency_ID
public int getC_Currency_ID()Description copied from class:X_COF_RPS
Get Currency.- Specified by:
getC_Currency_ID
in interfaceDocAction
- Specified by:
getC_Currency_ID
in interfaceI_COF_RPS
- Overrides:
getC_Currency_ID
in classX_COF_RPS
- Returns:
- The Currency for this record
-
getApprovalAmt
Description copied from interface:DocAction
Get Document Approval Amount- Specified by:
getApprovalAmt
in interfaceDocAction
- Returns:
- amount
-
setcof_SituacaoNota
Define a situacao do RPS e forca o status de envio- Specified by:
setcof_SituacaoNota
in interfaceI_COF_RPS
- Overrides:
setcof_SituacaoNota
in classX_COF_RPS
- Parameters:
cof_SituacaoNota
- Indica a situação da nota se ela é uma nota Normal ou Cancelada.
-
podeInserirNoLote
public boolean podeInserirNoLote() -
setIsPrinted
public void setIsPrinted(boolean isPrinted) Set Printed.- Specified by:
setIsPrinted
in interfaceI_COF_RPS
- Overrides:
setIsPrinted
in classX_COF_RPS
- Parameters:
IsPrinted
- Indicates if this document / line is printed
-
setClientOrg
Overwrite Client Org if different- Overrides:
setClientOrg
in classPO
- Parameters:
po
- persistent object
-
voidIt
public boolean voidIt()Description copied from interface:DocAction
Void Document -
getCOF_RPS_ID
Obter ID de documento Fiscal à partir do Número do Documento- Parameters:
DocumentNo
-IsSOTrx
-trx
-- Returns:
-
getCOF_RPS_ID
Obter ID de documento Fiscal à partir do Número do RPS e Situacao do RPS Barueri- Parameters:
numeroRPS
-situacaoRPSBarueri
-trx
-- Returns:
-
addDescricaoRPS
Adiciona novas mensagens complementares ao documento- Parameters:
msg
-
-
descricaoOrder
-
detalhesDescricao
-
isComplete
public boolean isComplete()Document Status is Complete or Closed- Returns:
- true if CO, CL or RE
-
customizeValidActions
public int customizeValidActions(String docStatus, Object processing, String orderType, String isSOTrx, int AD_Table_ID, String[] docAction, String[] options, int index) Description copied from interface:DocOptions
Customize Valid Actions- Specified by:
customizeValidActions
in interfaceDocOptions
- Returns:
- Number of valid options
-
approveIt
public boolean approveIt()Description copied from interface:DocAction
Approve Document -
rejectIt
public boolean rejectIt()Description copied from interface:DocAction
Reject Approval -
reverseCorrectIt
public boolean reverseCorrectIt()Description copied from interface:DocAction
Reverse Correction- Specified by:
reverseCorrectIt
in interfaceDocAction
- Returns:
- true if success
-
reverseAccrualIt
public boolean reverseAccrualIt()Description copied from interface:DocAction
Reverse Accrual- Specified by:
reverseAccrualIt
in interfaceDocAction
- Returns:
- true if success
-
getForSped
public static List<MCOFRPS> getForSped(Properties ctx, Timestamp DateFrom, Timestamp DateTo, Integer[] orgs_ID, Boolean IsSOTrx, String trxName) throws Exception Retornar Documentos Fiscais de acordo com os parâmetros- Parameters:
ctx
-DateFrom
-DateTo
-orgs_ID
- Array com um conjunto de organizações ou NULL para todasIsSOTrx
- Transação de Venda/Compra ou NULL para amabasTrxName
- transação do BD- Returns:
- Throws:
Exception
-
getDocStatusName
Get Document Status- Returns:
- Document Status Clear Text
-
getTSelection
public static List<MCOFRPS> getTSelection(Properties ctx, String trx, String whereClause, Integer AD_PInstance_ID) Retorna registros de RPS selecionados em sua InfoWindow- Parameters:
ctx
-trx
-whereClause
-AD_PInstance_ID
-- Returns:
-