Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034273Retail ModulesWeb POSpublic2016-10-21 17:132016-10-21 17:13
guilleaer 
Retail 
normalminorhave not tried
newopen 
5
 
 
No
0034273: Payment schedule due date should be correctly set for invoices based on payment terms
Payment schedule due date should be correctly set for invoices based on payment terms.

Currently we are just setting it when pay on credit


Orderloader (line 1830)
        if (wasPaidOnCredit) {
          paymentScheduleInvoice.setDueDate(getCalculatedDueDateBasedOnPaymentTerms(
              order.getOrderDate(), order.getPaymentTerms()));
          paymentScheduleInvoice.setExpectedDate(paymentScheduleInvoice.getDueDate());
        } else {
          paymentScheduleInvoice.setDueDate(order.getOrderDate());
          paymentScheduleInvoice.setExpectedDate(order.getOrderDate());
        }
Create an order using specific payment terms.

Due date is not correctly calculated.

Steps of issue https://issues.openbravo.com/view.php?id=33830 [^] can be followed to reproduce (using an standard payment method)
execute getCalculatedDueDateBasedOnPaymentTerms always
No tags attached.
related to defect 0033830 closed ranjith_qualiantech_com Payment methods for Credit Sales not working 
Issue History
2016-10-21 17:13guilleaerNew Issue
2016-10-21 17:13guilleaerAssigned To => Retail
2016-10-21 17:13guilleaerTriggers an Emergency Pack => No
2016-10-21 17:13guilleaerRelationship addedrelated to 0033830

There are no notes attached to this issue.