From cb1b3459c0904ef87f5e229caafb3bff15cc0b51 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 3 Jun 2009 11:31:29 +0000 Subject: [PATCH] Patch level : 10.0 324 Files correlati : pe0.exe Ricompilazione Demo : [ ] Commento Salvataggio valori vendita e costo sui preventivi (Dinamica) git-svn-id: svn://10.65.10.50/trunk@18972 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- pe/pe0400.cpp | 4 ++++ pe/pe0500.cpp | 5 +---- pe/pe0600.cpp | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pe/pe0400.cpp b/pe/pe0400.cpp index 04ff7c090..19f0ab936 100755 --- a/pe/pe0400.cpp +++ b/pe/pe0400.cpp @@ -827,6 +827,7 @@ int TGestione_preventivo_app::write( const TMask& m ) { const real importo = row.importo(true, false); + row.put(RDOC_VALV, importo); for (int i = level - 1; i >= 0; i--) { real * r = (real *) valori.objptr(i); @@ -841,6 +842,7 @@ int TGestione_preventivo_app::write( const TMask& m ) const real costo = row.get_real(RDOC_QTA) * row.get_real(RDOC_COSTO); + row.put(RDOC_VALC, costo); for (int i = level - 1; i >= 0; i--) { real * r = (real *) costi.objptr(i); @@ -901,6 +903,7 @@ int TGestione_preventivo_app::rewrite( const TMask& m ) { const real importo = row.importo(true, false); + row.put(RDOC_VALV, importo); for (int i = level - 1; i >= 0; i--) { real * r = (real *) valori.objptr(i); @@ -915,6 +918,7 @@ int TGestione_preventivo_app::rewrite( const TMask& m ) const real costo = row.get_real(RDOC_QTA) * row.get_real(RDOC_COSTO); + row.put(RDOC_VALC, costo); for (int i = level - 1; i >= 0; i--) { real * r = (real *) costi.objptr(i); diff --git a/pe/pe0500.cpp b/pe/pe0500.cpp index 619aadfcd..8b6b7fb4a 100755 --- a/pe/pe0500.cpp +++ b/pe/pe0500.cpp @@ -162,9 +162,6 @@ void TGenerazione_esecutivo::post_process_output(TLista_documenti& doc_out) } } } - for (int j = 1 ; j < doc.physical_rows(); j++) - if (doc[j].get(RDOC_TREE).blank()) - break; } } @@ -237,7 +234,7 @@ protected: virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly); public: - TGenEsecutivo_mask() : TAutomask("pe0500a") { open(); } + TGenEsecutivo_mask() : TAutomask("pe0500a") {} }; bool TGenEsecutivo_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) diff --git a/pe/pe0600.cpp b/pe/pe0600.cpp index 9d7639cfd..7c6788120 100755 --- a/pe/pe0600.cpp +++ b/pe/pe0600.cpp @@ -111,7 +111,7 @@ protected: virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly); public: - TGenOrdini_mask() : TAutomask("pe0600a") { open(); } + TGenOrdini_mask() : TAutomask("pe0600a") {} }; bool TGenOrdini_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)