Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030941Retail ModulesWeb POSpublic2015-09-26 11:562015-09-30 16:45
Orekaria 
Orekaria 
normalminoralways
closedfixed 
5
 
RR15Q4RR15Q4 
marvintm
No
0030941: When the business partner is changed, the webpos does not wait. This can cause data corruption when closing the receipt
When the business partner is changed, the webpos does not wait. This can cause data corruption when closing the receipt
Execute the CreateSaleWithInvoice test

Verify that the data corruption can be created because the receipt is closed while it is being changed


[2015-09-25T17:00:52+0000] [SEVERE] http://127.0.1.1/ret-test-pgsql//web/js/gen/6b1d9e789413d811d828581c36813374_WebPOS.js [^] 2382:19 The receipt has been modified while it was being closed:
{
  "bp": {
    "id": [
      "ABD91C9D3BC94175B876FBBE9CACA008",
      "EDC5DBD82C3B4E3896B3955E041B242C"
    ],
    "organization": [
      "D270A5AC50874F8BA67A88EE977F8E3B",
      "67839EEFA49E44AC969BD60093FCC899"
    ],
    "searchKey": [
      "VBS/C0001",
      "WVG/C0001"
    ],
    "_identifier": [
      "VBS Customer",
      "Arturo Montoro"
    ],
    "name": [
      "VBS Customer",
      "Arturo Montoro"
    ],
    "firstName": [
      "VBS Customer",
      "Arturo"
    ],
    "lastName": [
      null,
      "Moreno"
    ],
    "taxID": [
      null,
      "45433232A"
    ],
    "locId": [
      "2AA7EADDF7EC405899262DDA3E572436",
      "EB1397B7329E426680F18F730DE3C5D2"
    ],
    "locName": [
      "Pau Claris 138 1-1",
      "Calle Passeig de Gracia 123 2-2"
    ],
    "contactId": [
      "032576220FC44B0DA80145B3265E4D9A",
      "50D7C02DDA7C4DDAB77FDECFBB1F1602"
    ],
    "email": [
      null,
      "xpl@openbravo.com"
    ],
    "locationModel": {
      "id": [
        "2AA7EADDF7EC405899262DDA3E572436",
        "EB1397B7329E426680F18F730DE3C5D2"
      ],
      "bpartner": [
        "ABD91C9D3BC94175B876FBBE9CACA008",
        "EDC5DBD82C3B4E3896B3955E041B242C"
      ],
      "name": [
        "Pau Claris 138 1-1",
        "Calle Passeig de Gracia 123 2-2"
      ],
      "_identifier": [
        "Pau Claris 138 1-1",
        "Calle Passeig de Gracia 123 2-2"
      ]
    }
  },
  "lines": {
    "0": {
      "promotionCandidates": [
        [
          "1C36D6974F4E4C41AA92E1EEBCD577E1"
        ],
        []
      ]
    }
  },
  "isBeingDiscounted": [
    false,
    true
  ]
}
; line: Object.receipt.trigger.callback (http://127.0.1.1/ret-test-pgsql//web/js/gen/6b1d9e789413d811d828581c36813374_WebPOS.js:34951:20 [^]) (*,+)
No tags attached.
Issue History
2015-09-26 11:56OrekariaNew Issue
2015-09-26 11:56OrekariaAssigned To => Orekaria
2015-09-26 11:56OrekariaTriggers an Emergency Pack => No
2015-09-26 11:57OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9485#r9485
2015-09-26 22:11hgbotCheckin
2015-09-26 22:11hgbotNote Added: 0080655
2015-09-26 22:11hgbotStatusnew => resolved
2015-09-26 22:11hgbotResolutionopen => fixed
2015-09-26 22:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/75c7352458bf9c3532051e08d2b4327e8ab60725 [^]
2015-09-26 22:31OrekariaReview Assigned To => marvintm
2015-09-30 16:45marvintmStatusresolved => closed
2015-09-30 16:45marvintmFixed in Version => RR15Q4

Notes
(0080655)
hgbot   
2015-09-26 22:11   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 75c7352458bf9c3532051e08d2b4327e8ab60725
Author: Rafa Alonso <ral <at> openbravo.com>
Date: Sat Sep 26 22:10:44 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/75c7352458bf9c3532051e08d2b4327e8ab60725 [^]

Fixes issue 30941: Wrap the applyPromotions

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
---