Personalozzazione Cigno
git-svn-id: svn://10.65.10.50/branches/R_10_00@22837 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
25e42a7868
commit
7ad2a3d6d6
@ -246,19 +246,25 @@ void TRimfin_app::create_movana(const TRectype& movhead, TString_array& a, TLog_
|
||||
TBill bill; caus.bill(1, bill);
|
||||
if (bill.conto() <= 0)
|
||||
{
|
||||
msg.format("Non esiste il conto sulla prima riga della causale %s", (const char*)codcaus);
|
||||
log.log(2, msg);
|
||||
//msg.format("Non esiste il conto sulla prima riga della causale %s", (const char*)codcaus);
|
||||
// log.log(2, msg);
|
||||
return;
|
||||
}
|
||||
|
||||
int numrig = 0;
|
||||
FOR_EACH_ARRAY_ROW(a, i, r)
|
||||
{
|
||||
const long sottoc = r->get_long(3);
|
||||
bill.set(bill.gruppo(), bill.conto(), sottoc);
|
||||
if (!bill.find())
|
||||
continue;
|
||||
|
||||
const TString4 codmag = r->get(0);
|
||||
codcms = mag2cms(codmag);
|
||||
|
||||
TImporto importo(caus.sezione(1), real(r->get(4)));
|
||||
importo.normalize();
|
||||
rmv.put(RMOVANA_NUMRIG, i+1);
|
||||
rmv.put(RMOVANA_NUMRIG, ++numrig);
|
||||
rmv.put(RMOVANA_SEZIONE, importo.sezione());
|
||||
rmv.put(RMOVANA_IMPORTO, importo.valore());
|
||||
rmv.put(RMOVANA_CODCMS, codcms);
|
||||
@ -266,9 +272,7 @@ void TRimfin_app::create_movana(const TRectype& movhead, TString_array& a, TLog_
|
||||
|
||||
totdoc += importo;
|
||||
|
||||
const long sottoc = r->get_long(3);
|
||||
bill.set(bill.gruppo(), bill.conto(), sottoc);
|
||||
rmv.put(RMOVANA_CODCONTO, bill.string(0x8));
|
||||
rmv.put(RMOVANA_CODCONTO, bill.string(0x8));
|
||||
|
||||
mov.body(LF_RMOVANA).add_row(rmv);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user