|
@@ -168,7 +168,14 @@ class SaleOrder(models.Model):
|
|
|
|
|
|
if (termType.type_calculation == 'month' ):
|
|
|
datefirst += relativedelta(months=termType.qty_add)
|
|
|
- else :
|
|
|
+
|
|
|
+ if (termType.type_calculation == 'day' ):
|
|
|
+ datefirst += timedelta(days=termType.qty_add)
|
|
|
+
|
|
|
+ if (termType.type_calculation == 'semanal' ):
|
|
|
+ datefirst += timedelta(days=termType.qty_add)
|
|
|
+
|
|
|
+ if (termType.type_calculation == 'quincenal' ):
|
|
|
datefirst += timedelta(days=termType.qty_add)
|
|
|
|
|
|
if (amountTotal > 0 ):
|