Added Basecode to Product
Added Voucher Type During Printing Added Discount Report Fixed Void bill table not getting cleared error Added PAX to table Removed Itital Setup button in MainForm as it was not doing anything
This commit is contained in:
@ -50,6 +50,7 @@
|
||||
this.btnOk = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtSortOrder = new System.Windows.Forms.TextBox();
|
||||
this.txtFullPrice = new System.Windows.Forms.TextBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsProductGroups)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsTax)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
@ -57,11 +58,11 @@
|
||||
// Label4
|
||||
//
|
||||
this.Label4.AutoSize = true;
|
||||
this.Label4.Location = new System.Drawing.Point(22, 67);
|
||||
this.Label4.Location = new System.Drawing.Point(12, 68);
|
||||
this.Label4.Name = "Label4";
|
||||
this.Label4.Size = new System.Drawing.Size(84, 13);
|
||||
this.Label4.Size = new System.Drawing.Size(114, 13);
|
||||
this.Label4.TabIndex = 15;
|
||||
this.Label4.Text = "Sale Price / Tax";
|
||||
this.Label4.Text = "Price / Full Price / Tax";
|
||||
//
|
||||
// bsProductGroups
|
||||
//
|
||||
@ -143,9 +144,9 @@
|
||||
// txtPrice
|
||||
//
|
||||
this.txtPrice.AccessibleName = "";
|
||||
this.txtPrice.Location = new System.Drawing.Point(112, 64);
|
||||
this.txtPrice.Location = new System.Drawing.Point(132, 64);
|
||||
this.txtPrice.Name = "txtPrice";
|
||||
this.txtPrice.Size = new System.Drawing.Size(189, 20);
|
||||
this.txtPrice.Size = new System.Drawing.Size(84, 20);
|
||||
this.txtPrice.TabIndex = 3;
|
||||
this.txtPrice.Text = "0";
|
||||
//
|
||||
@ -238,11 +239,21 @@
|
||||
this.txtSortOrder.TabIndex = 6;
|
||||
this.txtSortOrder.Text = "0";
|
||||
//
|
||||
// txtFullPrice
|
||||
//
|
||||
this.txtFullPrice.AccessibleName = "";
|
||||
this.txtFullPrice.Location = new System.Drawing.Point(222, 64);
|
||||
this.txtFullPrice.Name = "txtFullPrice";
|
||||
this.txtFullPrice.Size = new System.Drawing.Size(79, 20);
|
||||
this.txtFullPrice.TabIndex = 19;
|
||||
this.txtFullPrice.Text = "0";
|
||||
//
|
||||
// ProductForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(415, 230);
|
||||
this.Controls.Add(this.txtFullPrice);
|
||||
this.Controls.Add(this.txtSortOrder);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
@ -298,5 +309,6 @@
|
||||
private System.Windows.Forms.Button btnOk;
|
||||
internal System.Windows.Forms.Label label1;
|
||||
internal System.Windows.Forms.TextBox txtSortOrder;
|
||||
internal System.Windows.Forms.TextBox txtFullPrice;
|
||||
}
|
||||
}
|
||||
@ -27,6 +27,7 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
txtName.Text = product.Name;
|
||||
txtUnits.Text = product.Units;
|
||||
txtPrice.Text = product.Price.ToString("#.##");
|
||||
txtFullPrice.Text = product.FullPrice.ToString("#.##");
|
||||
cmbTax.SelectedValue = product.Tax.TaxID;
|
||||
txtServiceCharge.Text = product.ServiceCharge.ToString("#.##");
|
||||
chkDiscontinued.Checked = product.Discontinued;
|
||||
@ -77,12 +78,18 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
// return null;
|
||||
product.Units = txtUnits.Text.Trim();
|
||||
|
||||
decimal salePrice;
|
||||
if (!decimal.TryParse(txtPrice.Text, out salePrice))
|
||||
decimal price;
|
||||
if (!decimal.TryParse(txtPrice.Text, out price))
|
||||
return null;
|
||||
if (salePrice < 0)
|
||||
if (price < 0)
|
||||
return null;
|
||||
product.Price = salePrice;
|
||||
product.Price = price;
|
||||
|
||||
if (!decimal.TryParse(txtFullPrice.Text, out price))
|
||||
return null;
|
||||
if (price < 0 || price < product.Price)
|
||||
return null;
|
||||
product.FullPrice = price;
|
||||
|
||||
// Tax
|
||||
if (cmbTax.SelectedItem == null)
|
||||
|
||||
Reference in New Issue
Block a user