private void Class_Terminate_Renamed() { mvarCustomer = null; mvarSale_Totals = null; mvarSale_Lines = null; mvarSP_Prices = null; mvarReturnReason = null; mvarRestrictions = null; }
private void Class_Terminate_Renamed() { mvarSale_Totals = null; mvarSale_Lines = null; mvarSP_Prices = null; mvarCustomer = null; }
// Add a new line /// Optional ByVal Adjust As Boolean, _ /// Optional ByVal Table_Adjust As Boolean = True) As Boolean public void Class_Initialize_Renamed() { mvarSale_Totals = new Sale_Totals(); mvarSale_Lines = new Sale_Lines(); mvarCustomer = new Customer(); mvarSP_Prices = new SP_Prices(); mvarSale_Date = DateTime.Now; mvarSale_Num = 0; mvarSale_Client = ""; mvarSale_Line_Disc = 0; mvarSale_Invc_Disc = 0; mvarSale_Amount = 0; mvarSale_Tender = 0; mvarSale_Change = 0; mvarApplyTaxes = true; }
private void Class_Initialize_Renamed() { mvarSale_Totals = new Sale_Totals(); mvarSale_Lines = new Sale_Lines(); mvarCustomer = new Customer(); mvarSP_Prices = new SP_Prices(); mvarReturnReason = new Return_Reason(); mvarRestrictions = new Restrictions(); CustomerDisplay = new CustomerDisplay(); mvarHasRebateLine = false; mvarSale_Date = DateTime.Now; mvarSale_Num = 0; mvarVoid_Num = 0; mvarSale_Client = ""; mvarSale_Line_Disc = 0; mvarSale_Invc_Disc = 0; mvarSale_Assoc = 0; mvarSale_Amount = 0; mvarSale_Tender = 0; mvarSale_Change = 0; mvarSale_Payment = 0; mvarSale_Deposit = 0; mvarSale_Credits = 0; mvarPointsAmount = 0; mvarVoid_Num = 0; mvarApplyTaxes = true; mvarApplyCharges = true; //TODO: Ezipin_Removed // mvarHasEziProducts = false; // //TODO : Carwash_Removed //mvarHasCarwashProducts = false; // // mvarCarwashProcessed = false; // mvarEligibleTaxEx = false; // mvarApply_CustomerChange = false; // mvarTaxForTaxExempt = false; // // Load_Taxes(); //Smriti move this code to manager //// Remove the sale from the temporary files. //object recordsAffected = null; //Chaps_Main.dbTemp.Execute("Delete from SaleHead Where SaleHead.Sale_No = " + System.Convert.ToString(this.Sale_Num) + " " + " and TILL=" + Till.Number, out recordsAffected, (int)ADODB.CommandTypeEnum.adCmdText | (int)ADODB.ExecuteOptionEnum.adExecuteNoRecords); //Variables.iRecsAffected = (short)recordsAffected; //Chaps_Main.dbTemp.Execute("Delete from SaleLine Where SaleLine.Sale_No = " + System.Convert.ToString(this.Sale_Num) + " " + " and TILL_NUM=" + Till.Number, out recordsAffected, (int)ADODB.CommandTypeEnum.adCmdText | (int)ADODB.ExecuteOptionEnum.adExecuteNoRecords); //Variables.iRecsAffected = (short)recordsAffected; //Chaps_Main.dbTemp.Execute("Delete from SLineReason Where SLineReason.Sale_No = " + System.Convert.ToString(this.Sale_Num) + " " + " and TILL_NUM=" + Till.Number, out recordsAffected, (int)ADODB.CommandTypeEnum.adCmdText | (int)ADODB.ExecuteOptionEnum.adExecuteNoRecords); //Variables.iRecsAffected = (short)recordsAffected; // //Chaps_Main.dbTemp.Execute("Delete from CardSales Where CardSales.SALE_NO = " + System.Convert.ToString(this.Sale_Num) + " " + " and TILL_NUM=" + Till.Number, out recordsAffected, (int)ADODB.CommandTypeEnum.adCmdText | (int)ADODB.ExecuteOptionEnum.adExecuteNoRecords); //Variables.iRecsAffected = (short)recordsAffected; // //Chaps_Main.dbTemp.Execute("Delete FROM SaleTotals Where Sale_No = " + System.Convert.ToString(this.Sale_Num), out recordsAffected, (int)ADODB.CommandTypeEnum.adCmdText | (int)ADODB.ExecuteOptionEnum.adExecuteNoRecords); // change //Variables.iRecsAffected = (short)recordsAffected; //USE_LOYALTY = System.Convert.ToBoolean(Policy_Renamed.USE_LOYALTY); //LOYAL_TYPE = System.Convert.ToString(Policy_Renamed.LOYAL_TYPE); //Loyal_pricecode = System.Convert.ToInt16(Policy_Renamed.LOYAL_PRICE); //CUST_DISC = System.Convert.ToBoolean(Policy_Renamed.CUST_DISC); //Loydiscode = System.Convert.ToInt16(Policy_Renamed.LOYAL_DISC); //PROD_DISC = System.Convert.ToBoolean(Policy_Renamed.PROD_DISC); //Combine_Policy = System.Convert.ToBoolean(Policy_Renamed.COMBINE_LINE); //mvarXRigor = System.Convert.ToBoolean(Policy_Renamed.X_RIGOR); mvarUpsell = false; mvarDeletePrepay = false; mvarReverseRunaway = false; // mvarReversePumpTest = false; // mvarTECustomerChange = false; // }