public float invoice() { float _paid = 0; ForeignCus FgCu = new ForeignCus(); QtyPrice Price = new QtyPrice(); if (FgCu.Kw <= Price.Quota) { _paid = (float)(FgCu.Kw * 2.5 * Price.Price); } else { _paid = (float)((FgCu.Kw - Price.Quota) * 2.5 * 1.5 * Price.Price + Price.Quota * 2.5 * 1.5 * Price.Price); } return(_paid); }
public float invoice() { float _paid = 0; VietNamCus VNCu = new VietNamCus(); QtyPrice Price = new QtyPrice(); if (VNCu.Kw <= Price.Quota) { _paid = (float)(VNCu.Kw * Price.Price); } else { _paid = (float)((VNCu.Kw - Price.Quota) * 1.5 * Price.Price + Price.Quota * Price.Price); } return(_paid); }