Patch level : 12.0 818
Files correlati : ve0.exe ve5.exe ve6.exe Commento : Nell'impostazione partite
This commit is contained in:
parent
05fc11028e
commit
c72a282ac6
@ -537,6 +537,7 @@ static TBill _co_cliente, // conto clifo per movimento d'anticipo
|
|||||||
static bool _numpart_pro; // se true prende il numero rif. partita dal numero protocollo
|
static bool _numpart_pro; // se true prende il numero rif. partita dal numero protocollo
|
||||||
static bool _numpart_mon; // se true prende il numero rif. partita dal mese
|
static bool _numpart_mon; // se true prende il numero rif. partita dal mese
|
||||||
static char _part_type; // tipi di numero partita "D" codcumento, "P" protocollo IVA, "M" Mese
|
static char _part_type; // tipi di numero partita "D" codcumento, "P" protocollo IVA, "M" Mese
|
||||||
|
static bool _part_acq_ndoc; // numero partita acquisti acquisti numero doc
|
||||||
static bool _sc_enabled; // se true il saldaconto di ditta è abilitato
|
static bool _sc_enabled; // se true il saldaconto di ditta è abilitato
|
||||||
static bool _in_enabled; // se true l'intra è abilitato
|
static bool _in_enabled; // se true l'intra è abilitato
|
||||||
static TToken_string* _search_seq = NULL;
|
static TToken_string* _search_seq = NULL;
|
||||||
@ -2701,8 +2702,9 @@ error_type TContabilizzazione::write_scadenze(TDocumento& doc, bool recontabiliz
|
|||||||
// int anno = head.get_int(MOV_ANNOIVA);
|
// int anno = head.get_int(MOV_ANNOIVA);
|
||||||
int anno = 0;
|
int anno = 0;
|
||||||
TString8 numpart; // Max. 7 chars
|
TString8 numpart; // Max. 7 chars
|
||||||
|
const TString4 tipocf = doc.get(DOC_TIPOCF);
|
||||||
|
|
||||||
if (doc.get(DOC_TIPOCF) == "F" || is_nc)
|
if (tipocf == "F" || is_nc)
|
||||||
{
|
{
|
||||||
anno = doc.get_int(DOC_ANNORIF);
|
anno = doc.get_int(DOC_ANNORIF);
|
||||||
numpart = doc.get(DOC_NUMDOCRIF);
|
numpart = doc.get(DOC_NUMDOCRIF);
|
||||||
@ -2725,7 +2727,16 @@ error_type TContabilizzazione::write_scadenze(TDocumento& doc, bool recontabiliz
|
|||||||
keydoc.add(codnum);
|
keydoc.add(codnum);
|
||||||
keydoc.add(numpart);
|
keydoc.add(numpart);
|
||||||
|
|
||||||
const long numreg = atol(cache().get(LF_DOC, keydoc, DOC_NUMREG));
|
const TRectype & docrif = cache().get(LF_DOC, keydoc);
|
||||||
|
const TString4 & tipocfrif = docrif.get(DOC_TIPOCF);
|
||||||
|
|
||||||
|
if (tipocf == tipocfrif)
|
||||||
|
{
|
||||||
|
const long codcf = docrif.get_long(DOC_CODCF);
|
||||||
|
|
||||||
|
if (codcf == doc.get_long(DOC_CODCF))
|
||||||
|
{
|
||||||
|
const long numreg = docrif.get_long( DOC_NUMREG);
|
||||||
|
|
||||||
if (numreg > 0)
|
if (numreg > 0)
|
||||||
{
|
{
|
||||||
@ -2740,6 +2751,8 @@ error_type TContabilizzazione::write_scadenze(TDocumento& doc, bool recontabiliz
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (anno <= 0 || numpart.blank())
|
if (anno <= 0 || numpart.blank())
|
||||||
{
|
{
|
||||||
switch (_part_type)
|
switch (_part_type)
|
||||||
|
@ -518,7 +518,9 @@ long TGenerazione_effetti::group_bills(TAssoc_array& group_array, bool interatti
|
|||||||
if (numpart_mon)
|
if (numpart_mon)
|
||||||
part_type = 'M';
|
part_type = 'M';
|
||||||
|
|
||||||
if (doc.get(DOC_TIPOCF) == "F" || is_nota_credito)
|
const TString4 tipocf = doc.get(DOC_TIPOCF);
|
||||||
|
|
||||||
|
if (tipocf == "F" || is_nota_credito)
|
||||||
{
|
{
|
||||||
anno = doc.get_int(DOC_ANNORIF);
|
anno = doc.get_int(DOC_ANNORIF);
|
||||||
numpart = doc.get(DOC_NUMDOCRIF); // Max. 7 chars
|
numpart = doc.get(DOC_NUMDOCRIF); // Max. 7 chars
|
||||||
@ -541,7 +543,16 @@ long TGenerazione_effetti::group_bills(TAssoc_array& group_array, bool interatti
|
|||||||
keydoc.add(codnum);
|
keydoc.add(codnum);
|
||||||
keydoc.add(numpart);
|
keydoc.add(numpart);
|
||||||
|
|
||||||
const long numreg = atol(cache().get(LF_DOC, keydoc, DOC_NUMREG));
|
const TRectype & docrif = cache().get(LF_DOC, keydoc);
|
||||||
|
const char tipocfrif = docrif.get_char(DOC_TIPOCF);
|
||||||
|
|
||||||
|
if (tipocf == tipocfrif)
|
||||||
|
{
|
||||||
|
const long codcf = docrif.get_long(DOC_CODCF);
|
||||||
|
|
||||||
|
if (codcf == doc.get_long(DOC_CODCF))
|
||||||
|
{
|
||||||
|
const long numreg = docrif.get_long(DOC_NUMREG);
|
||||||
|
|
||||||
if (numreg > 0)
|
if (numreg > 0)
|
||||||
{
|
{
|
||||||
@ -556,6 +567,8 @@ long TGenerazione_effetti::group_bills(TAssoc_array& group_array, bool interatti
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (anno <= 0 || numpart.blank())
|
if (anno <= 0 || numpart.blank())
|
||||||
{
|
{
|
||||||
switch (part_type)
|
switch (part_type)
|
||||||
@ -801,7 +814,7 @@ void TGenerazione_effetti::generate_bill(TDocumento& doc, bool interattivo) // b
|
|||||||
if (numpart_mon)
|
if (numpart_mon)
|
||||||
part_type = 'M';
|
part_type = 'M';
|
||||||
|
|
||||||
if (doc.get(DOC_TIPOCF) == "F" || is_nota_credito)
|
if (tipocf == 'F' || is_nota_credito)
|
||||||
{
|
{
|
||||||
anno = doc.get_int(DOC_ANNORIF);
|
anno = doc.get_int(DOC_ANNORIF);
|
||||||
numpart = doc.get(DOC_NUMDOCRIF); // Max. 7 chars
|
numpart = doc.get(DOC_NUMDOCRIF); // Max. 7 chars
|
||||||
@ -824,7 +837,16 @@ void TGenerazione_effetti::generate_bill(TDocumento& doc, bool interattivo) // b
|
|||||||
keydoc.add(codnum);
|
keydoc.add(codnum);
|
||||||
keydoc.add(numpart);
|
keydoc.add(numpart);
|
||||||
|
|
||||||
const long numreg = atol(cache().get(LF_DOC, keydoc, DOC_NUMREG));
|
const TRectype & docrif = cache().get(LF_DOC, keydoc);
|
||||||
|
const char tipocfrif = docrif.get_char(DOC_TIPOCF);
|
||||||
|
|
||||||
|
if (tipocf == tipocfrif)
|
||||||
|
{
|
||||||
|
const long codcf = docrif.get_long(DOC_CODCF);
|
||||||
|
|
||||||
|
if (codcf == doc.get_long(DOC_CODCF))
|
||||||
|
{
|
||||||
|
const long numreg = docrif.get_long(DOC_NUMREG);
|
||||||
|
|
||||||
if (numreg > 0)
|
if (numreg > 0)
|
||||||
{
|
{
|
||||||
@ -839,6 +861,8 @@ void TGenerazione_effetti::generate_bill(TDocumento& doc, bool interattivo) // b
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (anno <= 0 || numpart.blank())
|
if (anno <= 0 || numpart.blank())
|
||||||
{
|
{
|
||||||
switch (part_type)
|
switch (part_type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user