예제 #1
0
 public Supplier()
 {
     Type        = "CRD"; //Dimension type of customers is DEB.
     Beginperiod = 1;
     Beginyear   = 1965;
     Endperiod   = 1;
     Endyear     = 2019;
     Financials  = new Financials
     {
         Matchtype         = MatchType.Customersupplier, //Fixed value customersupplier.
         Accounttype       = "inherit",                  //Fixed value inherit.
         Subanalyse        = Subanalyse.False,           //Fixed value false
         Duedays           = 100,
         Substitutionlevel = 1,                          //Level of the balancesheet account. Fixed value 1.
         Payavailable      = false,                      //Determines if direct debit is possible.
         Ebilling          = false,                      //Determines if the sales invoices will be sent electronically to the customer.
         Vatobligatory     = false,
         Level             = 2,
         Collectionschema  = CollectionSchema.Core,      //Collection schema information. Apply this information only when the customer invoices are collected by SEPA direct debit.
         Collectmandate    = new Collectmandate()
     };
     Banks             = new Banks();
     Postingrules      = new Postingrules();
     Addresses         = new Addresses();
     Paymentconditions = new Paymentconditions();
 }
예제 #2
0
 public Customer()
 {
     Type        = "DEB"; //Dimension type of customers is DEB.
     Beginperiod = 1;
     Beginyear   = 1;
     Endperiod   = 1;
     Endyear     = 1;
     Financials  = new Financials
     {
         Matchtype         = MatchType.Customersupplier, //Fixed value customersupplier.
         Accounttype       = "inherit",                  //Fixed value inherit.
         Subanalyse        = Subanalyse.False,           //Fixed value false
         Duedays           = 100,
         Substitutionlevel = 1,                          //Level of the balancesheet account. Fixed value 1.
         Payavailable      = false,                      //Determines if direct debit is possible.
         Ebilling          = false,                      //Determines if the sales invoices will be sent electronically to the customer.
         Vatobligatory     = false,
         Collectionschema  = CollectionSchema.Core,      //Collection schema information. Apply this information only when the customer invoices are collected by SEPA direct debit.
         Collectmandate    = new Collectmandate
         {
             Id = "1"
         },
         Vatcode = new VatCode()
     };
     Creditmanagement = new Creditmanagement
     {
         Sendreminder    = SendReminder.False, //Determines if and how a customer will be reminded.
         Blocked         = false,              //Indicates if related projects for this customer are blocked in time & expenses.
         Freetext1       = true,               //Right of use
         Basecreditlimit = 500,                //The credit limit amount.
     };
     Banks             = new Banks();
     Postingrules      = new Postingrules();
     Addresses         = new Addresses();
     Paymentconditions = new Paymentconditions();
 }