Arreglo vencimientos
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@629 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
26547ddecc
commit
f23ba29a2f
@ -1087,10 +1087,11 @@ begin
|
|||||||
and (ADiaVencimiento <> AFactura.Cliente.VENCIMIENTO_FACTURAS_2)
|
and (ADiaVencimiento <> AFactura.Cliente.VENCIMIENTO_FACTURAS_2)
|
||||||
and (ADiaVencimiento <> AFactura.Cliente.VENCIMIENTO_FACTURAS_3) do
|
and (ADiaVencimiento <> AFactura.Cliente.VENCIMIENTO_FACTURAS_3) do
|
||||||
begin
|
begin
|
||||||
Inc(ADiaVencimiento);
|
|
||||||
Inc(ADiasMas);
|
|
||||||
if ADiaVencimiento = DaysInMonth(AFechaVencimiento) then
|
if ADiaVencimiento = DaysInMonth(AFechaVencimiento) then
|
||||||
ADiaVencimiento := 0;
|
ADiaVencimiento := 1
|
||||||
|
else
|
||||||
|
Inc(ADiaVencimiento);
|
||||||
|
Inc(ADiasMas);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
AFechaVencimiento := IncDay(AFechaVencimiento, ADiasMas);
|
AFechaVencimiento := IncDay(AFechaVencimiento, ADiasMas);
|
||||||
|
|||||||
@ -899,10 +899,11 @@ begin
|
|||||||
and (ADiaVencimiento <> AFactura.Proveedor.VENCIMIENTO_FACTURAS_2)
|
and (ADiaVencimiento <> AFactura.Proveedor.VENCIMIENTO_FACTURAS_2)
|
||||||
and (ADiaVencimiento <> AFactura.Proveedor.VENCIMIENTO_FACTURAS_3) do
|
and (ADiaVencimiento <> AFactura.Proveedor.VENCIMIENTO_FACTURAS_3) do
|
||||||
begin
|
begin
|
||||||
Inc(ADiaVencimiento);
|
|
||||||
Inc(ADiasMas);
|
|
||||||
if ADiaVencimiento = DaysInMonth(AFechaVencimiento) then
|
if ADiaVencimiento = DaysInMonth(AFechaVencimiento) then
|
||||||
ADiaVencimiento := 0;
|
ADiaVencimiento := 1
|
||||||
|
else
|
||||||
|
Inc(ADiaVencimiento);
|
||||||
|
Inc(ADiasMas);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
AFechaVencimiento := IncDay(AFechaVencimiento, ADiasMas);
|
AFechaVencimiento := IncDay(AFechaVencimiento, ADiasMas);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user