Modificate funzioni per estrarre in numero documento del fornitore
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -94,6 +94,27 @@ public class Migration_20250919102944 extends BaseMigration implements Migration
|
||||
" \n" +
|
||||
" RETURN \n" +
|
||||
"END");
|
||||
|
||||
createOrUpdateView("svw_fattura_elettronica_files",
|
||||
"CREATE View [dbo].[svw_fattura_elettronica_files] as\n" +
|
||||
"SELECT description,\n" +
|
||||
" stb_files_attached.id_attach,\n" +
|
||||
" datetime_attach,\n" +
|
||||
" dtb_fatture_passive.part_iva,\n" +
|
||||
" dtb_fatture_passive.data_doc,\n" +
|
||||
" dtb_fatture_passive.num_doc,\n" +
|
||||
" dtb_fatture_passive.tot_doc,\n" +
|
||||
" dtb_fatture_passive.iban,\n" +
|
||||
" dtb_fatture_passive.cod_dtip,\n" +
|
||||
" (SELECT TOP 1 cod_paga_fe\n" +
|
||||
" FROM dtb_fatture_passive_scad\n" +
|
||||
" WHERE dtb_fatture_passive_scad.id_attach = dtb_fatture_passive.id_attach) AS cod_paga_fe\n" +
|
||||
"FROM stb_files_attached\n" +
|
||||
" INNER JOIN dtb_fatture_passive ON stb_files_attached.parent_id_attach = dtb_fatture_passive.id_attach AND dtb_fatture_passive.part_iva is not null\n" +
|
||||
"WHERE file_ext IN ('P7M', 'XML')\n" +
|
||||
" AND type_attach = 'FP'\n" +
|
||||
" AND stb_files_attached.id_attach = parent_id_attach\n");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user