594 |
#cargo pos |
#cargo pos |
595 |
ownDocumentBlock.ownPosEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
ownDocumentBlock.ownPosEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
596 |
#/cargo pos |
#/cargo pos |
597 |
ownDocumentBlock.dateEntry = str(tmpBlock.tmpDateEntry ) |
ownDocumentBlock.dueDateEntry = str(payBlock.dateEntry) |
598 |
|
ownDocumentBlock.dateEntry = str(tmpBlock.tmpDateEntry) |
599 |
if len(ownDocumentBlock.dateEntry) == 0: |
if len(ownDocumentBlock.dateEntry) == 0: |
600 |
ownDocumentBlock.dateEntry = ownDocumentDataSource.getTimeStamp() |
ownDocumentBlock.dateEntry = ownDocumentDataSource.getTimeStamp() |
601 |
|
|
627 |
#currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
#currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
628 |
#currencyMovementBlock.currencyTypeEntry = "1" |
#currencyMovementBlock.currencyTypeEntry = "1" |
629 |
#currencyMovementBlock.amountEntry = str(payBlock.cashEntry) |
#currencyMovementBlock.amountEntry = str(payBlock.cashEntry) |
|
|
|
630 |
from gnue.common.GDataObjects import ConnectionError as DBError |
from gnue.common.GDataObjects import ConnectionError as DBError |
631 |
try: |
try: |
632 |
postChangeAdvance = 0 |
postChangeAdvance = 0 |
651 |
ownItemToUpdBlock.jumpRecord(recNum) |
ownItemToUpdBlock.jumpRecord(recNum) |
652 |
ownItemToUpdBlock.levelEntry.postAtomicModify(lambda x:x-round(float(str(ownItemToUpdBlock.qtyEntry)),4)) |
ownItemToUpdBlock.levelEntry.postAtomicModify(lambda x:x-round(float(str(ownItemToUpdBlock.qtyEntry)),4)) |
653 |
ownItemToUpdBlock.clear() |
ownItemToUpdBlock.clear() |
654 |
#/if stock by invoice |
#/if stock by invoice |
655 |
commitConnection() |
commitConnection() |
656 |
except DBError, err: |
except DBError, err: |
657 |
rollbackConnection() |
rollbackConnection() |
658 |
message = ["la Factura","el número de la Factura","el procedimiento General", |
message = ["la Factura","el número de la Factura","el procedimiento General", |
769 |
|
|
770 |
currencyDataBlock.clientRecipientBox.clientCodeEntry = str(ownDocumentBlock.clientRecipientBox.clientCodeEntry) |
currencyDataBlock.clientRecipientBox.clientCodeEntry = str(ownDocumentBlock.clientRecipientBox.clientCodeEntry) |
771 |
currencyDataBlock.clientRecipientBox.clientNameEntry = str(ownDocumentBlock.clientRecipientBox.clientNameEntry) |
currencyDataBlock.clientRecipientBox.clientNameEntry = str(ownDocumentBlock.clientRecipientBox.clientNameEntry) |
772 |
|
payBlock.dateEntry = str(tmpBlock.tmpDateEntry) |
773 |
currencyDataBlock.clientRecipientBox.totalEntry = str(payBlock.cashEntry) |
currencyDataBlock.clientRecipientBox.totalEntry = str(payBlock.cashEntry) |
774 |
|
|
775 |
]]></trigger> |
]]></trigger> |
823 |
]]> |
]]> |
824 |
</trigger> |
</trigger> |
825 |
|
|
826 |
|
<trigger name="cashEntryPreFocusout" type="NAMED"> |
827 |
|
|
828 |
|
import hack |
829 |
|
payBlock.ctaCteEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.cashEntry)) |
830 |
|
callTrigger('currencyTypeTrigger') |
831 |
|
|
832 |
|
</trigger> |
833 |
|
|
834 |
|
<trigger name="cashEntryPreFocusout" type="NAMED"> |
835 |
|
|
836 |
|
import hack |
837 |
|
payBlock.cashEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry)) |
838 |
|
callTrigger('currencyTypeTrigger') |
839 |
|
|
840 |
|
</trigger> |
841 |
|
|
842 |
<trigger type="NAMED" name="cancelCurrencyTrigger"><![CDATA[ |
<trigger type="NAMED" name="cancelCurrencyTrigger"><![CDATA[ |
843 |
|
|
844 |
setFocus(ownItemBlock.prodCodeSEntry) |
setFocus(ownItemBlock.prodCodeSEntry) |
1064 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
1065 |
<entry field="net_total" hidden="" name="netTotalEntry" x="1" y="1"/> |
<entry field="net_total" hidden="" name="netTotalEntry" x="1" y="1"/> |
1066 |
<entry field="tax_total" hidden="" name="taxTotalEntry" x="1" y="1"/> |
<entry field="tax_total" hidden="" name="taxTotalEntry" x="1" y="1"/> |
1067 |
|
<entry field="due_date" hidden="" name="dueDateEntry" x="1" y="1"/> |
1068 |
<!-- cargo pos --> |
<!-- cargo pos --> |
1069 |
<entry field="own_entity" hidden="" name="ownPosEntityIdEntry" x="1" y="1"/> |
<entry field="own_entity" hidden="" name="ownPosEntityIdEntry" x="1" y="1"/> |
1070 |
<!-- /cargo pos --> |
<!-- /cargo pos --> |
1481 |
<label text="Fecha:" x="1" y="1" /> |
<label text="Fecha:" x="1" y="1" /> |
1482 |
<label text="Tipo:" x="25" y="1"/> |
<label text="Tipo:" x="25" y="1"/> |
1483 |
<label text="Número:" x="35" y="1"/> |
<label text="Número:" x="35" y="1"/> |
1484 |
<entry name="dateEntry" style="label" typecast="date" width="14" x="8" y="1"/> |
<entry name="dateEntry" style="label" typecast="date" width="11" x="8" y="1"/> |
1485 |
<entry name="typeEntry" style="label" width="1" x="32" y="1"/> |
<entry name="typeEntry" style="label" width="1" x="32" y="1"/> |
1486 |
<entry name="numberEntry" style="label" typecast="number" width="14" x="43" y="1"/> |
<entry name="numberEntry" style="label" typecast="number" width="11" x="43" y="1"/> |
1487 |
</box> |
</box> |
1488 |
<box height="5" label="Datos del Cliente" name="clientRecipientBox" width="105" x="0" y="3"> |
<box height="5" label="Datos del Cliente" name="clientRecipientBox" width="105" x="0" y="3"> |
1489 |
<label name="codeLbl" text="Codigo" x="1" y="1"/> |
<label name="codeLbl" text="Codigo" x="1" y="1"/> |
1528 |
<label text="Efectivo : " x="1" y="1"/> |
<label text="Efectivo : " x="1" y="1"/> |
1529 |
<entry name="cashEntry" typecast="number" displaymask="%0.2f" default="0.00" |
<entry name="cashEntry" typecast="number" displaymask="%0.2f" default="0.00" |
1530 |
x="11" y="1" width="12"> |
x="11" y="1" width="12"> |
1531 |
<trigger name="cashEntryPreFocusout" type="Pre-Focusout"> |
<trigger src="cashEntryPreFocusout" type="Pre-Focusout"/> |
|
import hack |
|
|
payBlock.ctaCteEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.cashEntry)) |
|
|
</trigger> |
|
1532 |
<options> |
<options> |
1533 |
<option name="tip" value="Importe al Contado"/> |
<option name="tip" value="Importe al Contado"/> |
1534 |
</options> |
</options> |
1536 |
<label text="Cta. Cte. : " x="24" y="1"/> |
<label text="Cta. Cte. : " x="24" y="1"/> |
1537 |
<entry name="ctaCteEntry" typecast="number" displaymask="%0.2f" default="0.00" |
<entry name="ctaCteEntry" typecast="number" displaymask="%0.2f" default="0.00" |
1538 |
x="36" y="1" width="12"> |
x="36" y="1" width="12"> |
1539 |
<trigger name="ctaCteEntryPreFocusOut" type="Pre-Focusout"> |
<trigger src="cashEntryPreFocusout" type="Pre-Focusout"/> |
|
import hack |
|
|
payBlock.cashEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry)) |
|
|
</trigger> |
|
1540 |
<options> |
<options> |
1541 |
<option name="tip" value="Importe en Cuenta corriente"/> |
<option name="tip" value="Importe en Cuenta corriente"/> |
1542 |
</options> |
</options> |
1543 |
</entry> |
</entry> |
1544 |
|
<label text="Vencimiento : " x="50" y="1"/> |
1545 |
|
<entry name="dateEntry" typecast="date" x="64" y="1" width="11"> |
1546 |
|
<options> |
1547 |
|
<option name="tip" value="Vencimiento estimado de la factura"/> |
1548 |
|
</options> |
1549 |
|
</entry> |
1550 |
</block> |
</block> |
1551 |
</box> |
</box> |
1552 |
</block> |
</block> |