217 |
|
|
218 |
<!-- Origen de datos que srive para calcular el total facturado --> |
<!-- Origen de datos que srive para calcular el total facturado --> |
219 |
<datasource name="productCreditNoteTotalDataSource" database="papo" |
<datasource name="productCreditNoteTotalDataSource" database="papo" |
220 |
table="_entity_data, own_document, own_item, own_product_item, own_item_tax" |
table="_entity_data"> |
|
order_by="own_product_item.id"> |
|
221 |
<condition> |
<condition> |
222 |
<and> |
<and> |
223 |
<eq> |
<eq> |
718 |
|
|
719 |
while more: |
while more: |
720 |
currOwnDoc = productCreditNoteResultSet.current.getField("own_document.id") |
currOwnDoc = productCreditNoteResultSet.current.getField("own_document.id") |
721 |
creditNoteTotal = hack.a2f(creditNoteTotalproductCreditNoteResultSet.current.getField("own_document.net_total"),4)+\ |
creditNoteTotal = hack.a2f(productCreditNoteResultSet.current.getField("own_document.net_total"),4)+\ |
722 |
hack.a2f(creditNoteTotalproductCreditNoteResultSet.current.getField("own_document.tax_total"),4) |
hack.a2f(productCreditNoteResultSet.current.getField("own_document.tax_total"),4) |
723 |
|
|
724 |
creditTotal += creditNoteTotal |
creditTotal += creditNoteTotal |
725 |
more = productCreditNoteResultSet.nextRecord() |
more = productCreditNoteResultSet.nextRecord() |