소스 검색

Agregar quincenal y semanal en configuración de cuotas

sebas 4 년 전
부모
커밋
27b6492beb
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      models/sale_order_term_configurator.py

+ 8 - 1
models/sale_order_term_configurator.py

@@ -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 ):