Solo se generará un recibo nuevo si el recibo modificado está asociado a una facturaa y se modifica su importe
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@514 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
cc9f03e942
commit
05d00695f1
@ -130,7 +130,7 @@ begin
|
||||
|
||||
APagoCliente.Delete;
|
||||
//Todo lo haremos en memoria ya que los pagos no tienen entidad propia
|
||||
//APagosCliente.DataTable.ApplyUpdates;
|
||||
//APagoCliente.DataTable.ApplyUpdates;
|
||||
finally
|
||||
HideHourglassCursor;
|
||||
end;
|
||||
@ -145,7 +145,7 @@ begin
|
||||
APagosCliente.DataTable.ClearRows;
|
||||
//Todo lo haremos en memoria ya que los pagos no tienen entidad propia
|
||||
//APagosCliente.DataTable.ApplyUpdates;
|
||||
Result := True;
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
@ -835,8 +835,8 @@ begin
|
||||
begin
|
||||
ShowHourglassCursor;
|
||||
try
|
||||
//Si el importe ha cambiado se debe hacer un recibo nuevo con el importe restante
|
||||
if ImporteTotalModificado(ARecibosCliente, ImporteRestante) then
|
||||
//Si el recibo está asociado a una factura y el importe ha cambiado se debe hacer un recibo nuevo con el importe restante
|
||||
if (ARecibosCLiente.ID_FACTURA > 0) and (ImporteTotalModificado(ARecibosCliente, ImporteRestante)) then
|
||||
begin
|
||||
ANuevoReciboCliente := Duplicar(ARecibosCliente);
|
||||
ANuevoReciboCliente.Edit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user