Patch level : 10.0 patch 548
Files correlati : lv2 lv3 Ricompilazione Demo : [ ] Commento : Aggiungere nell'acquisizione da contapezzi articolo inesistente in contratto Creazione buoni di prelievo in ordine di codice articolo git-svn-id: svn://10.65.10.50/trunk@19785 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
c1243a0cb9
commit
93a0b47104
@ -317,6 +317,9 @@ bool TGenera_documenti_app::crea_documento(const TISAM_recordset& plan, TLog_rep
|
||||
|
||||
if (doc.rows() > 0)
|
||||
{
|
||||
TToken_string orderkey;
|
||||
orderkey.add(RDOC_CODART);
|
||||
doc.sort_rows(orderkey);
|
||||
err = doc.rewrite();
|
||||
++numdocgen;
|
||||
}
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include "lvlib.h"
|
||||
#include "../ve/velib.h"
|
||||
|
||||
#include "clifo.h"
|
||||
#include "cfven.h"
|
||||
#include "lvcondv.h"
|
||||
#include "lvrcondv.h"
|
||||
@ -306,6 +307,9 @@ public:
|
||||
void TAcquisizione_cache::discarding(const THash_object* obj)
|
||||
{
|
||||
TDocumento& doc = (TDocumento&)obj->obj();
|
||||
TToken_string orderkey;
|
||||
orderkey.add(RDOC_CODART);
|
||||
doc.sort_rows(orderkey);
|
||||
int err = doc.rewrite();
|
||||
}
|
||||
|
||||
@ -710,6 +714,20 @@ bool TAcquisizione_lavanderie_app::elabora_file(const TString& file, TLog_report
|
||||
continue;
|
||||
}
|
||||
|
||||
TToken_string key;
|
||||
key.add('C');
|
||||
key.add(codcf);
|
||||
const int codindsp = atoi(cache().get(LF_CFVEN, key, CFV_CODINDSP));
|
||||
TLaundry_contract cont(codcf, codindsp, datadoc);
|
||||
const TRectype& rcont = cont.row(codart.trim());
|
||||
|
||||
if(rcont.empty())
|
||||
{
|
||||
TString str;
|
||||
str << "L'articolo " << codart << " non è previsto nel contratto del cliente " << codcf;
|
||||
warning_box(str);
|
||||
}
|
||||
|
||||
TQuantita_contate* qc = articoli.quantita(codcf, codart.trim(), datadoc, true);
|
||||
|
||||
//se la chiave è già presente nel TAssoc_array, chiedi cosa fare delle quantità
|
||||
|
@ -39,6 +39,9 @@ public:
|
||||
void TBuoni_cache::discarding(const THash_object* obj)
|
||||
{
|
||||
TDocumento& doc = (TDocumento&)obj->obj();
|
||||
TToken_string orderkey;
|
||||
orderkey.add(RDOC_CODART);
|
||||
doc.sort_rows(orderkey);
|
||||
int err = doc.rewrite();
|
||||
}
|
||||
|
||||
|
@ -592,6 +592,9 @@ void TEvasione_msk::genera_documento()
|
||||
int err = 1;
|
||||
if (doc.rows() > 0)
|
||||
{
|
||||
TToken_string orderkey;
|
||||
orderkey.add(RDOC_CODART);
|
||||
doc.sort_rows(orderkey);
|
||||
err = doc.write();
|
||||
if(controlla())
|
||||
{
|
||||
|
@ -558,6 +558,9 @@ void TEvasione_ter_msk::genera_buono()
|
||||
int err = 1;
|
||||
if (doc.rows() > 0)
|
||||
{
|
||||
TToken_string orderkey;
|
||||
orderkey.add(RDOC_CODART);
|
||||
doc.sort_rows(orderkey);
|
||||
err = doc.write();
|
||||
|
||||
if(controlla())
|
||||
|
Loading…
x
Reference in New Issue
Block a user