General ledger entity

Entity gl_batch

ElementDescriptionDefaultTypeMandatory
batch_numberBooking reference numberTEXTYes
transdateTransaction dateDATEYes
descriptionTEXT
currencyThree char currency codeCHFTEXT(3)
exchangerate1DOUBLE
notesInternal notesTEXT
gl_transactionsList of general ledger transactionsGeneral ledger transaction entities

Entity gl_transaction

ElementDescriptionDefaultTypeMandatory
accnoAccount numberTEXTYes
debit_amountDOUBLEYes or credit amount
credit_amountDOUBLEYes or debit amount
memoAdditional note per transaction entryTEXT
sourceAdditional text field per transaction entryTEXT

Examples

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gl_batch>
  <batch_number>GL-001</batch_number>
  <currency>CHF</currency>
  <transdate>2013-07-30T00:00:00+02:00</transdate>
  <description>Bankübertrag</description>
  <notes></notes>
  <intnotes></intnotes>
  <exchangerate>1.0</exchangerate>
  <gl_transactions>
    <gl_transaction>
      <accno>1020</accno>
      <memo></memo>
      <source></source>
      <debit_amount>100</debit_amount>
      <credit_amount>0</credit_amount>
    </gl_transaction>  
    <gl_transaction>
      <accno>1021</accno>
      <memo></memo>
      <source></source>
      <accno></accno>
      <debit_amount>0</debit_amount>
      <credit_amount>100</credit_amount>
    </gl_transaction>
  </gl_transactions>
</gl_batch>
{  
   "batch_number":"GL-001",
   "transdate":"2016-04-06T11:48:05.555+02:00",
   "description":"Bankuebertrag",
   "currency":"CHF",
   "exchangerate":1.0,
   "gl_transactions":{  
      "gl_transaction":[  
         {  
            "debit_amount":100.0,
            "accno":"1020"
         },
         {  
            "credit_amount":100.0,
            "accno":"1021"
         }
      ]
   }
}
War dieser Artikel hilfreich?
Dislike 0
Ansichten: 15