From 59dd9300336e682151b2c665893b72fcf5778600 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 10 Feb 2011 18:53:27 +0000 Subject: [PATCH] Patch level : 10.0 918 Files correlati : cg0.exe Ricompilazione Demo : [ ] Commento : Aggiunto il campo causale anticipi sui clienti. Vine utilizzata dall acontabilizzzione prime di quella specificata sul tipo documento git-svn-id: svn://10.65.10.50/branches/R_10_00@21625 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/velib04b.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ve/velib04b.cpp b/ve/velib04b.cpp index 328c35088..ce6553864 100755 --- a/ve/velib04b.cpp +++ b/ve/velib04b.cpp @@ -3076,7 +3076,10 @@ error_type TContabilizzazione::write_all_re(TDocumento& doc, TMovimentoPN_VE & m error_type TContabilizzazione::compile_head_anticipo(TDocumento& doc) { TString descr; - const TString16 codcaus = doc.tipo().caus_anticipo(); + TString16 codcaus = doc.clifor().vendite().get(CFV_CODCAUSINC); + + if (codcaus.blank()) + codcaus = doc.tipo().caus_anticipo(); const TDate datareg = _movimento->curr().get_date(MOV_DATAREG); if (!_caus->read(codcaus,datareg.year()))