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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049657
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POScriticalalways2022-06-27 10:582022-06-30 11:41
Reportertimothee_catteeuwView Statuspublic 
Assigned Tojavietxe 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049657: JIRA 3118 - API closure in error when comarch discount without label

DescriptionWhen the external promotion engine sent to Openbravo a promotion without discount, that causes an error on API sales closure process.

Cf. sample for example.

{
"technical_id": "116408",
"code": "30%_FAM2_S",
"label": "",
"amount": 2.69
}
Steps To ReproduceSteps to reproduce :

Go to webpos

start a new ticket and select “poulet roti 1/2”

swithc to payment

the 30%_FAM2_S discount is applied

pay

Close your till

go to BO

Open EDSL request window

get the corresponding API Sales closure

The related closure of the previous sale is in error

→ ValidationError:"unit_sales[0].discounts[0].label" is not allowed to be empty

This field can be empty and this case has to be handled because this label can be empty
Proposed SolutionIf no external promotion system label, it is necessary to put the code in unit_sales[0].discounts[0].label (ex : 30%_FAM2_S in the previous example)

If external promotion system send a label , it is necessary to put this label
TagsNo tags attached.
Attached Files? file icon Sample.json [^] (5,830 bytes) 2022-06-27 10:58

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0138883)
guilleaer (manager)
2022-06-30 11:40

https://gitlab.com/obcustomers/AGAP/com.openbravo.flunch.integration.comarch.cashup/-/merge_requests/10 [^]

- Issue History
Date Modified Username Field Change
2022-06-27 10:58 timothee_catteeuw New Issue
2022-06-27 10:58 timothee_catteeuw Assigned To => Retail
2022-06-27 10:58 timothee_catteeuw File Added: Sample.json
2022-06-27 10:58 timothee_catteeuw Triggers an Emergency Pack => No
2022-06-27 11:02 timothee_catteeuw Proposed Solution updated
2022-06-30 11:40 guilleaer Status new => scheduled
2022-06-30 11:40 guilleaer Assigned To Retail => javietxe
2022-06-30 11:40 guilleaer Note Added: 0138883
2022-06-30 11:40 guilleaer Status scheduled => resolved
2022-06-30 11:40 guilleaer Resolution open => fixed
2022-06-30 11:41 guilleaer Review Assigned To => guilleaer
2022-06-30 11:41 guilleaer Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker