public Form_DocInvoice_AddOn(DocInvoice_AddOn x_DocInvoice_AddOn,bool x_bPrint, usrc_AddOn x_usrc_AddOn) { InitializeComponent(); this.m_AddOnDI = x_DocInvoice_AddOn; m_usrc_AddOn = x_usrc_AddOn; m_bPrint = x_bPrint; this.Text = lngRPM.s_PaymentOfInvoiceAndPrint.s; }
private bool Get_DocInvoice_AddOn(DocInvoice_AddOn x_DocInvoice_AddOn, bool xbPrint) { Form_DocInvoice_AddOn payment_frm = new Form_DocInvoice_AddOn(x_DocInvoice_AddOn, xbPrint, this); if (payment_frm.ShowDialog() == DialogResult.OK) { Show(m_usrc_Invoice.m_ShopABC.m_CurrentInvoice.Doc_ID); return true; } return false; }
internal bool Check_DocInvoice_AddOn(DocInvoice_AddOn addOnDI) { if (addOnDI.Completed()) { if (addOnDI.IsCashPayment) { Form_DocInvoice_PaymentCash dlg_cash = new Form_DocInvoice_PaymentCash(this.m_usrc_Invoice.GrossSum); if (dlg_cash.ShowDialog() == DialogResult.OK) { addOnDI.Cash_AmountReceived = dlg_cash.Cash_AmountReceived; addOnDI.Cash_ToReturn = dlg_cash.Cash_ToReturn; return true; } } } else { } return false; }
//, int xCurrency_DecimalPlaces, decimal xGrossSum) public bool Init(DocInvoice_AddOn x_AddOnDI, bool bxPrint, usrc_AddOn x_usrc_AddOn) { Enable_BankAccountTransfer(false); m_AddOnDI = x_AddOnDI; m_bPrint = bxPrint; m_usrc_AddOn = x_usrc_AddOn; if (m_bPrint) { lngRPM.s_Print.Text(this.btn_Print); } else { this.btn_Print.Text = "OK"; } if (m_AddOnDI.Get(m_usrc_AddOn.m_usrc_Invoice.m_ShopABC.m_CurrentInvoice.Doc_ID)) { if (m_AddOnDI.m_IssueDate != null) { dtP_DateOfIssue.Value = m_AddOnDI.m_IssueDate.Date; } if (m_AddOnDI.m_PaymentDeadline != null) { dtP_PaymentDeadline.Value = m_AddOnDI.m_PaymentDeadline.Date; } if (m_AddOnDI.m_MethodOfPayment != null) { switch (m_AddOnDI.m_MethodOfPayment.eType) { case GlobalData.ePaymentType.CASH: rdb_Cash.Checked = true; break; case GlobalData.ePaymentType.PAYMENT_CARD: rdb_CARD.Checked = true; break; case GlobalData.ePaymentType.CASH_OR_PAYMENT_CARD: rdb_Cash.Checked = true; break; case GlobalData.ePaymentType.BANK_ACCOUNT_TRANSFER: rdb_BankAccountTransfer.Checked = true; txt_BankAccount.Text = SetBankAccountText(); Enable_BankAccountTransfer(true); break; } } if (m_AddOnDI.m_TermsOfPayment != null) { txt_PaymantConditionsDescription.Text = m_AddOnDI.m_TermsOfPayment.Description; } return true; } else { return false; } }
public InvoiceData(TangentaDB.ShopABC xInvoiceDB, long xDocProformaInvoice_ID, bool xb_FVI_SLO, string xCasshierName) { m_ShopABC = xInvoiceDB; DocInvoice_ID = xDocProformaInvoice_ID; if (IsDocInvoice) { AddOnDI = new DocInvoice_AddOn(); AddOnDI.m_FURS.Invoice_FURS_Token = new UniversalInvoice.Invoice_FURS_Token(); AddOnDI.b_FVI_SLO = xb_FVI_SLO; } CasshierName = xCasshierName; }
public static bool IssueDoc(string docInvoice, DocInvoice_AddOn addOnDI, long doc_ID) { throw new NotImplementedException(); }