448 |
</and> |
</and> |
449 |
</condition> |
</condition> |
450 |
</datasource> |
</datasource> |
451 |
|
<!-- se va a stockMaintenance.nebc --> |
452 |
<!-- Origen de datos que sirve para consultar y asi actualizar el stock --> |
<!-- Origen de datos que sirve para consultar y asi actualizar el stock --> |
453 |
|
|
454 |
<datasource database="papo" name="ownItemToUpdDataSource" |
<!-- <datasource database="papo" name="ownItemToUpdDataSource" --> |
455 |
table="own_item, own_product_item, _price_data, _product_store_data"> |
<!-- table="own_item, own_product_item, _price_data, _product_store_data"> --> |
456 |
<condition> |
<!-- <condition> --> |
457 |
<and> |
<!-- <and> --> |
458 |
<eq> |
<!-- <eq> --> |
459 |
<cfield name="product_store.id"/> |
<!-- <cfield name="product_store.id"/> --> |
460 |
<cfield name="_product_store_data._table"/> |
<!-- <cfield name="_product_store_data._table"/> --> |
461 |
</eq> |
<!-- </eq> --> |
462 |
<eq> |
<!-- <eq> --> |
463 |
<cfield name="own_item.id"/> |
<!-- <cfield name="own_item.id"/> --> |
464 |
<cfield name="own_product_item.own_item"/> |
<!-- <cfield name="own_product_item.own_item"/> --> |
465 |
</eq> |
<!-- </eq> --> |
466 |
<eq> |
<!-- <eq> --> |
467 |
<cfield name="_price_data.id"/> |
<!-- <cfield name="_price_data.id"/> --> |
468 |
<cfield name="own_product_item.price"/> |
<!-- <cfield name="own_product_item.price"/> --> |
469 |
</eq> |
<!-- </eq> --> |
470 |
<eq> |
<!-- <eq> --> |
471 |
<cfield name="_price_data.product"/> |
<!-- <cfield name="_price_data.product"/> --> |
472 |
<cfield name="_product_store_data.product"/> |
<!-- <cfield name="_product_store_data.product"/> --> |
473 |
</eq> |
<!-- </eq> --> |
474 |
<null> |
<!-- <null> --> |
475 |
<cfield name="_product_store_data._end_t"/> |
<!-- <cfield name="_product_store_data._end_t"/> --> |
476 |
</null> |
<!-- </null> --> |
477 |
</and> |
<!-- </and> --> |
478 |
</condition> |
<!-- </condition> --> |
479 |
</datasource> |
<!-- </datasource> --> |
480 |
|
<!-- /se va a stockMaintenance.nebc --> |
481 |
|
|
482 |
<neb:Sub neb:src="datasource.nebc" zot="../zot/PAPO-ER.zot" |
<neb:Sub neb:src="datasource.nebc" zot="../zot/PAPO-ER.zot" |
483 |
search="currency_type" database="papo" name="currencyTypeDataSource" /> |
search="currency_type" database="papo" name="currencyTypeDataSource" /> |
641 |
postChangeAdvance = 5 |
postChangeAdvance = 5 |
642 |
lOwnDocId = str(ownDocumentBlock.idEntry) |
lOwnDocId = str(ownDocumentBlock.idEntry) |
643 |
#if stock by invoice |
#if stock by invoice |
644 |
|
|
645 |
if str(ownPosBlock.stockByInvoice) == "1": |
if str(ownPosBlock.stockByInvoice) == "1": |
646 |
ownItemToUpdBlock.initQuery() |
print "llamado al trigger" |
647 |
ownItemToUpdBlock.ownDocumentEntry = lOwnDocId |
callTrigger('stockTrigger') |
648 |
ownItemToUpdBlock.processQuery() |
#se va al stockmaintenance.nebc |
649 |
lRecordCount = ownItemToUpdBlock.getRecordCount() |
#ownItemToUpdBlock.initQuery() |
650 |
for recNum in range(lRecordCount): |
#ownItemToUpdBlock.ownDocumentEntry = lOwnDocId |
651 |
ownItemToUpdBlock.jumpRecord(recNum) |
#print "document number",lOwnDocId |
652 |
ownItemToUpdBlock.levelEntry.postAtomicModify(lambda x:x-round(float(str(ownItemToUpdBlock.qtyEntry)),4)) |
#storehouse |
653 |
ownItemToUpdBlock.clear() |
#ownItemToUpdBlock.storehouseEntry = str(ownStorehouseBlock.ownStorehouseIdEntry) |
654 |
#/if stock by invoice |
#/storehouse |
655 |
|
#ownItemToUpdBlock.processQuery() |
656 |
|
#lRecordCount = ownItemToUpdBlock.getRecordCount() |
657 |
|
#for recNum in range(lRecordCount): |
658 |
|
# ownItemToUpdBlock.jumpRecord(recNum) |
659 |
|
# ownItemToUpdBlock.levelEntry.postAtomicModify(lambda x:x-round(float(str(ownItemToUpdBlock.qtyEntry)),4)) |
660 |
|
#ownItemToUpdBlock.clear() |
661 |
|
#/if stock by invoice |
662 |
|
#/se va al stockmaintenance.nebc |
663 |
commitConnection() |
commitConnection() |
664 |
except DBError, err: |
except DBError, err: |
665 |
rollbackConnection() |
rollbackConnection() |
816 |
if hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2) > 0: |
if hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2) > 0: |
817 |
total -= round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2),2) |
total -= round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2),2) |
818 |
|
|
819 |
if total != 0: |
if total > 0: |
820 |
genericBox("El los montos no completan el total del documento\n",['Aceptar']) |
genericBox("El los montos no completan el total del documento\n",['Aceptar']) |
821 |
else: |
else: |
822 |
callTrigger('startWaitingModeTrigger') |
callTrigger('startWaitingModeTrigger') |
1139 |
<neb:Sub neb:src="posDocument.nebc" documentType="ownDocumentBlock.typeEntry" |
<neb:Sub neb:src="posDocument.nebc" documentType="ownDocumentBlock.typeEntry" |
1140 |
ownPosBlock="ownPosBlock" stockByInvoice="stockByInvoice" |
ownPosBlock="ownPosBlock" stockByInvoice="stockByInvoice" |
1141 |
ownPosEntityIdEntry="ownPosEntityIdEntry" ownPosDocumentBlock="ownPosDocumentBlock" |
ownPosEntityIdEntry="ownPosEntityIdEntry" ownPosDocumentBlock="ownPosDocumentBlock" |
1142 |
documentNumberEntry="documentNumberEntry" |
documentNumberEntry="documentNumberEntry" documentNumberEntryX="55" documentNumberEntryY="1" |
1143 |
documentNumberEntryX="55" |
searchNextDocumentNumber="searchNextInvoiceNumber" |
1144 |
documentNumberEntryY="1" searchNextDocumentNumber="searchNextInvoiceNumber" > |
ownStorehouseBlock ="ownStorehouseBlock" ownStorehouseIdEntry="ownStorehouseIdEntry" > |
1145 |
</neb:Sub> |
</neb:Sub> |
|
<!--nebulized --> |
|
|
<!-- <block name="ownPosBlock" datasource="ownPosDataSource"> --> |
|
|
<!-- <entry name="stockByInvoice" field="_own_pos_data.stock_by_invoice" x="75" y="1" /> --> |
|
|
<!-- <entry name="ownPosEntityIdEntry" field="_entity_data._table" x="85" y="1"/> --> |
|
|
<!-- <entry name="ownPosIdEntry" field="_own_pos_data._table" x="95" y="1"/> --> |
|
|
<!-- </block> --> |
|
|
<!-- # de factura --> |
|
|
<!-- <block name="ownPosDocumentBlock" datasource="ownPosDocumentDataSource"> --> |
|
|
<!-- <label name="dateLabel" text="Número de Factura:" --> |
|
|
<!-- x="32" y="1"/> --> |
|
|
<!-- <entry name="documentNumberEntry" field="_own_pos_document_data.number" style="label" --> |
|
|
<!-- x="55" y="1" width="15"/> --> |
|
|
<!-- <entry name="documentTypeEntry" field="_own_pos_document_data.document_type" hidden="" --> |
|
|
<!-- x="50" y="1" width="15"/> --> |
|
|
<!-- <entry name="own_posEntry" field="_own_pos_document_data.own_pos" hidden="" --> |
|
|
<!-- x="50" y="1" width="15"/> --> |
|
|
<!-- <entry name="documentPrintCommand" field="_own_pos_document_data.print_command" hidden="" --> |
|
|
<!-- x="50" y="1" width="15"/> --> |
|
|
<!-- </block> --> |
|
|
<!--/nebulized --> |
|
1146 |
|
|
1147 |
</box> |
</box> |
1148 |
|
|
1431 |
<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" |
1432 |
default="0.00"/> |
default="0.00"/> |
1433 |
</block> |
</block> |
1434 |
<block datasource="ownItemToUpdDataSource" name="ownItemToUpdBlock"> |
<neb:Sub neb:src="setStock.nebc" operation="-" ownDocumentId="ownDocumentBlock.idEntry" storehouseEntityId="ownStorehouseBlock.ownStorehouseIdEntry" |
1435 |
<entry name="ownDocumentEntry" field="own_item.own_document" hidden="" x="1" y="109" width="10"/> |
stockTrigger="stockTrigger"/> |
1436 |
<entry name="prodIdEntry" field="_price_data.product" hidden="" x="11" y="109" width="10"/> |
|
1437 |
<entry name="qtyEntry" field="own_product_item.qty" hidden="" x="22" y="109" width="10"/> |
<!-- se va a stockMaintenance.neb --> |
1438 |
<entry name="levelEntry" field="_product_store_data.level" hidden="" x="33" y="109" width="10"/> |
<!-- <block datasource="ownItemToUpdDataSource" name="ownItemToUpdBlock"> --> |
1439 |
<entry name="productEntry" field="_product_store_data.product" hidden="" x="33" y="109" width="10"/> |
<!-- <entry name="ownDocumentEntry" field="own_item.own_document" hidden="" x="1" y="109" width="10"/> --> |
1440 |
<entry name="storehouseEntry" field="_product_store_data.storehouse" hidden="" x="33" y="109" width="10"/> |
<!-- <entry name="prodIdEntry" field="_price_data.product" hidden="" x="11" y="109" width="10"/> --> |
1441 |
<entry name="hiwaterEntry" field="_product_store_data.hiwater" hidden="" x="33" y="109" width="10"/> |
<!-- <entry name="qtyEntry" field="own_product_item.qty" hidden="" x="22" y="109" width="10"/> --> |
1442 |
<entry name="lowaterEntry" field="_product_store_data.lowater" hidden="" x="33" y="109" width="10"/> |
<!-- <entry name="levelEntry" field="_product_store_data.level" hidden="" x="33" y="109" width="10"/> --> |
1443 |
<entry name="tableEntry" field="_product_store_data._table" hidden="" x="33" y="109" width="10"/> |
<!-- <entry name="productEntry" field="_product_store_data.product" hidden="" x="33" y="109" width="10"/> --> |
1444 |
</block> |
<!-- <entry name="storehouseEntry" field="_product_store_data.storehouse" hidden="" x="33" y="109" width="10"/> --> |
1445 |
|
<!-- <entry name="hiwaterEntry" field="_product_store_data.hiwater" hidden="" x="33" y="109" width="10"/> --> |
1446 |
|
<!-- <entry name="lowaterEntry" field="_product_store_data.lowater" hidden="" x="33" y="109" width="10"/> --> |
1447 |
|
<!-- <entry name="tableEntry" field="_product_store_data._table" hidden="" x="33" y="109" width="10"/> --> |
1448 |
|
<!-- </block> --> |
1449 |
|
<!-- /se va a stockMaintenance.neb --> |
1450 |
<block datasource="creditLimit1DataSource" name="creditLimit1Block"> |
<block datasource="creditLimit1DataSource" name="creditLimit1Block"> |
1451 |
<entry name="entityEntry" field="_credit_limit_data.entity" hidden="" x="11" y="109" width="10"/> |
<entry name="entityEntry" field="_credit_limit_data.entity" hidden="" x="11" y="109" width="10"/> |
1452 |
<entry name="movementTypeEntry" field="_credit_limit_data.movement_type" hidden="" x="1" y="109" width="10"/> |
<entry name="movementTypeEntry" field="_credit_limit_data.movement_type" hidden="" x="1" y="109" width="10"/> |