Patch level : nopatch
Files correlati : Commento : Correzione cambio stato fatture
This commit is contained in:
parent
af7b4d4376
commit
38f1868cf2
@ -36,7 +36,7 @@
|
|||||||
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
|
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
|
||||||
</section>
|
</section>
|
||||||
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" height="4" page_break="" can_break="" pattern="1">
|
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" height="4" page_break="" can_break="" pattern="1">
|
||||||
<field deactivated="" type="Immagine" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="1" pattern="1" hide_zero="" text="">
|
<field deactivated="" type="Immagine" hidden="" image_resize_type="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="1" pattern="1" hide_zero="" text="">
|
||||||
<source>""</source>
|
<source>""</source>
|
||||||
</field>
|
</field>
|
||||||
</section>
|
</section>
|
||||||
|
@ -447,16 +447,36 @@ int TMovimentoPN_VE::recalc_cg_rows(const TString& descr_cr, TCausale& caus)
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
if (_caus->intra() && _caus->iva() == iva_acquisti)
|
if (_caus->intra() && _caus->iva() == iva_acquisti)
|
||||||
{
|
{
|
||||||
TBill c; _caus->bill(RIGA_RITENUTE_FISCALI, c);
|
TBill c;
|
||||||
ok = c.ok();
|
real imp = head.get_real(MOV_REVCHARGE);
|
||||||
if (ok)
|
|
||||||
{
|
if (imp == ZERO)
|
||||||
const TString80 d = _caus->desc_agg(RIGA_RITENUTE_FISCALI);
|
imp = head.get_real(MOV_RITFIS);
|
||||||
const char rowtype = 'F';
|
|
||||||
set_cg_rec(-1, real2imp(head.get_real(MOV_RITFIS), rowtype), c, d, rowtype);
|
_caus->bill(RIGA_REVERSE_CHARGE, c);
|
||||||
}
|
ok = c.ok();
|
||||||
else
|
|
||||||
return 2;
|
|
||||||
|
if (ok)
|
||||||
|
{
|
||||||
|
const TString80 d = _caus->desc_agg(RIGA_REVERSE_CHARGE);
|
||||||
|
|
||||||
|
set_cg_rec(-1, real2imp(imp, cgrowtype_revcharge), c, d, cgrowtype_revcharge);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_caus->bill(RIGA_RITENUTE_FISCALI, c);
|
||||||
|
ok = c.ok();
|
||||||
|
|
||||||
|
if (ok)
|
||||||
|
{
|
||||||
|
const TString80 d = _caus->desc_agg(RIGA_RITENUTE_FISCALI);
|
||||||
|
|
||||||
|
set_cg_rec(-1, real2imp(imp, cgrowtype_revcharge), c, d, cgrowtype_revcharge);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -468,8 +488,8 @@ int TMovimentoPN_VE::recalc_cg_rows(const TString& descr_cr, TCausale& caus)
|
|||||||
if (ok)
|
if (ok)
|
||||||
{
|
{
|
||||||
const TString80 d = _caus->desc_agg(RIGA_RITENUTE_FISCALI);
|
const TString80 d = _caus->desc_agg(RIGA_RITENUTE_FISCALI);
|
||||||
const char rowtype = 'F';
|
|
||||||
set_cg_rec(-1, real2imp(ritfis, rowtype), c, d, rowtype);
|
set_cg_rec(-1, real2imp(ritfis, cgrowtype_ritfis), c, d, cgrowtype_ritfis);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user