Add buttons to edit, confirm cost for receiving batch row view
not yet fully implemented
This commit is contained in:
parent
e906c01e64
commit
9d02180c92
|
@ -46,8 +46,8 @@
|
|||
${form.render_field_readonly('item_entry')}
|
||||
% endif
|
||||
${form.render_field_readonly('upc')}
|
||||
${form.render_field_readonly('vendor_code')}
|
||||
${form.render_field_readonly('product')}
|
||||
${form.render_field_readonly('vendor_code')}
|
||||
${form.render_field_readonly('case_quantity')}
|
||||
${form.render_field_readonly('catalog_unit_cost')}
|
||||
</div>
|
||||
|
@ -74,10 +74,12 @@
|
|||
<div class="buttons">
|
||||
<once-button type="is-primary"
|
||||
tag="a" href="${url('{}.receive_row'.format(route_prefix), uuid=batch.uuid, row_uuid=row.uuid)}"
|
||||
icon-left="download"
|
||||
text="Receive Product">
|
||||
</once-button>
|
||||
<once-button type="is-primary"
|
||||
tag="a" href="${url('{}.declare_credit'.format(route_prefix), uuid=batch.uuid, row_uuid=row.uuid)}"
|
||||
icon-left="thumbs-down"
|
||||
text="Declare Credit">
|
||||
</once-button>
|
||||
</div>
|
||||
|
@ -107,7 +109,26 @@
|
|||
<div>
|
||||
${form.render_field_readonly('invoice_line_number')}
|
||||
${form.render_field_readonly('invoice_unit_cost')}
|
||||
% if master.has_perm('edit_row'):
|
||||
<div class="is-pulled-right">
|
||||
<once-button type="is-primary"
|
||||
tag="a" href="${master.get_row_action_url('edit', row)}"
|
||||
## @click="editUnitCost()"
|
||||
## icon-pack="fas"
|
||||
icon-left="edit"
|
||||
text="Edit Unit Cost">
|
||||
</once-button>
|
||||
</div>
|
||||
% endif
|
||||
${form.render_field_readonly('invoice_cost_confirmed')}
|
||||
<div class="is-pulled-right">
|
||||
<b-button type="is-primary"
|
||||
@click="confirmUnitCost()"
|
||||
icon-pack="fas"
|
||||
icon-left="check">
|
||||
Confirm Unit Cost
|
||||
</b-button>
|
||||
</div>
|
||||
${form.render_field_readonly('invoice_total')}
|
||||
${form.render_field_readonly('invoice_total_calculated')}
|
||||
</div>
|
||||
|
@ -131,5 +152,20 @@
|
|||
% endif
|
||||
</%def>
|
||||
|
||||
<%def name="modify_this_page_vars()">
|
||||
${parent.modify_this_page_vars()}
|
||||
<script type="text/javascript">
|
||||
|
||||
## ThisPage.methods.editUnitCost = function() {
|
||||
## alert("TODO: not yet implemented")
|
||||
## }
|
||||
|
||||
ThisPage.methods.confirmUnitCost = function() {
|
||||
alert("TODO: not yet implemented")
|
||||
}
|
||||
|
||||
</script>
|
||||
</%def>
|
||||
|
||||
|
||||
${parent.body()}
|
||||
|
|
Loading…
Reference in a new issue