Added FullPrice column to display Happy Hour Pricing.

Added Void or Reprint Report.
Changed Product.SalePrice -> Price
Changed Inventory.Rate -> Price
This commit is contained in:
unknown
2011-08-28 17:47:15 +05:30
parent 831ec37cda
commit 719dbd49d2
26 changed files with 850 additions and 1179 deletions

View File

@ -40,7 +40,7 @@
this.Label2 = new System.Windows.Forms.Label();
this.txtUnits = new System.Windows.Forms.TextBox();
this.txtName = new System.Windows.Forms.TextBox();
this.txtSalePrice = new System.Windows.Forms.TextBox();
this.txtPrice = new System.Windows.Forms.TextBox();
this.cmbTax = new System.Windows.Forms.ComboBox();
this.chkDiscontinued = new System.Windows.Forms.CheckBox();
this.txtServiceCharge = new System.Windows.Forms.TextBox();
@ -140,14 +140,14 @@
this.txtName.Size = new System.Drawing.Size(189, 20);
this.txtName.TabIndex = 1;
//
// txtSalePrice
// txtPrice
//
this.txtSalePrice.AccessibleName = "";
this.txtSalePrice.Location = new System.Drawing.Point(112, 64);
this.txtSalePrice.Name = "txtSalePrice";
this.txtSalePrice.Size = new System.Drawing.Size(189, 20);
this.txtSalePrice.TabIndex = 3;
this.txtSalePrice.Text = "0";
this.txtPrice.AccessibleName = "";
this.txtPrice.Location = new System.Drawing.Point(112, 64);
this.txtPrice.Name = "txtPrice";
this.txtPrice.Size = new System.Drawing.Size(189, 20);
this.txtPrice.TabIndex = 3;
this.txtPrice.Text = "0";
//
// cmbTax
//
@ -252,7 +252,7 @@
this.Controls.Add(this.chkDiscontinued);
this.Controls.Add(this.txtServiceCharge);
this.Controls.Add(this.Label7);
this.Controls.Add(this.txtSalePrice);
this.Controls.Add(this.txtPrice);
this.Controls.Add(this.label5);
this.Controls.Add(this.cmbTax);
this.Controls.Add(this.txtUnits);
@ -288,7 +288,7 @@
internal System.Windows.Forms.Label Label2;
internal System.Windows.Forms.TextBox txtUnits;
internal System.Windows.Forms.TextBox txtName;
internal System.Windows.Forms.TextBox txtSalePrice;
internal System.Windows.Forms.TextBox txtPrice;
internal System.Windows.Forms.ComboBox cmbTax;
private System.Windows.Forms.CheckBox chkDiscontinued;
internal System.Windows.Forms.TextBox txtServiceCharge;

View File

@ -26,7 +26,7 @@ namespace Tanshu.Accounts.PointOfSale
txtCode.Text = product.Code.ToString();
txtName.Text = product.Name;
txtUnits.Text = product.Units;
txtSalePrice.Text = product.SalePrice.ToString("#.##");
txtPrice.Text = product.Price.ToString("#.##");
cmbTax.SelectedValue = product.Tax.TaxID;
txtServiceCharge.Text = product.ServiceCharge.ToString("#.##");
chkDiscontinued.Checked = product.Discontinued;
@ -78,11 +78,11 @@ namespace Tanshu.Accounts.PointOfSale
product.Units = txtUnits.Text.Trim();
decimal salePrice;
if (!decimal.TryParse(txtSalePrice.Text, out salePrice))
if (!decimal.TryParse(txtPrice.Text, out salePrice))
return null;
if (salePrice < 0)
return null;
product.SalePrice = salePrice;
product.Price = salePrice;
// Tax
if (cmbTax.SelectedItem == null)

View File

@ -161,10 +161,10 @@
//
// salePriceDataGridViewTextBoxColumn
//
this.salePriceDataGridViewTextBoxColumn.DataPropertyName = "SalePrice";
this.salePriceDataGridViewTextBoxColumn.DataPropertyName = "Price";
dataGridViewCellStyle2.Format = "N0";
this.salePriceDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
this.salePriceDataGridViewTextBoxColumn.HeaderText = "SalePrice";
this.salePriceDataGridViewTextBoxColumn.HeaderText = "Price";
this.salePriceDataGridViewTextBoxColumn.Name = "salePriceDataGridViewTextBoxColumn";
this.salePriceDataGridViewTextBoxColumn.ReadOnly = true;
this.salePriceDataGridViewTextBoxColumn.Width = 77;