forked from verdnatura/hedera-web
24 lines
412 B
JavaScript
24 lines
412 B
JavaScript
|
|
Hedera.ItemsForm = new Class
|
|
({
|
|
Extends: Hedera.Form
|
|
|
|
,activate: function ()
|
|
{
|
|
this.$('warehouse').value = 7;
|
|
this.$('realm').value = null;
|
|
}
|
|
|
|
,onPreviewClick: function ()
|
|
{
|
|
var batch = new Sql.Batch ();
|
|
batch.addValues ({
|
|
'warehouse': this.$('warehouse').value
|
|
,'realm': this.$('realm').value
|
|
,'rate': this.$('rate').value
|
|
});
|
|
this.gui.openReport ('items-report', batch);
|
|
}
|
|
});
|
|
|