Patch level : 4.0 818
Files correlati : vmg1.exe Ricompilazione Demo : [ ] Commento : INerito un parametro per decidere quante figje vuotr devono sesses crwate in un movimento nuovo Impostare AUTOROWS=n.ro righe nel paragrafo mg di diita.ini git-svn-id: svn://10.65.10.50/trunk@15803 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d143552ce2
commit
8303bf937a
@ -22,6 +22,7 @@ class TMask_movmag : public TMask
|
||||
real price_quant;
|
||||
bool price_proposed;
|
||||
real proposed_price(const char * codart, real quant,const char * causrig);
|
||||
int _autorows;
|
||||
|
||||
// aggiorna la riga di magazzino aggiungendo righe automatiche o esplosioni
|
||||
bool update_rigamov(int r, const char * old_codcaus, const char * old_codart, const real & old_quant);
|
||||
@ -48,6 +49,7 @@ public:
|
||||
TArticolo_giacenza& curr_art();
|
||||
void update_tot();
|
||||
const TMagazzini& magazzini() const { return _magazzini; }
|
||||
int autorows() const { return _autorows;}
|
||||
|
||||
TMask_movmag(TMov_mag* m_m);
|
||||
virtual ~TMask_movmag();
|
||||
@ -68,7 +70,7 @@ bool TMask_movmag::codgrp_handler(TMask_field& f, KEY k)
|
||||
const int levnum=1+f.dlg()-F_LIV1;
|
||||
return livelli_giacenza().autoinsert(levnum,f);
|
||||
}
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -119,6 +121,7 @@ TMask_movmag::TMask_movmag(TMov_mag * m_m)
|
||||
const bool gd = magazzini().gestdep();
|
||||
sm.field(F_DESDEP).enable(gd);
|
||||
ss.enable_column(ss.cid2index(F_CODDEP),gd);
|
||||
_autorows = prassid.get_int("AUTOROWS", "mg");
|
||||
}
|
||||
|
||||
|
||||
@ -826,7 +829,7 @@ void TApp_movmag::init_insert_mode(TMask& m)
|
||||
TSheet_field& ss = m.sfield(F_RIGHE);
|
||||
ss.sheet_mask().field(F_QUANT).check_type(inventory ? CHECK_NONE : CHECK_REQUIRED);
|
||||
|
||||
for (int i = 0; i < 20; i++)
|
||||
for (int i = 0; i < ((TMask_movmag &)m).autorows(); i++)
|
||||
ss.insert(-1, false, true);
|
||||
|
||||
TRelation_application::init_insert_mode(m);
|
||||
|
Loading…
x
Reference in New Issue
Block a user