Patch level : 12.0 528
Files correlati : ve0.exe ve6.exe Sistemata la contabilizzazione delle regolarizzazioni : non leggeva bene dalla causale il fatto di usare il fornitore. git-svn-id: svn://10.65.10.50/branches/R_10_00@24358 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
aadb01c663
commit
baebfc14e3
@ -3230,7 +3230,17 @@ error_type TContabilizzazione::write_all(TDocumento& doc, TMovimentoPN_VE & movi
|
|||||||
|
|
||||||
if (_caus->iva() == iva_acquisti && _caus->causale_reg_iva().full())
|
if (_caus->iva() == iva_acquisti && _caus->causale_reg_iva().full())
|
||||||
{
|
{
|
||||||
if (doc.clifor().get_long(CLI_CODCFASS) > 0)
|
TCausale caus_reg(_caus->causale_reg_iva());
|
||||||
|
TBill contocf; caus_reg.bill(1, contocf);
|
||||||
|
char tcf_reg = contocf.tipo();
|
||||||
|
long cod = doc.clifor().get_long(CLI_CODCFASS);
|
||||||
|
|
||||||
|
// Reperisce l'eventuale cliente associato al fornitore e lo propone
|
||||||
|
if (tcf_reg == 'F')
|
||||||
|
cod = doc.codcf();
|
||||||
|
else
|
||||||
|
tcf_reg = 'C';
|
||||||
|
if (cod > 0)
|
||||||
{
|
{
|
||||||
TMovimentoPN movreg;
|
TMovimentoPN movreg;
|
||||||
const error_type err = write_regolarizzazione(doc, movreg);
|
const error_type err = write_regolarizzazione(doc, movreg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user