Skip to content

Commit

Permalink
Merge pull request #564 from Adelantia/master
Browse files Browse the repository at this point in the history
Añadido ventasinstock al modelo productos y a EditProducto.xml
  • Loading branch information
NeoRazorX committed Jul 17, 2018
2 parents 2bbe8e1 + 2f512b6 commit 7da4755
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core/Model/Producto.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function clear()
$this->secompra = true;
$this->sevende = true;
$this->stockfis = 0.0;
$this->ventasinstock = false;
$this->ventasinstock = AppSettings::get('default', 'ventasinstock');
}

/**
Expand Down
3 changes: 3 additions & 0 deletions Core/XMLView/EditProducto.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
<column name="bloqueado" title="blocked" order="130">
<widget type="checkbox" fieldname="bloqueado"/>
</column>
<column name="ventasinstock" title="sale-no-stock" order="140">
<widget type="checkbox" fieldname="ventasinstock"/>
</column>
</group>
<group name="observations" numcolumns="12">
<column name="observations" order="100">
Expand Down
2 changes: 1 addition & 1 deletion Core/XMLView/SettingsDefault.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<values source="impuestos" fieldcode="codimpuesto" fieldtitle="descripcion"></values>
</widget>
</column>
<column name="ventasinstock" numcolumns="3" order="140">
<column name="ventasinstock" title="sale-no-stock" numcolumns="3" order="140">
<widget type="checkbox" fieldname="ventasinstock" />
</column>
</group>
Expand Down

0 comments on commit 7da4755

Please sign in to comment.