public Form_Wait_FVI_SLO_Response(string fVI_MessageID, string fVI_UniqueInvoiceID, InvoiceData xInvoiceData, GlobalData.ePaymentType paymentType, string sPaymentMethod, string sAmountReceived, string sToReturn, DateTime_v issue_time) { InitializeComponent(); this.fVI_MessageID = fVI_MessageID; this.fVI_UniqueInvoiceID = fVI_UniqueInvoiceID; this.xInvoiceData = xInvoiceData; this.paymentType = paymentType; this.sPaymentMethod = sPaymentMethod; this.sAmountReceived = sAmountReceived; this.sToReturn = sToReturn; this.issue_time = issue_time; }
public Form_Print_A4(InvoiceData xInvoiceData, GlobalData.ePaymentType paymentType, string sPaymentMethod, long durationType, long duration, DateTime_v issue_time, Navigation xnav) { InitializeComponent(); nav = xnav; this.m_InvoiceData = xInvoiceData; this.paymentType = paymentType; this.sPaymentMethod = sPaymentMethod; this.issue_time = issue_time; this.durationType = durationType; this.duration = duration; lngRPM.s_Template.Text(lbl_Template, ":"); }
public Form_Print_A4(InvoiceData xInvoiceData, GlobalData.ePaymentType paymentType, string sPaymentMethod, string sAmountReceived, string sToReturn, DateTime_v issue_time, NavigationButtons.Navigation xnav) { InitializeComponent(); nav = xnav; this.m_InvoiceData = xInvoiceData; this.paymentType = paymentType; this.sPaymentMethod = sPaymentMethod; this.sAmountReceived = sAmountReceived; this.sToReturn = sToReturn; this.issue_time = issue_time; lngRPM.s_Template.Text(lbl_Template, ":"); }
internal bool SaveDocProformaInvoice(ref long xDocProformaInvoice_ID, GlobalData.ePaymentType ePaymentType, long MethodOfPayment_ID, long docDuration, long docDurationType, long termsOfPayment_ID, ref int xNumberInFinancialYear) { List<SQL_Parameter> lpar = new List<SQL_Parameter>(); string spar_PrintTime = "@par_PrintTime"; DateTime dtnow = DateTime.Now; SQL_Parameter par_PrintTime = new SQL_Parameter(spar_PrintTime, DBConnectionControl40.SQL_Parameter.eSQL_Parameter.Datetime, false, dtnow); lpar.Add(par_PrintTime); string spar_docDuration = "@par_docDuration"; SQL_Parameter par_docDuration = new SQL_Parameter(spar_docDuration, DBConnectionControl40.SQL_Parameter.eSQL_Parameter.Bigint, false, docDuration); lpar.Add(par_docDuration); string spar_docDurationType = "@par_docDurationType"; SQL_Parameter par_docDurationType = new SQL_Parameter(spar_docDurationType, DBConnectionControl40.SQL_Parameter.eSQL_Parameter.Bigint, false, docDurationType); lpar.Add(par_docDurationType); string spar_TermsOfPayment_ID = "@par_TermsOfPayment_ID"; SQL_Parameter par_TermsOfPayment_ID = new SQL_Parameter(spar_TermsOfPayment_ID, DBConnectionControl40.SQL_Parameter.eSQL_Parameter.Bigint, false, termsOfPayment_ID); lpar.Add(par_TermsOfPayment_ID); string spar_MethodOfPayment_ID = "@par_MethodOfPayment_ID"; SQL_Parameter par_MethodOfPayment_ID = new SQL_Parameter(spar_MethodOfPayment_ID, DBConnectionControl40.SQL_Parameter.eSQL_Parameter.Bigint, false, MethodOfPayment_ID); lpar.Add(par_MethodOfPayment_ID); string sql = null; object ores = null; string Err = null; if (GetNewNumberInFinancialYear()) { xNumberInFinancialYear = NumberInFinancialYear; sql = @"update DocProformaInvoice set Draft =0, NumberInFinancialYear = " + NumberInFinancialYear.ToString() + ", DocDuration = " + spar_docDuration + ", DocDurationType = " + spar_docDurationType + ", TermsOfPayment_ID = " + spar_TermsOfPayment_ID + ", MethodOfPayment_ID = " + spar_MethodOfPayment_ID +" where ID = " + Doc_ID.ToString(); // Close Proforma Invoice if (DBSync.DBSync.ExecuteNonQuerySQL(sql, lpar, ref ores, ref Err)) { xDocProformaInvoice_ID = Doc_ID; return true; } else { LogFile.Error.Show("ERROR:usrc_Invoice_Preview:SaveDocProformaInvoice:sql=" + sql+"\r\nErr=" + Err); } } return false; }
public bool SaveDocInvoice(ref long xDocInvoice_ID, GlobalData.ePaymentType ePaymentType, string p1, string p2, string p3, ref int xNumberInFinancialYear) { List<SQL_Parameter> lpar = new List<SQL_Parameter>(); string spar_PrintTime = "@par_PrintTime"; DateTime dtnow = DateTime.Now; SQL_Parameter par_PrintTime = new SQL_Parameter(spar_PrintTime, DBConnectionControl40.SQL_Parameter.eSQL_Parameter.Datetime, false, dtnow); lpar.Add(par_PrintTime); string sql = null; object ores = null; string Err = null; if (GetNewNumberInFinancialYear()) { xNumberInFinancialYear = NumberInFinancialYear; sql = "update DocInvoice set Draft =0,NumberInFinancialYear = " + NumberInFinancialYear.ToString() + " where ID = " + Doc_ID.ToString(); // Close Proforma Invoice if (DBSync.DBSync.ExecuteNonQuerySQL(sql, lpar, ref ores, ref Err)) { xDocInvoice_ID = Doc_ID; return true; } else { LogFile.Error.Show("ERROR:usrc_Invoice_Preview:Save:Err=" + Err); } } return false; }
public static bool Get(GlobalData.ePaymentType ePaymentType, long_v BankAccount_ID_v, ref long MethodOfPayment_ID) { string sPaymentType = null; MethodOfPayment_ID = -1; sPaymentType = GlobalData.Get_sPaymentType(ePaymentType); List<SQL_Parameter> lpar = new List<SQL_Parameter>(); string Err = null; DataTable dt = new DataTable(); string scond_PaymentType = " PaymentType is null "; string sval_PaymentType = " null "; string scond_Atom_BankAccount_ID = " Atom_BankAccount_ID is null "; string sval_Atom_BankAccount_ID = " null "; string spar_PaymentType = "@par_PaymentType"; SQL_Parameter par_PaymentType = new SQL_Parameter(spar_PaymentType, SQL_Parameter.eSQL_Parameter.Nvarchar, false, sPaymentType); lpar.Add(par_PaymentType); scond_PaymentType = " PaymentType = " + spar_PaymentType; sval_PaymentType = " " + spar_PaymentType + " "; string spar_Atom_BankAccount_ID = "@par_Atom_BankAccount_ID"; if (BankAccount_ID_v != null) { SQL_Parameter par_Atom_BankAccount_ID = new SQL_Parameter(spar_Atom_BankAccount_ID, SQL_Parameter.eSQL_Parameter.Bigint, false, BankAccount_ID_v.v); lpar.Add(par_Atom_BankAccount_ID); scond_Atom_BankAccount_ID = " Atom_BankAccount_ID = " + spar_Atom_BankAccount_ID; sval_Atom_BankAccount_ID = " " + spar_Atom_BankAccount_ID + " "; } string sql = " select ID from MethodOfPayment where " + scond_PaymentType + " and " + scond_Atom_BankAccount_ID; if (DBSync.DBSync.ReadDataTable(ref dt, sql, lpar, ref Err)) { if (dt.Rows.Count > 0) { MethodOfPayment_ID = (long)dt.Rows[0]["ID"]; return true; } else { sql = @" insert into MethodOfPayment (PaymentType,Atom_BankAccount_ID) values (" + sval_PaymentType +","+ sval_Atom_BankAccount_ID + ")"; object oret = null; if (DBSync.DBSync.ExecuteNonQuerySQLReturnID(sql, lpar, ref MethodOfPayment_ID, ref oret, ref Err, "MethodOfPayment")) { return true; } else { LogFile.Error.Show("ERROR:f_MethodOfPayment:Get:sql=" + sql + "\r\nErr=" + Err); return false; } } } else { LogFile.Error.Show("ERROR:f_MethodOfPayment:Get:sql=" + sql + "\r\nErr=" + Err); return false; } }
internal void Print_Receipt_ESC_POS(InvoiceData xInvoiceData, string FursD_BussinesPremiseID, string ElectronicDevice_ID, int BaseCurrency_DecimalPlaces, GlobalData.ePaymentType PaymentType, string sPaymentMethod, string sAmountReceived, string sToReturn, DateTime_v issue_time) { //ReceiptPrinter.Print(ep.InitializePrinter()); long journal_docinvoice_id = -1; try { if (InitializePrinter()) { } if (PrintInBuffer) { Clear(); } if (xInvoiceData.MyOrganisation.Logo_Data != null) { this.wr_BitmapByteArray570x570imagesize(xInvoiceData.MyOrganisation.Logo_Data); } wr_SelectAnInternationalCharacterSet(Printer.eCharacterSet.Slovenia_Croatia); wr_Paragraph(xInvoiceData.MyOrganisation.Name); wr_Paragraph(xInvoiceData.MyOrganisation.Address.StreetName + " " + xInvoiceData.MyOrganisation.Address.HouseNumber); wr_Paragraph(xInvoiceData.MyOrganisation.Address.ZIP + " " + xInvoiceData.MyOrganisation.Address.City); if (xInvoiceData.MyOrganisation.HomePage != null) { if (xInvoiceData.MyOrganisation.HomePage.Length > 0) { wr_String("Domača stran:"); wr_SelectAnInternationalCharacterSet(Printer.eCharacterSet.USA); wr_String(xInvoiceData.MyOrganisation.HomePage); wr_SelectAnInternationalCharacterSet(Printer.eCharacterSet.Slovenia_Croatia); wr_NewLine(); ; } } if (xInvoiceData.MyOrganisation.Email != null) { if (xInvoiceData.MyOrganisation.Email.Length > 0) { wr_String("EPOŠTA:"); wr_SelectAnInternationalCharacterSet(Printer.eCharacterSet.USA); wr_String(xInvoiceData.MyOrganisation.Email); wr_SelectAnInternationalCharacterSet(Printer.eCharacterSet.Slovenia_Croatia); } } wr_NewLine(); wr_Paragraph("Davčna Številka:" + xInvoiceData.MyOrganisation.Tax_ID); wr_NewLine(2); //buffer = buffer + "\x1b\x1d\x61\x0"; //Left Alignment - Refer to Pg. 3-29 wr_SetHorizontalTabPositions(new byte[] { 2, 0x10, 0x22 }); wr_Paragraph("Številka računa: " + xInvoiceData.FinancialYear.ToString() + "/" + xInvoiceData.NumberInFinancialYear.ToString()); wr_Paragraph("Datum:" + xInvoiceData.IssueDate_v.v.Day.ToString() + "." + xInvoiceData.IssueDate_v.v.Month.ToString() + "." + xInvoiceData.IssueDate_v.v.Year.ToString() + "\x9" + " Čas:" + xInvoiceData.IssueDate_v.v.Hour.ToString() + ":" + xInvoiceData.IssueDate_v.v.Minute.ToString()); //Moving Horizontal Tab - Pg. 3-26 wr_LineDelimeter(); wr_BoldOn(); wr_Paragraph("PRODANO:"); wr_NewLine(); wr_BoldOff(); //Select Emphasized Printing - Pg. 3-14; //Cancel Emphasized Printing - Pg. 3-14 taxSum = null; taxSum = new StaticLib.TaxSum(); foreach (ItemSold itmsold in xInvoiceData.ItemsSold) { wr_Paragraph(itmsold.Item_Name); wr_String("Cena za enoto" + HT + itmsold.RetailPricePerUnit.ToString() + " EUR\n"); decimal TotalDiscount = StaticLib.Func.TotalDiscount(itmsold.Discount, itmsold.ExtraDiscount, BaseCurrency_DecimalPlaces); decimal TotalDiscountPercent = TotalDiscount * 100; if (TotalDiscountPercent > 0) { wr_String("Popust:" + TotalDiscountPercent.ToString() + " %\n"); } wr_String("Količina:" + HT + itmsold.dQuantity.ToString() + "\n"); if (TotalDiscountPercent > 0) { wr_String("Cena s popustom:" + HT + HT + itmsold.PriceWithTax.ToString() + " EUR\n"); } else { wr_String("Cena " + HT + HT + HT + itmsold.PriceWithTax.ToString() + " EUR\n"); } wr_String(itmsold.TaxationName + HT + HT + itmsold.TaxPrice.ToString() + " EUR\n"); wr_NewLine(); } //foreach (DataRow dr in xInvoiceData.dt_ShopB_Items.Rows) //{ // object o_SimpleItem_name = dr["Name"]; // string SimpleItem_name = null; // if (o_SimpleItem_name.GetType() == typeof(string)) // { // SimpleItem_name = (string)o_SimpleItem_name; // } // decimal RetailSimpleItemPrice = 0; // object o_RetailSimpleItemPrice = dr["RetailSimpleItemPrice"]; // if (o_RetailSimpleItemPrice.GetType() == typeof(decimal)) // { // RetailSimpleItemPrice = (decimal)o_RetailSimpleItemPrice; // } // decimal RetailSimpleItemPriceWithDiscount = 0; // object o_RetailSimpleItemPriceWithDiscount = dr["RetailSimpleItemPriceWithDiscount"]; // if (o_RetailSimpleItemPriceWithDiscount.GetType() == typeof(decimal)) // { // RetailSimpleItemPriceWithDiscount = (decimal)o_RetailSimpleItemPriceWithDiscount; // } // string TaxationName = "Davek ???"; // object oTaxationName = dr["Atom_Taxation_Name"]; // if (oTaxationName is string) // { // TaxationName = (string)oTaxationName; // } // decimal TaxPrice = -1; // object oTaxPrice = dr["TaxPrice"]; // if (oTaxPrice is decimal) // { // TaxPrice = (decimal)oTaxPrice; // taxSum.Add(TaxPrice, 0, (string)dr["Atom_Taxation_Name"], (decimal)dr["Atom_Taxation_Rate"]); // } // int iQuantity = -1; // object oQuantity = dr["iQuantity"]; // if (oQuantity is int) // { // iQuantity = (int)oQuantity; // } // decimal Discount = 0; // object oDiscount = dr["Discount"]; // if (oDiscount is decimal) // { // Discount = (decimal)oDiscount; // } // decimal ExtraDiscount = 0; // object oExtraDiscount = dr["ExtraDiscount"]; // if (oExtraDiscount is decimal) // { // ExtraDiscount = (decimal)oExtraDiscount; // } // Printer.wr_Paragraph(SimpleItem_name); // Printer.wr_String("Cena za enoto" + HT + RetailSimpleItemPrice.ToString() + " EUR\n"); // decimal TotalDiscount = StaticLib.Func.TotalDiscount(Discount, ExtraDiscount, Program.Get_BaseCurrency_DecimalPlaces()); // decimal TotalDiscountPercent = TotalDiscount * 100; // if (TotalDiscountPercent > 0) // { // Printer.wr_String("Popust:" + TotalDiscountPercent.ToString() + " %\n"); // } // Printer.wr_String("Količina:" + HT + iQuantity.ToString() + "\n"); // if (TotalDiscountPercent > 0) // { // Printer.wr_String("Cena s popustom:" + HT + HT + RetailSimpleItemPriceWithDiscount.ToString() + " EUR\n"); // } // else // { // Printer.wr_String("Cena " + HT + HT + HT + RetailSimpleItemPriceWithDiscount.ToString() + " EUR\n"); // } // Printer.wr_String(TaxationName + HT + HT + TaxPrice.ToString() + " EUR\n"); // Printer.wr_NewLine(); //} ////DocInvoice_ShopC_Item.ID AS DocInvoice_ShopC_Item_ID, ////DocInvoice_ShopC_Item.DocInvoice_ID, ////DocInvoice.Atom_myOrganisation_Person_ID, ////DocInvoice_ShopC_Item.Stock_ID, ////DocInvoice_ShopC_Item.Atom_Price_Item_ID, ////Atom_Item.ID as Atom_Item_ID, ////itm.ID as Item_ID, ////Atom_Price_Item.RetailPricePerUnit, ////Atom_Price_Item.Discount, ////DocInvoice_ShopC_Item.RetailPriceWithDiscount, ////DocInvoice_ShopC_Item.TaxPrice, ////DocInvoice_ShopC_Item.ExtraDiscount, ////DocInvoice_ShopC_Item.dQuantity, ////DocInvoice_ShopC_Item.ExpiryDate, ////Atom_Item.UniqueName AS Atom_Item_UniqueName, ////Atom_Item_Name.Name AS Atom_Item_Name_Name, ////Atom_Item_barcode.barcode AS Atom_Item_barcode_barcode, ////Atom_Taxation.Name AS Atom_Taxation_Name, ////Atom_Taxation.Rate AS Atom_Taxation_Rate, ////Atom_Item_Description.Description AS Atom_Item_Description_Description, ////Atom_Item.Atom_Warranty_ID, ////Atom_Warranty.WarrantyDurationType AS Atom_Warranty_WarrantyDurationType, ////Atom_Warranty.WarrantyDuration AS Atom_Warranty_WarrantyDuration, ////Atom_Warranty.WarrantyConditions AS Atom_Warranty_WarrantyConditions, ////Atom_Item.Atom_Expiry_ID, ////Atom_Expiry.ExpectedShelfLifeInDays AS Atom_Expiry_ExpectedShelfLifeInDays, ////Atom_Expiry.SaleBeforeExpiryDateInDays AS Atom_Expiry_SaleBeforeExpiryDateInDays, ////Atom_Expiry.DiscardBeforeExpiryDateInDays AS Atom_Expiry_DiscardBeforeExpiryDateInDays, ////Atom_Expiry.ExpiryDescription AS Atom_Expiry_ExpiryDescription, ////puitms.Item_ID AS Stock_Item_ID, ////Stock.ImportTime AS Stock_ImportTime, ////Stock.dQuantity AS Stock_dQuantity, ////Stock.ExpiryDate AS Stock_ExpiryDate, ////Atom_Unit.Name AS Atom_Unit_Name, ////Atom_Unit.Symbol AS Atom_Unit_Symbol, ////Atom_Unit.DecimalPlaces AS Atom_Unit_DecimalPlaces, ////Atom_Unit.Description AS Atom_Unit_Description, ////Atom_Unit.StorageOption AS Atom_Unit_StorageOption, ////Atom_PriceList.Name AS Atom_PriceList_Name, ////Atom_Currency.Name AS Atom_Currency_Name, ////Atom_Currency.Abbreviation AS Atom_Currency_Abbreviation, ////Atom_Currency.Symbol AS Atom_Currency_Symbol, ////Atom_Currency.DecimalPlaces AS Atom_Currency_DecimalPlaces //Printer.wr_NewLine(); //foreach (DocInvoice_ShopC_Item_Data appisd in xInvoiceData.m_ShopABC.m_CurrentInvoice.m_Basket.DocInvoice_ShopC_Item_Data_LIST) //{ // string Item_UniqueName = appisd.Atom_Item_UniqueName.v; // decimal RetailPricePerUnit = appisd.RetailPricePerUnit.v; // decimal RetailItemPriceWithDiscount = appisd.RetailPriceWithDiscount.v; // Printer.wr_String(Item_UniqueName + "\n"); // decimal dQuantity = appisd.dQuantity_FromStock + appisd.dQuantity_FromFactory; // string Atom_Unit_Name = appisd.Atom_Unit_Name.v; // Printer.wr_String("Cena za 1 " + Atom_Unit_Name + " = " + RetailPricePerUnit.ToString() + " EUR\n"); // decimal Discount = appisd.Discount.v; // decimal ExtraDiscount = appisd.ExtraDiscount.v; // decimal TotalDiscount = StaticLib.Func.TotalDiscount(Discount, ExtraDiscount, Program.Get_BaseCurrency_DecimalPlaces()); // decimal TotalDiscountPercent = TotalDiscount * 100; // if (TotalDiscountPercent > 0) // { // Printer.wr_String("Popust:" + TotalDiscountPercent.ToString() + " %\n"); // } // Printer.wr_String("Količina:" + HT + dQuantity.ToString() + " " + Atom_Unit_Name + "\n"); // decimal Atom_Taxation_Rate = appisd.Atom_Taxation_Rate.v; // decimal RetailItemsPriceWithDiscount = 0; // decimal ItemsTaxPrice = 0; // decimal ItemsNetPrice = 0; // int decimal_places = appisd.Atom_Currency_DecimalPlaces.v; // StaticLib.Func.CalculatePrice(RetailPricePerUnit, dQuantity, Discount, ExtraDiscount, Atom_Taxation_Rate, ref RetailItemsPriceWithDiscount, ref ItemsTaxPrice, ref ItemsNetPrice, decimal_places); // if (TotalDiscountPercent > 0) // { // Printer.wr_String("Cena s popustom:" + HT + HT + RetailItemsPriceWithDiscount.ToString() + " EUR\n"); // } // else // { // Printer.wr_String("Cena " + HT + HT + HT + RetailItemsPriceWithDiscount.ToString() + " EUR\n"); // } // string TaxationName = appisd.Atom_Taxation_Name.v; // decimal TaxPrice = appisd.TaxPrice.v; // taxSum.Add(ItemsTaxPrice, 0, TaxationName, Atom_Taxation_Rate); // Printer.wr_String(TaxationName + HT + HT + ItemsTaxPrice.ToString() + " EUR\n"); // Printer.wr_NewLine(); //} wr_LineDelimeter(); foreach (StaticLib.Tax tax in taxSum.TaxList) { wr_String(tax.Name + HT + HT + "" + tax.TaxAmount.ToString() + " EUR\n"); } wr_String("Brez davka " + HT + HT + "" + xInvoiceData.NetSum.ToString() + " EUR\n"); //buffer += "\x1B" + "G" + "\xFF"; wr_String("Skupaj " + HT + HT + xInvoiceData.GrossSum.ToString() + " EUR\n"); //buffer += "\x1B" + "G" + "\x00\n"; if (PaymentType != GlobalData.ePaymentType.NONE) { wr_String("Način plačila:" + sPaymentMethod + "\n"); if (PaymentType == GlobalData.ePaymentType.CASH) { wr_String(" Prejeto: " + sAmountReceived + " EUR\n"); wr_String(" Vrnjeno: " + sToReturn + " EUR\n"); } } wr_NewLine(1); wr_String("Številka računa za FURS:\n"); wr_String(FursD_BussinesPremiseID + "-" + ElectronicDevice_ID + "-" + xInvoiceData.NumberInFinancialYear.ToString()); wr_NewLine(1); wr_String("Oseba, ki je izdala račun:\n"); wr_String(xInvoiceData.Invoice_Author.FirstName + " " + xInvoiceData.Invoice_Author.LastName); if (xInvoiceData.AddOnDI.m_FURS.FURS_QR_v != null) { if (xInvoiceData.AddOnDI.m_FURS.FURS_Image_QRcode != null) { //Size size = new Size(32, 32); //Image img_new = StaticLib.Func.resizeImage(xInvoiceData.FURS_Response_Data.Image_QRcode, size, System.Drawing.Imaging.ImageFormat.Bmp, System.Drawing.Imaging.PixelFormat.Format1bppIndexed); //byte[] barr = StaticLib.Func.imageToByteArray(img_new); wr_NewLine(1); wr_String("ZOI:" + xInvoiceData.AddOnDI.m_FURS.FURS_ZOI_v.v + "\n"); wr_String("EOR:" + xInvoiceData.AddOnDI.m_FURS.FURS_EOR_v.v + "\n"); wr_NewLine(1); byte[] barr = StaticLib.Func.imageToByteArray(xInvoiceData.AddOnDI.m_FURS.FURS_Image_QRcode); wr_BitmapByteArray(barr, 180); } } wr_NewLine(6); PartialCutPaper(); if (PrintInBuffer) { Print_PrinterBuffer(); } string s_journal_invoice_type = lngRPM.s_journal_invoice_type_Print.s; string s_journal_invoice_description = PrinterName; f_Journal_DocInvoice.Write(xInvoiceData.DocInvoice_ID, GlobalData.Atom_WorkPeriod_ID, s_journal_invoice_type, s_journal_invoice_description, null, ref journal_docinvoice_id); } catch (Exception ex) { string s_journal_invoice_type = lngRPM.s_journal_invoice_type_PrintError.s + PrinterName + "\nErr=" + ex.Message; string s_journal_invoice_description = PrinterName; f_Journal_DocInvoice.Write(xInvoiceData.DocInvoice_ID, GlobalData.Atom_WorkPeriod_ID, s_journal_invoice_type, s_journal_invoice_description, null, ref journal_docinvoice_id); } }
internal void Print_Receipt(InvoiceData xInvoiceData, string FursD_BussinesPremiseID, string ElectronicDevice_ID, int BaseCurrencyDecimalPlaces, GlobalData.ePaymentType PaymentType, string sPaymentMethod, string sAmountReceived, string sToReturn, DateTime_v issue_time, NavigationButtons.Navigation nav) { if (Printer_is_ESC_POS()) { Print_Receipt_ESC_POS(xInvoiceData, FursD_BussinesPremiseID,ElectronicDevice_ID, BaseCurrencyDecimalPlaces, PaymentType, sPaymentMethod, sAmountReceived, sToReturn, issue_time); } else { Form_Print_A4 print_A4_dlg = new Form_Print_A4(xInvoiceData, PaymentType, sPaymentMethod, sAmountReceived, sToReturn, issue_time, nav); print_A4_dlg.ShowDialog(); } }
internal void Print_ProformaInvoice(InvoiceData xInvoiceData, int BaseCurrencyDecimalPlaces, GlobalData.ePaymentType PaymentType, string sPaymentMethod, string sBank, string sBankAccount, string sTermsOfPayment_Description, long DruationType, long Duration, DateTime_v issue_time ) { Form_Print_A4 print_A4_dlg = new Form_Print_A4(xInvoiceData, PaymentType, sPaymentMethod, DruationType, Duration, issue_time, null); print_A4_dlg.ShowDialog(); }
public bool SaveDocProformaInvoice(ref long docInvoice_ID, GlobalData.ePaymentType ePaymentType, long MethodOfPayment_ID, long docDuration, long docDurationType_ID, long termsOfPayment_ID, ref int xNumberInFinancialYear) { return m_ShopABC.m_CurrentInvoice.SaveDocProformaInvoice(ref DocInvoice_ID, ePaymentType, MethodOfPayment_ID, docDuration, docDurationType_ID, termsOfPayment_ID, ref xNumberInFinancialYear); }
public bool SaveDocInvoice(ref long docinvoice_ID, GlobalData.ePaymentType m_ePaymentType, string m_sPaymentMethod, string m_sAmountReceived, string m_sToReturn, ref int xNumberInFinancialYear) { return m_ShopABC.m_CurrentInvoice.SaveDocInvoice(ref DocInvoice_ID, m_ePaymentType, m_sPaymentMethod, m_sAmountReceived, m_sToReturn, ref xNumberInFinancialYear); }
public void Print_Receipt(InvoiceData m_InvoiceData, GlobalData.ePaymentType ePaymentType, string sPaymentMethod, string sAmountReceived, string sToReturn, DateTime_v issue_time) { }
public void Print_ProformaInvoice(InvoiceData m_InvoiceData, GlobalData.ePaymentType ePaymentType, string sPaymentMethod, string sBank, string sBankAccount, string sTermsOfPayment_Description, long DurationType, long Duration, DateTime_v issue_time) { Printer selected_printer = null; if (SelectPrinter(m_InvoiceData, ref selected_printer)) { selected_printer.Print_ProformaInvoice(m_InvoiceData, 2, ePaymentType, sPaymentMethod, sBank, sBankAccount, sTermsOfPayment_Description, DurationType, Duration, issue_time ); } }
public bool Init(byte[] xdoc, InvoiceData xInvoiceData, GlobalData.ePaymentType xpaymentType, string sPaymentMethod, string sAmountReceived, string sToReturn, DateTime_v issue_time) { m_InvoiceData = xInvoiceData; m_Doc = xdoc; m_paymentType = xpaymentType; m_sPaymentMethod = sPaymentMethod; m_sAmountReceived = sAmountReceived; m_sToReturn = sToReturn; m_issue_time = issue_time; string shtml_doc_text = html_doc_text; string s = m_InvoiceData.CreateHTML_Invoice(ref shtml_doc_text); this.m_webBrowser.DocumentText = s; this.m_webBrowser.Refresh(); this.btn_Print.Enabled = true; return true; }