Arreglo de dia de pago del cliente para sus recibos teniendo en cuenta el mes de febrero
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@47 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
08465e593c
commit
916d108e61
@ -1062,6 +1062,12 @@ begin
|
||||
else
|
||||
AFechaVencimiento := IncDay(AFechaVencimiento, (AFactura.Cliente.VENCIMIENTO_FACTURAS - DayOf(AFechaVencimiento)));
|
||||
end;
|
||||
|
||||
//Comprobamos que la fecha de vencimiento no sea febrero si es asi hay que tratarlo
|
||||
if (AFactura.Cliente.VENCIMIENTO_FACTURAS > 28)
|
||||
and (MonthOf(AFechaVencimiento) = 3) and (DayOf(AFechaVencimiento) < 3) then
|
||||
AFechaVencimiento := IncDay(AFechaVencimiento, - DayOf(AFechaVencimiento));
|
||||
|
||||
ARecibos.FECHA_VENCIMIENTO := AFechaVencimiento;
|
||||
|
||||
ARecibos.IMPORTE := AFactura.IMPORTE_TOTAL * (AFormaPago.Plazos.PORCENTAJE / 100);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user