Noelg14 / PointOfSaleApp

A C# app for adding products to a database and recording sale data.
0 stars 0 forks source link

Change Payment Screen to Allow Part Pay #10

Open Noelg14 opened 2 years ago

Noelg14 commented 2 years ago

Add text box to allow entering of values for part pay.

Likely requires a refactor of the code in Payment.cs

Noelg14 commented 2 years ago

Possible option create a pay class

public struct Pay{
             string type;
             double value;
}

then create a List<Pay> payments = new List<>() on init of the form and payments.Add(new Pay(type,value)));

and loop to add on balance / change?