Se arregla calculo dto en articulos y al mandar un presupuesto por email, poner presupuesto en asunto
git-svn-id: https://192.168.0.254/svn/Proyectos.LuisLeon_FactuGES2/trunk@242 b2cfbe5a-eba1-4a0c-8b32-7feea0a119f2
This commit is contained in:
parent
4213975874
commit
1983c0c468
@ -428,6 +428,8 @@ begin
|
||||
if (AArticulo.Proveedores.DataTable.State in dsEditModes) then
|
||||
AArticulo.Proveedores.DataTable.Post;
|
||||
|
||||
// showmessage(FloatToStr(AArticulo.DESCUENTO));
|
||||
|
||||
if Length(AArticulo.DESCRIPCION) = 0 then
|
||||
raise Exception.Create('Debe indicar al menos la descripción de este artículo.');
|
||||
|
||||
@ -435,6 +437,7 @@ begin
|
||||
AArticulo.Edit;
|
||||
try
|
||||
AArticulo.USUARIO := AppFactuGES.UsuarioActivo.UserName;
|
||||
AArticulo.PRECIO_NETO := AArticulo.PRECIO_COSTE - ((AArticulo.PRECIO_COSTE * AArticulo.DESCUENTO)/100);
|
||||
Result := True;
|
||||
finally
|
||||
AArticulo.Post;
|
||||
|
||||
@ -813,7 +813,7 @@ begin
|
||||
if not EsCadenaVacia(AAsuntoEMail) then
|
||||
AAsunto := AAsuntoEMail
|
||||
else
|
||||
AAsunto := 'Pedido ' + APresupuesto.REFERENCIA;
|
||||
AAsunto := 'Presupuesto ' + APresupuesto.REFERENCIA;
|
||||
|
||||
ShowHourglassCursor;
|
||||
Application.ProcessMessages;
|
||||
|
||||
Reference in New Issue
Block a user