public abstract class CFDViewerModel
extends org.sistema.cs.doc.viewer.DocViewerMXTaxedModel
Modifier and Type | Field and Description |
---|---|
protected org.sistema.cs.cfd.CFDModule |
cfdModule
Reference to the module, required throughout the code of this class.
|
protected org.sistema.cs.agenda.persist.IAddress |
emisionAddress |
protected java.lang.String |
regimenEmisor
El régimen en que tributa el emisor.
|
Constructor and Description |
---|
CFDViewerModel() |
Modifier and Type | Method and Description |
---|---|
boolean |
isVATExempt()
Determines if the
Comprobante is VAT exempt. |
void |
setComprobante(org.sistema.cs.cfd.comprobante.IComprobante c)
Transfers the data of the CFDI to the corresponding model attributes.
|
protected void |
transfer(org.sistema.cs.cfd.comprobante.ITFD tfd)
Transfers data from a
TimbreFiscalDigital element
into the corresponding attributes of the model
(aka "complemento" in Anexo 20). |
getEntryTaxId, setAttributeValue, updateAmount
getAddress1, getAddressFiscal, getAddressFiscal, getDocumentItems, getDocumentNumber, getEntry, getItems, getSelectedDocumentItems, getSelectedItems, getSelectedRelatedDocuments, getSubtotal, getTotal, getVAT, initProperties, isActionActive, isActiveCancel, isActiveEdit, isActiveEmail, isActiveEntrySelect, isActiveEntryView, isActiveItemAdd, isActiveItemDelete, isActiveItemView, isActivePrint, isActivePrintPreview, setAttributeState, updateAddress, updateEntryData
addPersistentModelListener, addRelation, commit, commitAttribute, getPersistent, getRelation, initRelations, isAttributeChanged, isAttributeValid, isDataChanged, isDataValid, isValid, loadAttribute, loadAttributes, removePersistentModelListener, setAttribute, setPersistent
addAttribute, addAttribute, addModelListener, addWorker, buildViewTitle, fireAttributeChanged, fireAttributeChanged, fireStateChanged, getActiveWorkers, getActiveWorkersCount, getAttributeFlag, getAttributeValue, getStateDescription, getStateFlag, getVersion, getWorker, getWorkerCount, getWorkerId, getWorkers, initAttributes, isActiveSave, isAttributeEditable, isBusy, isBusyChanger, isValid, removeModelListener, removeWorker, setAttributeFlag, setStateFlag, updateState, updateTitle
protected final org.sistema.cs.cfd.CFDModule cfdModule
protected org.sistema.cs.agenda.persist.IAddress emisionAddress
protected java.lang.String regimenEmisor
Este atributo es un requisito a partir del CFDI v3.2
public boolean isVATExempt()
Comprobante
is VAT exempt.isVATExempt
in class org.sistema.cs.doc.viewer.DocViewerMXTaxedModel
public void setComprobante(org.sistema.cs.cfd.comprobante.IComprobante c)
c
- An instance of the CFDI
This implementation expects an instance of ComprobanteDocument
,
(XMLBeans implementation of the CFDI).protected void transfer(org.sistema.cs.cfd.comprobante.ITFD tfd)
TimbreFiscalDigital
element
into the corresponding attributes of the model
(aka "complemento" in Anexo 20).tfd
-