Arreglo de dia de pago de los clientes teniendo en cuenta el mes de febrero
git-svn-id: https://192.168.0.254/svn/Proyectos.LuisLeon_FactuGES/trunk@194 c93665c3-c93d-084d-9b98-7d5f4a9c3376
This commit is contained in:
parent
3726b32293
commit
02b6d00f8e
@ -1067,6 +1067,12 @@ begin
|
|||||||
else
|
else
|
||||||
AFechaVencimiento := IncDay(AFechaVencimiento, (AFactura.Cliente.VENCIMIENTO_FACTURAS - DayOf(AFechaVencimiento)));
|
AFechaVencimiento := IncDay(AFechaVencimiento, (AFactura.Cliente.VENCIMIENTO_FACTURAS - DayOf(AFechaVencimiento)));
|
||||||
end;
|
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.FECHA_VENCIMIENTO := AFechaVencimiento;
|
||||||
|
|
||||||
ARecibos.IMPORTE := AFactura.IMPORTE_TOTAL * (AFormaPago.Plazos.PORCENTAJE / 100);
|
ARecibos.IMPORTE := AFactura.IMPORTE_TOTAL * (AFormaPago.Plazos.PORCENTAJE / 100);
|
||||||
|
|||||||
Reference in New Issue
Block a user