Beispiel #1
0
    private Billing fillBill(Bill bill)
    {
        com.Sconit.Entity.Svp.Party supplier = new com.Sconit.Entity.Svp.Party();
        supplier.id          = bill.BillAddress.Party.Code;
        supplier.code        = bill.BillAddress.Party.Code;
        supplier.description = bill.BillAddress.Party.Name;

        supplier.address     = bill.BillAddress.Code;
        supplier.contact     = bill.BillAddress.ContactPersonName;
        supplier.telephone   = bill.BillAddress.TelephoneNumber;
        supplier.mobilephone = bill.BillAddress.MobilePhone;
        supplier.fax         = bill.BillAddress.Fax;
        supplier.postCode    = bill.BillAddress.PostalCode;

        com.Sconit.Entity.Svp.User user = new com.Sconit.Entity.Svp.User();
        user.name = bill.CreateUser.Name;

        com.Sconit.Entity.Svp.Billing billing = new com.Sconit.Entity.Svp.Billing();
        billing.partyFrom            = supplier;
        billing.id                   = bill.BillNo;
        billing.billingNo            = bill.BillNo;
        billing.billingDateSpecified = true;
        billing.billingDate          = bill.CreateDate;
        billing.createDateSpecified  = true;
        billing.createDate           = bill.CreateDate;
        billing.createUser           = user;

        return(billing);
    }
Beispiel #2
0
    private Billing fillBill(Bill bill)
    {
        com.Sconit.Entity.Svp.Party supplier = new com.Sconit.Entity.Svp.Party();
        supplier.id = bill.BillAddress.Party.Code;
        supplier.code = bill.BillAddress.Party.Code;
        supplier.description = bill.BillAddress.Party.Name;

        supplier.address = bill.BillAddress.Code;
        supplier.contact = bill.BillAddress.ContactPersonName;
        supplier.telephone = bill.BillAddress.TelephoneNumber;
        supplier.mobilephone = bill.BillAddress.MobilePhone;
        supplier.fax = bill.BillAddress.Fax;
        supplier.postCode = bill.BillAddress.PostalCode;

        com.Sconit.Entity.Svp.User user = new com.Sconit.Entity.Svp.User();
        user.name = bill.CreateUser.Name;

        com.Sconit.Entity.Svp.Billing billing = new com.Sconit.Entity.Svp.Billing();
        billing.partyFrom = supplier;
        billing.id = bill.BillNo;
        billing.billingNo = bill.BillNo;
        billing.billingDateSpecified = true;
        billing.billingDate = bill.CreateDate;
        billing.createDateSpecified = true;
        billing.createDate = bill.CreateDate;
        billing.createUser = user;

        return billing;
    }