Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046637Retail ModulesCopy Retail Storepublic2021-05-12 12:372021-05-31 07:03
malsasua 
rqueralta 
highmajoralways
closedfixed 
5
 
RR21Q3 
No
0046637: Document Type used for payments is not copied in Copy Store process
The Copy Store process is not copying the document type used in the payments for the store

In livebuilds this error occurs.
If you check newer stores like Vall Boi it seems it was created with copy store process and the AR receipt document type is not there.

In this case, the POS orders are imported because it takes the parent document type, but it makes no sense.

If we define Document Types per store, all the stores should use their own document types.
* create a new field in Organisation window to define the document type used for payments
* If this field is set, then the OrderLoader should use it for the document type of the payments generated by it. If it is not set, the current logic that finds the right document type for payments should be used
. Copy Store process should consider this document type in the process like it does for the rest of the document types defined in the organisation window (with the standard rule, if the doctype is accessible by the new organisation it should be referenced, otherwise it should be cloned)
No tags attached.
related to defect 0051512 closed ranjith_qualiantech_com Copy Store does not copy the documetn types that are used but not referenced by the terminal/store definition 
Issue History
2021-05-12 12:37malsasuaNew Issue
2021-05-12 12:37malsasuaAssigned To => Retail
2021-05-12 12:37malsasuaTriggers an Emergency Pack => No
2021-05-12 17:18marvintmProposed Solution updated
2021-05-13 18:05rqueraltaAssigned ToRetail => rqueralta
2021-05-13 18:06rqueraltaStatusnew => scheduled
2021-05-14 21:31hgbotResolutionopen => fixed
2021-05-14 21:31hgbotStatusscheduled => resolved
2021-05-14 21:31hgbotNote Added: 0128134
2021-05-14 21:33hgbotNote Added: 0128136
2021-05-14 21:34hgbotNote Added: 0128137
2021-05-17 08:22marvintmNote Deleted: 0128134
2021-05-17 08:22marvintmStatusresolved => new
2021-05-17 08:22marvintmResolutionfixed => open
2021-05-17 08:22marvintmStatusnew => scheduled
2021-05-28 08:56hgbotResolutionopen => fixed
2021-05-28 08:56hgbotStatusscheduled => closed
2021-05-28 08:56hgbotFixed in Version => RR21Q3
2021-05-28 08:56hgbotNote Added: 0128752
2021-05-28 08:56hgbotNote Added: 0128753
2021-05-28 08:56hgbotNote Added: 0128754
2021-05-28 08:56hgbotNote Added: 0128755
2021-05-31 07:03hgbotNote Added: 0128786
2023-02-22 06:49ranjith_qualiantech_comRelationship addedrelated to 0051512

Notes
(0128136)
hgbot   
2021-05-14 21:33   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/414 [^]
(0128137)
hgbot   
2021-05-14 21:34   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/20 [^]
(0128752)
hgbot   
2021-05-28 08:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: db5fe76db0cc9ef14e66e8fde5d1245f5c3ff37d
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-05-28T06:55:30+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/db5fe76db0cc9ef14e66e8fde5d1245f5c3ff37d [^]

Fixed ISSUE-46637: Created a new field in Organization window to define the document type used for payments

---
M src-db/database/model/modifiedTables/AD_ORG.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_VAL_RULE.xml
M src/org/openbravo/retail/posterminal/OrderLoader.java
---
(0128753)
hgbot   
2021-05-28 08:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore [^]
Changeset: d45602b9103f4857dccf7b6a439282566038e237
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-05-14T11:46:13-04:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/commit/d45602b9103f4857dccf7b6a439282566038e237 [^]

Fixed BUG-46637: Copying the new field document type used in the payments for the store

---
M src/org/openbravo/retail/copystore/process/DefaultPropertiesHandler.java
---
(0128754)
hgbot   
2021-05-28 08:56   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/20 [^]
(0128755)
hgbot   
2021-05-28 08:56   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/414 [^]
(0128786)
hgbot   
2021-05-31 07:03   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: c95d784d5410e55631500396e8135903d603a0ba
Author: Antonio Moreno <anmorenoperez@gmail.com>
Date: 2021-05-31T07:02:56+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/c95d784d5410e55631500396e8135903d603a0ba [^]

Related to ISSUE-46637: Fixed dbconsistency problem

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
---