Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038611
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Localization Pack: Spain] Spain Professional Localization Packmajorhave not tried2018-05-24 09:132018-07-03 13:45
ReporterimonferrerView Statuspublic 
Assigned ToTriage Finance 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisione9d89c22496a
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned Tovmromanos
Regression introduced in release
Summary

0038611: INTRASTAT - Automatic calculation for "Statistical value"

DescriptionINTRASTAT - Automatic calculation for "Statistical value"
Steps To Reproduce(In spanish)

Para automatizar el cálculo del valor estadístico, será necesario incorporar nuevos campos y funciones en distintas áreas del sistema que recojan los datos necesarios para la obtención de este valor.

Por ello, se definirá un porcentaje parametrizable por el usuario que se utilizará para realizar el cálculo del valor estadístico.

Se crearán tres nuevos campos denominados "% Valor estadístico". Uno en la ventana Organización, pestaña Intrastat (y) los dos restantes en la ventana Terceros, pestañas envíos de intrastat y en adquisiciones de Intrastat.

El valor introducido en éste cálculo utilizará la siguiente función:

linea.LineNetAmt + ((linea.QtyInvoiced * coalesce(producto.weight, 0)) * %)

importe neto + ( ( cantidad facturada * peso del producto) * %)
 

Nota: % es expresado en tanto por 1. Es decir si en el campo “% Valor estadístico” el valor introducido es 4%, en la fórmula se multipliará por 0,04


Funcionalidad

Campo a parametrizar en cada línea de ejercicio creada tanto para entregas como adquisiciones a nivel de intrastat. El tipo indicado en este campo se configura como valor global por defecto. Posteriormente, a nivel de tercero, podrá especificar la configuración concreta para cada uno.

En el momento de la aplicación el proceso debe buscar en el tercer tercero si tiene informado dicho valor, sino irá a buscarlo en la configuración. En caso que no tenga valor en la configuración se establecerá el mismo valor estadístico que el valor de la línea.

Este proceso o cálculo de valor estadístico se llevará a cabo en el momento en el que se informen los campos contenidos en la pestaña Intrastat de las ventanas Factura cliente / Factura proveedor, siendo objeto de actualización si alguno de los valores que intervienen en el cálculo fueran modificados, siempre y cuando esa declaración intrastat no haya sido procesada.
 
Observaciones para el cálculo:

* Tomar el % valor estadístico del tercero asociado a la factura

* En caso que no exista, tomar el % valor estadístico de la organización de la factura
 
* Para el peso del producto se escoge el peso de la pestaña de intrastat del producto.
TagsNo tags attached.
Attached Filesxlsx file icon TC 2018-06-07 Automatic calculation for Statistical Value.xlsx [^] (20,305 bytes) 2018-06-25 16:09

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0105363)
Opentix-Test (developer)
2018-06-25 16:08

Test cases can be reviewed in the attached file
(0105548)
hgbot (developer)
2018-07-03 13:44

Repository: erp/pmods/org.openbravo.module.intrastat
Changeset: 5936dd77ce47068cf55968857e901ffc5e9827fb
Author: Ignacio Monferrer Altava <imonferrer <at> opentix.es>
Date: Tue Jun 05 18:01:14 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.intrastat/rev/5936dd77ce47068cf55968857e901ffc5e9827fb [^]

Fixed bug 38611: Set statistical value % in Bpartner and Organization
Created new fields statistical_amt_percent_so and statistical_amt_percent_po in table INTR_C_BPARTNER. Created new field statistical_amt_percent in table INTR_SETUP. Modified INTR_C_INVOICELINE_TRG trigger from table C_INVOICELINE.

---
M src-db/database/model/tables/INTR_C_BPARTNER.xml
M src-db/database/model/tables/INTR_SETUP.xml
M src-db/database/model/triggers/INTR_C_INVOICELINE_TRG.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MODULE.xml
---
(0105551)
hgbot (developer)
2018-07-03 13:44

Repository: erp/pmods/org.openbravo.module.intrastat.es_ES
Changeset: e9d89c22496a5219e7306e6feb503e30a65fa48a
Author: Ignacio Monferrer Altava <imonferrer <at> opentix.es>
Date: Wed Jun 06 08:14:43 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.intrastat.es_ES/rev/e9d89c22496a5219e7306e6feb503e30a65fa48a [^]

Fixed bug 38611: Set statistical value % in Bpartner and Organization
Created new element for fields statistical_amt_percent_so, statistical_amt_percent_po from table INTR_C_BPARTNER and field statistical_amt_percent from table INTR_SETUP.

---
M referencedata/translation/AD_ELEMENT_TRL_es_ES.xml
M src-db/database/sourcedata/AD_MODULE.xml
---
(0105554)
vmromanos (manager)
2018-07-03 13:45

Code review OK.

Fixed in Intrastat 3.0.400 and Intrastat for Spain 1.0.100

- Issue History
Date Modified Username Field Change
2018-05-24 09:13 imonferrer New Issue
2018-05-24 09:13 imonferrer Assigned To => Triage Finance
2018-06-25 16:08 Opentix-Test Note Added: 0105363
2018-06-25 16:09 Opentix-Test File Added: TC 2018-06-07 Automatic calculation for Statistical Value.xlsx
2018-07-02 12:41 vmromanos Status new => scheduled
2018-07-03 13:44 hgbot Checkin
2018-07-03 13:44 hgbot Note Added: 0105548
2018-07-03 13:44 hgbot Status scheduled => resolved
2018-07-03 13:44 hgbot Resolution open => fixed
2018-07-03 13:44 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.intrastat/rev/5936dd77ce47068cf55968857e901ffc5e9827fb [^]
2018-07-03 13:44 hgbot Checkin
2018-07-03 13:44 hgbot Note Added: 0105551
2018-07-03 13:44 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.module.intrastat/rev/5936dd77ce47068cf55968857e901ffc5e9827fb [^] => http://code.openbravo.com/erp/pmods/org.openbravo.module.intrastat.es_ES/rev/e9d89c22496a5219e7306e6feb503e30a65fa48a [^]
2018-07-03 13:45 vmromanos Review Assigned To => vmromanos
2018-07-03 13:45 vmromanos Note Added: 0105554
2018-07-03 13:45 vmromanos Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker