Patch level : 12.322

Files correlati     : lv2.exe lv3.exe f168.trr lv0400a.msk

Diana 2000
----------

Spese automatiche da contratto sui buoni di consegna.

git-svn-id: svn://10.65.10.50/branches/R_10_00@23480 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2016-12-28 00:27:47 +00:00
parent 60794cd270
commit b40c4686c6
2 changed files with 4 additions and 4 deletions

View File

@ -884,7 +884,7 @@ public:
TPagamento& pagamento();
void update_spese_aut(TString_array & spese, bool preserve_old = false, TSheet_field * sh = NULL);
void update_spese_aut(TString_array & spese, bool preserve_old = false, TSheet_field * sh = NULL, bool force = false);
real calc_conai_qta(TCONAI_class type);
void update_conai();

View File

@ -2801,15 +2801,15 @@ void TDocumento::update_raee()
}
}
void TDocumento::update_spese_aut(TString_array & spese_aut, bool preserve_old, TSheet_field* sh)
void TDocumento::update_spese_aut(TString_array & spese_aut, bool preserve_old, TSheet_field* sh, bool force)
{
const bool updated = get_bool(DOC_SPESEUPD);
if (updated)
if (!force && updated)
return;
const bool interactive = sh != NULL;
if (tipo().spese_aut())
if (force || tipo().spese_aut())
{
const int nrows = physical_rows();
int i;