202 |
</condition> |
</condition> |
203 |
</datasource> |
</datasource> |
204 |
|
|
|
<!-- Origen de datos que sirve para consultar y asi actualizar el stock --> |
|
|
|
|
|
<datasource database="papo" name="ownItemToUpdDataSource" |
|
|
table="own_item, own_product_item, _price_data, _product_store_data"> |
|
|
<condition> |
|
|
<and> |
|
|
<eq> |
|
|
<cfield name="product_store.id"/> |
|
|
<cfield name="_product_store_data._table"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="own_item.id"/> |
|
|
<cfield name="own_product_item.own_item"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_price_data.id"/> |
|
|
<cfield name="own_product_item.price"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_price_data.product"/> |
|
|
<cfield name="_product_store_data.product"/> |
|
|
</eq> |
|
|
<null> |
|
|
<cfield name="_product_store_data._end_t"/> |
|
|
</null> |
|
|
</and> |
|
|
</condition> |
|
|
</datasource> |
|
|
|
|
205 |
<!-- Origen de datos que sirve para dar de alta pagos con algun tipo de currency --> |
<!-- Origen de datos que sirve para dar de alta pagos con algun tipo de currency --> |
206 |
<datasource name="currencyMovementDataSource" database="papo" |
<datasource name="currencyMovementDataSource" database="papo" |
207 |
table="movement, currency_movement"> |
table="movement, currency_movement"> |
305 |
currencyMovementBlock.postChanges() |
currencyMovementBlock.postChanges() |
306 |
postChangeAdvance = 5 |
postChangeAdvance = 5 |
307 |
if str(ownPosBlock.stockByInvoice) == "1": |
if str(ownPosBlock.stockByInvoice) == "1": |
308 |
lOwnDocId = str(ownDocumentBlock.idEntry) |
callTrigger('stockAddTrigger') |
|
|
|
|
ownItemToUpdBlock.initQuery() |
|
|
ownItemToUpdBlock.ownDocumentEntry = lOwnDocId |
|
|
#storehouse |
|
|
ownItemToUpdBlock.storehouseEntry = str(ownStorehouseBlock.ownStorehouseIdEntry) |
|
|
#/storehouse |
|
|
ownItemToUpdBlock.processQuery() |
|
|
lRecordCount = ownItemToUpdBlock.getRecordCount() |
|
|
for recNum in range(lRecordCount): |
|
|
ownItemToUpdBlock.jumpRecord(recNum) |
|
|
ownItemToUpdBlock.levelEntry.atomicModify(lambda x:x+round(float(str(ownItemToUpdBlock.qtyEntry)),4)) |
|
|
ownItemToUpdBlock.clear() |
|
|
#/if stock by invoice |
|
309 |
commitConnection() |
commitConnection() |
310 |
except DBError, err: |
except DBError, err: |
311 |
rollbackConnection() |
rollbackConnection() |
843 |
<entry name="totalEntry" style="label" readonly="" x="82" y="22" width="12" typecast="number" displaymask="%0.2f" |
<entry name="totalEntry" style="label" readonly="" x="82" y="22" width="12" typecast="number" displaymask="%0.2f" |
844 |
default="0.00"/> |
default="0.00"/> |
845 |
</block> |
</block> |
846 |
<block datasource="ownItemToUpdDataSource" name="ownItemToUpdBlock"> |
<neb:Sub neb:src="setStock.nebc" ownDocumentId="ownDocumentBlock.idEntry" storehouseEntityId="ownStorehouseBlock.ownStorehouseIdEntry" |
847 |
<entry name="ownDocumentEntry" field="own_item.own_document" hidden="" x="1" y="109" width="10"/> |
stockAddTrigger="stockAddTrigger" stockSubstractTrigger="stockSubstractTrigger"/> |
848 |
<entry name="prodIdEntry" field="_price_data.product" hidden="" x="11" y="109" width="10"/> |
|
|
<entry name="qtyEntry" field="own_product_item.qty" hidden="" x="22" y="109" width="10"/> |
|
|
<entry name="levelEntry" field="_product_store_data.level" hidden="" x="33" y="109" width="10"/> |
|
|
<entry name="productEntry" field="_product_store_data.product" hidden="" x="33" y="109" width="10"/> |
|
|
<entry name="storehouseEntry" field="_product_store_data.storehouse" hidden="" x="33" y="109" width="10"/> |
|
|
<entry name="hiwaterEntry" field="_product_store_data.hiwater" hidden="" x="33" y="109" width="10"/> |
|
|
<entry name="lowaterEntry" field="_product_store_data.lowater" hidden="" x="33" y="109" width="10"/> |
|
|
<entry name="tableEntry" field="_product_store_data._table" hidden="" x="33" y="109" width="10"/> |
|
|
</block> |
|
849 |
|
|
850 |
<!-- <box height="4" label="Cobro de la Nota de Crédito" name="payBox" --> |
<!-- <box height="4" label="Cobro de la Nota de Crédito" name="payBox" --> |
851 |
<!-- width="82" x="0" y="23"> --> |
<!-- width="82" x="0" y="23"> --> |