Patch level : 2.1 72

Files correlati     : sc0100a.msk sc0100p.msk sc2.exe
Ricompilazione Demo : [ ]
Commento            :


Aggiunta gestione ritenute sociali nei pagamenti in conseguennza di

0000070
Implementare nella maschera di pagamento un nuovo campo
per il pagamento delle ritenute sociali.


git-svn-id: svn://10.65.10.50/trunk@12208 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2004-06-25 13:43:58 +00:00
parent 2f5a8118b2
commit b7216a148a
5 changed files with 25 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#include "sc0100a.h"
TOOLBAR "" 0 19 0 3
TOOLBAR "" 0 -3 0 3
BUTTON DLG_OK 10 2
BEGIN

View File

@ -1,6 +1,6 @@
#include "sc0100p.h"
TOOLBAR "" 0 20 0 2
TOOLBAR "" 0 -3 0 3
BUTTON DLG_SAVEREC 10 2
BEGIN

View File

@ -356,7 +356,11 @@ TImporto TEC_array::importo(const TPartita& game, const TRectype& pag, bool valu
TImporto imp(sez, pag.get_real(field)); // Importo base
if (!fat_val)
{
imp.valore() += pag.get_real(PAGSCA_RITENUTE); // Sommo le ritenute se sono il lire
const TImporto ritsoc(sum.sezione_ritsoc(), pag.get_real(PAGSCA_RITSOC));
imp += ritsoc;
}
if (pag.get_char(PAGSCA_ACCSAL) == 'S') // Se il pagamento ha abbuoni o differenze cambio
{

View File

@ -296,7 +296,11 @@ TImporto TESSL_array::importo(const TPartita& game, const TRectype& pag, bool va
TImporto imp(sez, pag.get_real(field)); // Importo base
if (!fat_val)
{
imp.valore() += pag.get_real(PAGSCA_RITENUTE); // Sommo le ritenute se sono in lire
const TImporto ritsoc(sum.sezione_ritsoc(), pag.get_real(PAGSCA_RITSOC));
imp += ritsoc;
}
if (pag.get_char(PAGSCA_ACCSAL) == 'S') // Se il pagamento ha abbuoni o differenze cambio
{

View File

@ -18,6 +18,7 @@
#include <partite.h>
#include <pconti.h>
#include <rmov.h>
#include <rcausali.h>
///////////////////////////////////////////////////////////
// Maschera principale
@ -99,7 +100,7 @@ TImporto TConfronta_mask::importo_riga(const TRectype& riga) const
if (riga.get_int(PART_TIPOMOV) > 1) // Non e' una fattura
{
const TString16 codval = riga.get(PART_CODVAL);
const bool in_valuta = codval.not_empty(); // Determina valuta
const bool in_valuta = is_true_value(codval); // Determina se in valuta
real abb = riga.get_real(PART_ABBUONI);
if (in_valuta)
@ -118,7 +119,18 @@ TImporto TConfronta_mask::importo_riga(const TRectype& riga) const
i += diffcam;
}
else
{
i.valore() += riga.get_real(PART_RITENUTE);
const real ritsoc = riga.get_real(PART_RITSOC);
if (!ritsoc.is_zero())
{
TString16 key; key << riga.get(PART_CODCAUS) << "|14"; // Riga ritenute sociali
const char sezcaus = cache().get(LF_RCAUSALI, key, RCA_SEZIONE)[0];
const sezrs = sezcaus > ' ' ? (sezcaus == 'D' ? 'A' : 'D') : riga.get_char(PART_SEZ);
i += TImporto(sezrs, ritsoc);
}
}
}
return i;
}
@ -398,13 +410,13 @@ public:
void TConfronta_saldi::main_loop()
{
open_files(LF_TAB, LF_TABCOM, LF_PCON, LF_CLIFO, LF_SALDI, LF_PARTITE, LF_RMOV, 0);
open_files(LF_TAB, LF_TABCOM, LF_PCON, LF_CLIFO, LF_SALDI,
LF_RCAUSALI, LF_PARTITE, LF_RMOV, 0);
TConfronta_mask m;
while (m.run() != K_QUIT);
}
int sc2500(int argc, char** argv)
{
TConfronta_saldi app;
app.run(argc, argv, TR("Stampa controllo saldi"));