Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030227Retail ModulesWeb POSpublic2015-06-22 18:452015-07-17 14:09
malsasua 
jorge-garcia 
highmajoralways
closedfixed 
20Community Appliance
 
 
migueldejuana
No
0030227: when a receipt is paid using credit, the invoice related to this order can not be reactivated
when a receipt is created in web pos, and it is paid using credit, when cashup is done, the invoice is created, but the invoice can not be reactivated
. in backoffice
 . configure terminal and customer to use credit

. in web pos:
. create a receipt:
 . add line: avalanche
   amount 150.5
 . paid:
    card 100
    use credit 50.5
. do a cashup

. go to backoffice
. sales invoice
 invoice has been created
 . click in reactivate button:
Error:
The invoice has related payments. VBS1000008
No tags attached.
Issue History
2015-06-22 18:45malsasuaNew Issue
2015-06-22 18:45malsasuaAssigned To => Retail
2015-06-22 18:45malsasuaResolution time => 1437861600
2015-06-22 18:45malsasuaTriggers an Emergency Pack => No
2015-06-26 13:26jorge-garciaAssigned ToRetail => jorge-garcia
2015-06-26 13:26jorge-garciaStatusnew => acknowledged
2015-07-03 09:37hgbotCheckin
2015-07-03 09:37hgbotNote Added: 0078635
2015-07-03 09:37hgbotStatusacknowledged => resolved
2015-07-03 09:37hgbotResolutionopen => fixed
2015-07-03 09:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5380f0e028eb2727ca6810866b753c92caddc318 [^]
2015-07-17 14:09migueldejuanaReview Assigned To => migueldejuana
2015-07-17 14:09migueldejuanaNote Added: 0078932
2015-07-17 14:09migueldejuanaStatusresolved => closed

Notes
(0078635)
hgbot   
2015-07-03 09:37   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 5380f0e028eb2727ca6810866b753c92caddc318
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jul 03 09:06:44 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5380f0e028eb2727ca6810866b753c92caddc318 [^]

Fixed issue 30227: Cannot reactivate an invoice if it is paid with credit

When a receipt is created in web pos, and it is paid using credit, when cashup
is done, the invoice is created, but the invoice can not be reactivated.

The problem was that the payment was set as not Prepayment and, when in the back
office it's necessary to reactivate the invoice, the function
aprm_gen_paymentschedule_inv raise and error.

The solution is to set to true isPrepayment column if it's used credit.

Now, it's possible to Reactivate the invoice if the customer used credit

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---
(0078932)
migueldejuana   
2015-07-17 14:09   
Tested and reviewed in 976cfed505b7