Patch level : 10.0 362
Files correlati : pe0.exe Ricompilazione Demo : [ ] Commento Gestione revisioni (preventivi) git-svn-id: svn://10.65.10.50/trunk@19088 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
263c5d765c
commit
dcf02f7184
@ -566,6 +566,8 @@ bool TGestione_preventivo_msk::pe_new_revision_handler(TMask_field& f, KEY k)
|
||||
mask.doc2mask(false);
|
||||
mask.load_checks();
|
||||
mask.mask2doc();
|
||||
const int err = app().get_relation()->lfile().read(mask.doc());
|
||||
app().get_relation()->save_status();
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -943,7 +945,7 @@ bool TGestione_preventivo_msk::new_revision(const char* codnum, long& ndoc) cons
|
||||
const long divisore = fattore.integer();
|
||||
const long newndoc = ndoc + 1;
|
||||
|
||||
if (((newndoc - ndoc) / divisore) != 0)
|
||||
if (((newndoc / divisore) - (ndoc / divisore)) != 0)
|
||||
return false;
|
||||
else
|
||||
{
|
||||
|
@ -55,6 +55,7 @@ void TGenerazione_esecutivo::genera_matricola(TRiga_documento & row)
|
||||
{
|
||||
mat.zero();
|
||||
mat.put("CODTAB", code);
|
||||
mat.put("I0", 0L);
|
||||
mat.write();
|
||||
}
|
||||
const int prog = mat.get_int("I0") + 1;
|
||||
@ -366,10 +367,21 @@ void TGenEsecutivo_app::main_loop()
|
||||
doc_in.destroy(-1);
|
||||
TDocumento esecutivo(doc_out[0]);
|
||||
|
||||
doc_in.add(esecutivo);
|
||||
|
||||
const int rows = esecutivo.physical_rows();
|
||||
|
||||
esecutivo.zero(DOC_K);
|
||||
esecutivo.zero(DOC_USEK);
|
||||
for (int i = 1; i <= rows; i++)
|
||||
{
|
||||
esecutivo[i].zero(RDOC_PREZZO);
|
||||
esecutivo[i].zero(RDOC_K);
|
||||
}
|
||||
|
||||
if (m.get_bool(F_SPLIT))
|
||||
split_docs(doc_out, esecutivo);
|
||||
doc_out.write();
|
||||
doc_in.add(esecutivo);
|
||||
doc_out.destroy(-1);
|
||||
o.elabora(doc_in, doc_out, data);
|
||||
TDocumento & doc_dest = doc_out[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user