Tuesday, 8 December 2009
Nominal Ledger None Taxable Receipt Example
Private Function NoneTaxableReceipt(ByVal oItem As ImportLine) As Boolean
Using oInstrument As Sage.Accounting.CashBook.BankReceiptJournalInstrument = Sage.Accounting.CashBook.BankReceiptJournalInstrumentFactory.Factory.CreateNew
Try
With oInstrument
.Bank = oItem.CashBookAccount
.InstrumentNo = _JournalInstrumentNo
.InstrumentDate = oItem.TransactionDate
.SecondReferenceNo = ""
.InstrumentItemNarrative = oItem.Narrative
If .NominalSettlementJournalInstrumentItems.Count = 0 Then
Dim oInstrumentItem As Sage.Accounting.NominalLedger.NominalSettlementJournalInstrumentItem = .CreateNewSettlementJournalInstrumentItem
oInstrumentItem.NominalSpecification = oItem.NominalCode.NominalSpecification
oInstrumentItem.NominalSpecification = oItem.NominalCode.NominalSpecification
oInstrumentItem.InstrumentDate = oItem.TransactionDate
oInstrumentItem.GrossAmount = oItem.DebitAmount
Else
.NominalSettlementJournalInstrumentItems(0).NominalSpecification = oItem.NominalCode.NominalSpecification
.NominalSettlementJournalInstrumentItems(0).NominalSpecification = oItem.NominalCode.NominalSpecification
.NominalSettlementJournalInstrumentItems(0).InstrumentDate = oItem.TransactionDate
.NominalSettlementJournalInstrumentItems(0).GrossAmount = oItem.DebitAmount
End If
'.ChequeGoodsValue = oItem.DebitAmount
.Validate()
.Update()
Return True
End With
Catch ex As Exception
Throw ex
End Try
End Using
End Function
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment