|
![]() |
#1 |
Участник
|
Спасибо Pustik за описание сего процесса!
Немного уточню/подытожу: В таблицу CustInvoice4PaymJour_RU добавляю филд ConsigneeAccount_RU 1) В SalesFormLetter_Invoice4Paym_RU.writeJournal() добавляю запись: custInvoice4PaymJour.ConsigneeAccount_RU = salestable.ConsigneeAccount_RU; 2) В SalesPurchReport_Invoice4Paym_RU.prepareReportHeader() добавляю запись: header.ConsigneeAccount_RU = invoiceJour.ConsigneeAccount_RU; 3) В таблице TmpSalesPurchReportTable_RU в методе initFromInvoiceJour добавляю запись: this.ConsigneeAccount_RU = _invoiceJour.ConsigneeAccount_RU; 4)Вопрос. Проанализировав класс SalesReport_Invoice4Paym_RU. prepareReportHeader(): protected void prepareReportHeader() { SalesPurchReportCounteragentData_RU counteragentData; CustPaymModeTable custPaymMode; super(); header.DueDate = header.DueDate ? header.DueDate : invoiceJour.DueDate; // Respite date counteragentData = this.initContragentData(customer, customerBankAccount, invoiceJour.OrderAccount); header.CustName = invoiceJour.DeliveryName; header.CustBankAddress = invoiceJour.DeliveryAddresss; header.CustINN = 'ИНН\\КПП ' + counteragentData.parmINN() + '\\' +counteragentData.parmKPP(); custPaymMode = CustPaymModeTable::find(Salestable::find(invoiceJour.SalesPurchId).PaymMode); counteragentData = this.initCompanyData(custPaymMode.AccountType == LedgerJournalACType::Bank ? custPaymMode.PaymAccount : ""); header.VendINN = 'ИНН\\КПП ' + counteragentData.parmINN() + '\\' +counteragentData.parmKPP(); header.VendName = counteragentData.parmName();// + ', ' + counteragentData.fullBankAccountName(); header.VendBank = counteragentData.BankAccountName(); header.VendBankAccount = counteragentData.BankAccountNum(); header.VendBIC = counteragentData.BankBIC_RU(); header.VendCorrAccount = counteragentData.BankCorrAccount_RU(); header.VendBankAddress = counteragentData.fullAddress(false, true) ////////////////////// Нужно ли в выше указанный код что-то дописывать? подозреваю что нужно ?! На данный момент то, что описал выше - дописал, но к сожалению тщетно- в теле письма error Последний раз редактировалось AX3; 17.01.2012 в 10:19. |
|
![]() |
#2 |
Участник
|
CustVendInvoiceJour(_invoiceJour) - ЭТО МАР. Надо ему(мар-у) дать понять, что означает поле ConsigneeAccount_RU от таблицы CustInvoice4PaymJour_RU. Т.е. связать поле мар-а с полем таблицы. Найдите этот Мар через репозитарий и в разделе Mappings привяжите поле мар-а ConsigneeAccount_RU к такому же полю таблицы CustInvoice4PaymJour_RU.
__________________
-Ты в гномиков веришь? -Нет. -А они в тебя верят, смотри, не подведи их. Последний раз редактировалось Pustik; 17.01.2012 в 14:41. |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|