Project:
View Revisions: Issue #48884 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0048884: Full Refresh generated in deploy without changes or model insertion in webPOS | ||
Revision | 2022-03-24 11:34 by sofidossant | ||
Description | If a model has changed, a frontend hash is stored from the list of properties of which the model is a part. In 20Q3, in the case of TaxCategory, in TaxCategory.java (the Taxes query), this was done: @Override public List<String> getMasterDataModelProperties() { return getPropertiesFrom(org.openbravo.model.financialmgmt.tax.TaxCategory.class); } In this function, the properties of the TaxCategory entity are returned. This includes the list-like properties that are generated for the "child" models that are marked with IS_CHILD_PROPERTY_IN_PARENT="Y". When changes are added that are not related to webPOS models, but are children to models that use webPOS, it changes the hash and generates a full refresh on the terminals. This can happen with various models: discount, taxcategory, taxcategorybom, productservicelinked and more. |
||
Revision | 2022-03-24 07:22 by sofidossant | ||
Description | If a model has changed, a frontend hash is stored from the list of properties of which the model is a part. In 20Q3, in the case of Taxes, in TaxRate.java (the Taxes query), this was done: @Override public List<String> getMasterDataModelProperties() { return ModelProvider.getInstance() .getEntity(org.openbravo.model.financialmgmt.tax.TaxRate.class) .getProperties() .stream() .map(Property::getName) .collect(Collectors.toList()); } In this function, the properties of the TaxRate entity are returned. This includes the list-like properties that are generated for the "child" models that are marked with IS_CHILD_PROPERTY_IN_PARENT="Y". When changes are added that are not related to webPOS models, but are children to models that use webPOS, it changes the hash and generates a full refresh on the terminals. This can happen with various models: discount, taxcategory, taxcategorybom, productservicelinked and more. |
Copyright © 2000 - 2009 MantisBT Group |