Patch level : 12.0 638
Files correlati : 770.exd Commento : Aggiunti controlli per non generare pagamenti su registrazioni cancellate
This commit is contained in:
parent
065f001174
commit
68e462332d
@ -89,6 +89,7 @@
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
@ -307,6 +308,7 @@
|
||||
<MenCompiler Include="..\src\m770\77menu.men" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\src\cg\cg2103.h" />
|
||||
<ClInclude Include="..\src\m770\770.h" />
|
||||
<ClInclude Include="..\src\m770\770100a.h" />
|
||||
<ClInclude Include="..\src\m770\770101.h" />
|
||||
|
@ -134,6 +134,7 @@
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<Version>12.0</Version>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
|
@ -133,6 +133,7 @@
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<Version>12.0</Version>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
|
@ -91,6 +91,7 @@
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
|
@ -91,6 +91,7 @@
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<Version>12.0</Version>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
|
@ -133,6 +133,7 @@
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
|
@ -90,6 +90,7 @@
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
|
@ -90,6 +90,7 @@
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
|
@ -362,10 +362,10 @@ bool TSchedaPercipienti::agg_pagamenti(const TRectype& sch, const TDate& pag_dal
|
||||
if (numreg <= 0)
|
||||
return false;
|
||||
|
||||
#ifdef DBG
|
||||
if (numreg == 37788)
|
||||
int cazzone = 1;
|
||||
#endif
|
||||
const TRectype & mov = cache().get(LF_MOV, numreg);
|
||||
|
||||
if (mov.empty())
|
||||
return false;
|
||||
|
||||
TPartite_array partarr;
|
||||
|
||||
@ -426,9 +426,20 @@ bool TSchedaPercipienti::agg_pagamenti(const TRectype& sch, const TDate& pag_dal
|
||||
|
||||
for (int rowp = ratapart.last(); rowp > 0; rowp = ratapart.pred(rowp))
|
||||
{
|
||||
const TRectype& pag = ratapart.row(rowp); // Riga pagamento
|
||||
const TRectype& pag = ratapart.row(rowp); // Riga pagamento
|
||||
const TRectype& pagrow = p->riga(pag.get_long(PAGSCA_NRIGP));
|
||||
const long numregpag = pagrow.get_long(PART_NREG);
|
||||
|
||||
if (numregpag > 0L)
|
||||
{
|
||||
const TRectype & movpag = cache().get(LF_MOV, numregpag);
|
||||
|
||||
if (movpag.empty())
|
||||
return false;
|
||||
}
|
||||
const TRiga_partite& sum = p->riga(rowp); // Riga partite
|
||||
if (sum.tipo() == tm_nota_credito)
|
||||
|
||||
if (sum.tipo() == tm_nota_credito)
|
||||
continue;
|
||||
|
||||
if (pag_dal.ok()) // Filtro opzionale su data pagamento
|
||||
|
Loading…
x
Reference in New Issue
Block a user