Patch level : 12.0
Files correlati : fp Commento: Preparazione patch TD16
This commit is contained in:
		
							parent
							
								
									c6fdb42271
								
							
						
					
					
						commit
						e459e74063
					
				| @ -288,6 +288,9 @@ | |||||||
|       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> |       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | ||||||
|       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> |       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> | ||||||
|     </SqlCompiler> |     </SqlCompiler> | ||||||
|  |     <SqlCompiler Include="..\src\fp\sql\fp0124.sql"> | ||||||
|  |       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | ||||||
|  |     </SqlCompiler> | ||||||
|   </ItemGroup> |   </ItemGroup> | ||||||
|   <ItemGroup> |   <ItemGroup> | ||||||
|     <SqlCompiler Include="..\src\fp\sql\fp0102.sql"> |     <SqlCompiler Include="..\src\fp\sql\fp0102.sql"> | ||||||
|  | |||||||
| @ -147,6 +147,9 @@ | |||||||
|     <SqlCompiler Include="..\src\fp\sql\fp0122.sql"> |     <SqlCompiler Include="..\src\fp\sql\fp0122.sql"> | ||||||
|       <Filter>Sqls</Filter> |       <Filter>Sqls</Filter> | ||||||
|     </SqlCompiler> |     </SqlCompiler> | ||||||
|  |     <SqlCompiler Include="..\src\fp\sql\fp0124.sql"> | ||||||
|  |       <Filter>Sqls</Filter> | ||||||
|  |     </SqlCompiler> | ||||||
|   </ItemGroup> |   </ItemGroup> | ||||||
|   <ItemGroup> |   <ItemGroup> | ||||||
|     <Library Include="..\lib\fplib.lib"> |     <Library Include="..\lib\fplib.lib"> | ||||||
|  | |||||||
| @ -835,6 +835,8 @@ const char* TPaf_container::paf_to_prefix(const char * paf) | |||||||
| 		return "PP"; | 		return "PP"; | ||||||
| 	if (paf_name == "PAF2700F") | 	if (paf_name == "PAF2700F") | ||||||
| 		return "PQ"; | 		return "PQ"; | ||||||
|  | 	if (paf_name == "PAF2800F") | ||||||
|  | 		return "PR"; | ||||||
| 	if (paf_name == "PAF3000F") | 	if (paf_name == "PAF3000F") | ||||||
| 		return "PT"; | 		return "PT"; | ||||||
| 	if (paf_name == "PAF3200F") | 	if (paf_name == "PAF3200F") | ||||||
| @ -896,6 +898,8 @@ TPaf_container::TPaf_container() | |||||||
| 	_pafs.insert(std::pair<const char *, TPaf_record>("PAF2600F", TPaf_record("PAF2600F"))); | 	_pafs.insert(std::pair<const char *, TPaf_record>("PAF2600F", TPaf_record("PAF2600F"))); | ||||||
| 	// Testata documento (aggiunte)
 | 	// Testata documento (aggiunte)
 | ||||||
| 	_pafs.insert(std::pair<const char *, TPaf_record>("PAF2700F", TPaf_record("PAF2700F"))); | 	_pafs.insert(std::pair<const char *, TPaf_record>("PAF2700F", TPaf_record("PAF2700F"))); | ||||||
|  | 	// Indirizzi di spedizione
 | ||||||
|  | 	_pafs.insert(std::pair<const char *, TPaf_record>("PAF2800F", TPaf_record("PAF2800F"))); | ||||||
| 	// Descrizione
 | 	// Descrizione
 | ||||||
| 	_pafs.insert(std::pair<const char *, TPaf_record>("PAF3000F", TPaf_record("PAF3000F"))); | 	_pafs.insert(std::pair<const char *, TPaf_record>("PAF3000F", TPaf_record("PAF3000F"))); | ||||||
| 	// PEC
 | 	// PEC
 | ||||||
| @ -2042,6 +2046,30 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc) | |||||||
| 	// paf2700f.set("PQ_ART73", true);
 | 	// paf2700f.set("PQ_ART73", true);
 | ||||||
| 	paf2700f.set("PQ_GESTIONE", stato_paf()); | 	paf2700f.set("PQ_GESTIONE", stato_paf()); | ||||||
| 	ok &= insert(paf2700f); | 	ok &= insert(paf2700f); | ||||||
|  | 
 | ||||||
|  | 	// Indirizzi di spedizione PAF28
 | ||||||
|  | 	TPaf_record paf2800f = _paf_container.get_paf("PAF2800F"); | ||||||
|  | 	reset(paf2800f); | ||||||
|  | 
 | ||||||
|  | 	const TString& cod_sped = cache().get("%MSP", doc.get(DOC_CODSPMEZZO), "S0"); | ||||||
|  | 	const	TString& caus_trasp = cache().get("%CTR", doc.get(DOC_CAUSTRASP), "S0"); | ||||||
|  | 	const TString& asp_beni = cache().get("%ABE", doc.get(DOC_ASPBENI1), "S0"); | ||||||
|  | 	const TString& um_netto = doc.get(DOC_UMPNETTO); | ||||||
|  | 	const real pnetto = doc.get(DOC_PNETTO); | ||||||
|  | 	const real tara = doc.get(DOC_TARA); | ||||||
|  | 	const real plordo = pnetto + tara; | ||||||
|  | 	TDate data_part = doc.get_date(DOC_DATAPART); | ||||||
|  | 
 | ||||||
|  | 	paf2800f.set("PR_MEZZOTRASP", cod_sped); | ||||||
|  | 	paf2800f.set("PR_CAUSALETRASP", caus_trasp); | ||||||
|  | 	paf2800f.set("PR_NUMCOLLI", doc.get(DOC_NCOLLI)); | ||||||
|  | 	paf2800f.set("PR_DESCRIZIONE", asp_beni); | ||||||
|  | 	paf2800f.set("PR_UMPESO", um_netto); | ||||||
|  | 	paf2800f.set("PR_PESONETTO", pnetto); | ||||||
|  | 	paf2800f.set("PR_PESOLORDO", plordo); | ||||||
|  | 	paf2800f.set("PR_DATAUNIZIO", data_part); | ||||||
|  | 	ok &= insert(paf2800f); | ||||||
|  | 
 | ||||||
| 	//   <DatiOrdineAcquisto>
 | 	//   <DatiOrdineAcquisto>
 | ||||||
| 	if ((doc.is_nota_credito() || get_send_all_rifs()) && doc.get(DOC_NUMDOCRIF).full()) | 	if ((doc.is_nota_credito() || get_send_all_rifs()) && doc.get(DOC_NUMDOCRIF).full()) | ||||||
| 	{ | 	{ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user