Gestione rif_ord_clie nota credito solo valore in fattura elettronica
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250319152207 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetup("W_GANAG_RC", "SETUP", "CALC_COD_FISC_FROM_WS", "S",
|
||||
"Calcala il codice fiscale dai dati caricati nella persona fisica", false, null, false, false,
|
||||
false, false, false, null, false, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.IntegryCustomerDB;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250319152223 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!isCustomerDb(IntegryCustomerDB.TwoBrothers_TwoBrothers))
|
||||
return;
|
||||
|
||||
updateSetupValue("W_GANAG_RC", "SETUP", "CALC_COD_FISC_FROM_WS", "N",
|
||||
"Calcala il codice fiscale dai dati caricati nella persona fisica", false, null, false, false, false,
|
||||
false, false, null, false, null);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM stb_gest_setup_depo\n" +
|
||||
"WHERE gest_name = 'W_GANAG_RC'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'CALC_COD_FISC_FROM_WS'"
|
||||
);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM wtb_gest_setup_user\n" +
|
||||
"WHERE gest_name = 'W_GANAG_RC'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'CALC_COD_FISC_FROM_WS'"
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -613,7 +613,7 @@ public class DigitalInvoiceBodyFactory {
|
||||
" docNCR.data_doc = " + UtilityDB.valueToString(data.getDataDoc()) + " and " +
|
||||
" docNCR.ser_doc = " + UtilityDB.valueToString(data.getSerDoc()) + " and " +
|
||||
" docNCR.num_doc = " + UtilityDB.valueToString(data.getNumDoc()) + " and " +
|
||||
" dtb_tipi.segno_qta_scar = -1 and " +
|
||||
" (dtb_tipi.segno_qta_scar = -1 or dtb_tipi.segno_val_scar = -1) and " +
|
||||
" docNCR.cod_mart is not null and " +
|
||||
" docCompR.cod_mart is not null and " +
|
||||
" tipiComp.tipo_emissione = 'DIRETTA' and" +
|
||||
|
||||
Reference in New Issue
Block a user