Esempio n. 1
0
        public ExactFieldCollection GetFields()
        {
            ExactFieldCollection fields = new ExactFieldCollection();

            // start at index 1
            fields[1] = 0;
            fields[2] = LedgerType.Type.Substring(0, 1);
            fields[3] = Journal;

            fields[6] = BookingNumber;
            fields[7] = Description;
            fields[8] = ValueDate;
            fields[10] = Debitor;
            fields[11] = Creditor;

            fields[13] = Amount;
            //fields[15] = Currency;
            //if (ExRate != 0m)
            //    fields[16] = ExRate;

            fields[17] = Kredietbeperking;
            fields[18] = KredietbeperkingAmount;
            fields[19] = InvoiceDate;
            fields[20] = KredietbeperkingDate;

            fields[24] = PaymentRef;
            fields[25] = PaymentType;

            fields[32] = (StornoBooking ? "Y" : "N");

            return fields;
        }
Esempio n. 2
0
        public virtual ExactFieldCollection GetFields()
        {
            ExactFieldCollection fields = new ExactFieldCollection();

            // start at index 1
            fields[1] = LineNumber;
            fields[2] = Parent.LedgerType.Type.Substring(0, 1);
            fields[3] = Parent.Journal;

            fields[7] = Description;
            fields[8] = Parent.ValueDate;
            fields[9] = GeneralLedgerAccount;
            fields[10] = Debitor;

            fields[13] = (IsBankMutation || IsSalesMutation) ? Amount * -1 : Amount;
            fields[15] = Currency;
            if (ExRateforExact != 0m)
                fields[16] = ExRateforExact;

            fields[21] = BtwCode;
            if ((BtwCode != null && BtwCode != string.Empty) || BtwAmount != 0m)
                fields[22] = BtwAmount;

            fields[24] = Parent.PaymentRef;

            fields[28] = KostendragerCode;

            fields[32] = (StornoBooking ? "Y" : "N");

            return fields;
        }