Skip to content

CalculatePaymentFee Session Error#679

Closed
fetullahyldz wants to merge 110 commits into
modular-uifrom
master
Closed

CalculatePaymentFee Session Error#679
fetullahyldz wants to merge 110 commits into
modular-uifrom
master

Conversation

@fetullahyldz
Copy link
Copy Markdown

I'm doing the installment process at the Calculate Payment Fee and the code structure is as follows

private decimal CalculatePaymentFee(decimal total)
{

        decimal num = 0M;
        object objA = HttpContext.Session.Get("taksit");
        if (!object.ReferenceEquals(objA, null))
        {
            object obj3 = HttpContext.Session.Get("taksit");
            if (!object.ReferenceEquals(obj3, null))
            {
                decimal num3;
                int num2 = int.Parse(HttpContext.Session.Get("taksit").ToString());
                if (num2 == 1)
                {
                    num3 = this._setting.Value.Taksit1;
                }
                else if (num2 == 2)
                {
                    num3 = this._setting.Value.Taksit2;
                }
                else if (num2 == 3)
                {
                    num3 = this._setting.Value.Taksit3;
                }
                else if (num2 == 4)
                {
                    num3 = this._setting.Value.Taksit4;
                }
                else if (num2 == 5)
                {
                    num3 = this._setting.Value.Taksit5;
                }
                else if (num2 == 6)
                {
                    num3 = this._setting.Value.Taksit6;
                }
                else if (num2 == 7)
                {
                    num3 = this._setting.Value.Taksit7;
                }
                else if (num2 == 8)
                {
                    num3 = this._setting.Value.Taksit8;
                }
                else if (num2 == 9)
                {
                    num3 = this._setting.Value.Taksit9;
                }
                else if (num2 == 10)
                {
                    num3 = this._setting.Value.Taksit10;
                }
                else if (num2 == 11)
                {
                    num3 = this._setting.Value.Taksit11;
                }
                else
                {
                    num3 = this._setting.Value.Taksit12;
                }
                num = num3;
            }
        }
        return (total / 100) * num;
    }

JwanKhalaf and others added 30 commits September 1, 2018 07:50
* Renamed brandIs to brandIds
* Renamed appySort() to applySort()
* Refactor localization configurations & models
* Add Entity Framework request culture provider
* Add language direction
* Add & fix missing metadata in modules manifest

* Refactor loading modules
* #519 Show product overview in the popup dialog
thiennn and others added 23 commits November 5, 2018 01:53
 #628 Cart separate customer and creator
* Changing static 'reviews' text in ProductThumbnail to @localizer["reviews"]

* Added static text 'Add to Compare' to Localizator

* Added static text 'Not Available' to Localizator

* Added static text 'You save' to Localizator

* Replace static text 'Apply' in Cart/Index.xshtml with Localizator (Translation already exists)

* Replace static text 'Submit' with Localizer

* Replace static text 'Register' with Localizer (Text is already translated)

* Replace static text 'All Categories' with Localizer

* Replace static text 'Search here...' with Localizer
* Add macOS and Windows and run tests

* Add Azure Pipelines build badge
* Add UserSettings
@thiennn
Copy link
Copy Markdown
Contributor

thiennn commented Dec 27, 2018

This PR seems not right. Why pull request to modular-ui?

adrianBasa and others added 5 commits December 28, 2018 04:51
@thiennn thiennn closed this Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.