Package srvSap

Examples of srvSap.ZFISCOBRANZA


    }

    @Deprecated
    private void fillBanks(List<ZFISCOBRANZA> zFISCOBRANZA) {
        for ( int i = 0 ; i < bankTable.getRowCount() ; i++ ){
            ZFISCOBRANZA zfc = new ZFISCOBRANZA();
            System.out.println("ID\tMANDT\tFECHA\tWERKS\tWAERS\tSIMBO\tMPAGO\tBPAGO\tLOTE\tMONTO\tITEMTEXT");
            zfc.setID(1);
            System.out.print("1\t");
            zfc.setMANDT(of.createZFISCOBRANZAMANDT(Shared.getConfig("mant")));
            System.out.print(Shared.getConfig("mant") + "\t");
            zfc.setFECHA(of.createZFISCOBRANZAFECHA(date4sap));
            System.out.print(date4sap + "\t");
            zfc.setWERKS(of.createZFISCOBRANZAWERKS(Shared.getConfig("storePrefix") + Shared.getConfig("storeName")));
            System.out.print(Shared.getConfig("storePrefix") + Shared.getConfig("storeName") + "\t");
            zfc.setWAERS(of.createZFISCOBRANZAWAERS(Shared.getConfig("waerks")));
            System.out.print(Shared.getConfig("waerks") + "\t");
            zfc.setSIMBO(of.createZFISCOBRANZASIMBO( (bankTable.getValueAt(i, 0).toString().split("-")[0]).trim()));
            System.out.print((bankTable.getValueAt(i, 0).toString().split("-")[0]).trim()  + "\t");
            zfc.setMPAGO( of.createZFISCOBRANZAMPAGO( bankTable.getValueAt(i, 2).equals("Credito")?"B":"D" ) );
            System.out.print(bankTable.getValueAt(i, 2).equals("Credito")?"B":"D" + "\t");
            zfc.setBPAGO(of.createZFISCOBRANZABPAGO( (bankTable.getValueAt(i, 0).toString().split("-")[0]).trim()));
            System.out.print((bankTable.getValueAt(i, 0).toString().split("-")[0]).trim() + "\t");
            zfc.setLOTE(of.createZFISCOBRANZALOTE((String)bankTable.getValueAt(i, 1)));
            System.out.print((String)bankTable.getValueAt(i, 1) + "\t");
            //if ( !bankTable.getValueAt(i, 4).equals("0") ) {
                zfc.setMONTO(new BigDecimal((Double)bankTable.getValueAt(i, 4)));
                System.out.print((Double)bankTable.getValueAt(i, 4) + "\t");
            /*}else{
                zfc.setMONTO(new BigDecimal((String)bankTable.getValueAt(i, 3)));
                System.out.print((String)bankTable.getValueAt(i, 3) + "\t");
            }*/
            zfc.setITEMTEXT(of.createZFISCOBRANZAITEMTEXT(""));
            System.out.print("\t");
            zFISCOBRANZA.add(zfc);
            System.out.println();
        }
    }
View Full Code Here


    }

    @Deprecated
    private void fillExpenses(List<ZFISCOBRANZA> zFISCOBRANZA) {
        for ( int i = 0 ; i < expenseTable.getRowCount() ; i++ ){
            ZFISCOBRANZA zfc = new ZFISCOBRANZA();
            zfc.setID(1);
            System.out.print(1+ "\t");
            zfc.setMANDT(of.createZFISCOBRANZAMANDT(Shared.getConfig("mant")));
            System.out.print(Shared.getConfig("mant")+"\t");
            zfc.setFECHA(of.createZFISCOBRANZAFECHA(date4sap));
            System.out.print(date4sap+"\t");
            zfc.setWERKS(of.createZFISCOBRANZAWERKS(Shared.getConfig("storePrefix") + Shared.getConfig("storeName")));
            System.out.print(Shared.getConfig("storePrefix") + Shared.getConfig("storeName")+"\t");
            zfc.setWAERS(of.createZFISCOBRANZAWAERS(Shared.getConfig("waerks")));
            System.out.print(Shared.getConfig("waerks")+"\t");
            zfc.setSIMBO(of.createZFISCOBRANZASIMBO(Shared.getConfig("genericBank")));
            System.out.print(Shared.getConfig("genericBank")+"\t");
            String tmp = expenseTable.getValueAt(i, 0).toString().split("-")[0];
            zfc.setMPAGO( of.createZFISCOBRANZAMPAGO( tmp.substring(0, tmp.length() - 1) ) );
            System.out.print(tmp.substring(0, tmp.length() - 1)+"\t");
            zfc.setBPAGO(of.createZFISCOBRANZABPAGO(Shared.getConfig("genericBank")));
            System.out.print(Shared.getConfig("genericBank")+"\t");
            //String[] md = myDay.split("-");
            //zfc.setLOTE(of.createZFISCOBRANZALOTE(md[2] + md[1] + md[0] + Shared.getConfig("storeName")));
            //zfc.setLOTE(of.createZFISCOBRANZALOTE(""));
            zfc.setLOTE(of.createZFISCOBRANZALOTE(i+""));
            //System.out.print(md[2] + md[1] + md[0] + Shared.getConfig("storeName")+"\t");
            zfc.setMONTO(new BigDecimal(((String)expenseTable.getValueAt(i, 1)).replace(',', '.')));
            System.out.print(((String)expenseTable.getValueAt(i, 1)).replace(',', '.')+"\t");
            zfc.setITEMTEXT(of.createZFISCOBRANZAITEMTEXT((String)expenseTable.getValueAt(i, 2)));
            System.out.print((String)expenseTable.getValueAt(i, 2)+"\t");
            zFISCOBRANZA.add(zfc);
            System.out.println("");
        }
    }
View Full Code Here

    }

    @Deprecated
    private void fillDeposits(List<ZFISCOBRANZA> zFISCOBRANZA) {
        for ( int i = 0 ; i < depositTable.getRowCount() ; i++ ){
            ZFISCOBRANZA zfc = new ZFISCOBRANZA();
            zfc.setID(1);
            System.out.print("1\t");
            zfc.setMANDT(of.createZFISCOBRANZAMANDT(Shared.getConfig("mant")));
            System.out.print(Shared.getConfig("mant")+ "\t");
            zfc.setFECHA(of.createZFISCOBRANZAFECHA(date4sap));
            System.out.print(date4sap+ "\t");
            zfc.setWERKS(of.createZFISCOBRANZAWERKS(Shared.getConfig("storePrefix") + Shared.getConfig("storeName")));
            System.out.print(Shared.getConfig("storePrefix") + Shared.getConfig("storeName")+ "\t");
            zfc.setWAERS(of.createZFISCOBRANZAWAERS(Shared.getConfig("waerks")));
            System.out.print(Shared.getConfig("waerks")+"\t");
            String bancoId = ((String)depositTable.getValueAt(i, 0)).split("-")[0].trim();
            zfc.setSIMBO(of.createZFISCOBRANZASIMBO(bancoId));
            System.out.print(bancoId+"\t");
            zfc.setMPAGO( of.createZFISCOBRANZAMPAGO( "E" ) );
            System.out.print("E"+"\t");
            zfc.setBPAGO(of.createZFISCOBRANZABPAGO(bancoId));
            System.out.print(bancoId+"\t");
            zfc.setLOTE(of.createZFISCOBRANZALOTE(((String)depositTable.getValueAt(i, 1))));
            System.out.print(((String)depositTable.getValueAt(i, 1))+"\t");
            zfc.setMONTO(new BigDecimal(((String)depositTable.getValueAt(i, 2)).replace(',','.')));
            System.out.print(((String)depositTable.getValueAt(i, 2)).replace(',','.')+"\t");
            zfc.setITEMTEXT(of.createZFISCOBRANZAITEMTEXT(""));
            System.out.print(""+"\t");
            zFISCOBRANZA.add(zfc);
            System.out.println("");
        }
    }
View Full Code Here

TOP

Related Classes of srvSap.ZFISCOBRANZA

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.