code stringlengths 3 6.57k |
|---|
is_affiliated() |
prep(r) |
T("Save Changes") |
T("You do not have permission for any facility to make a commitment.") |
A(T("Set as default Site") |
click(function() |
val() |
if(site_id) |
attr('href') |
url.indexOf('?') |
if(exists=='-1') |
attr('href',url+'?site_id='+site_id) |
T("Items") |
s3db.configure("req_commit", crud_form=crud_form) |
T("You do not have permission for any facility to make a commitment.") |
A(T("Set as default Site") |
auth.permitted_organisations(table=r.table, redirect_on_error=False) |
T("People") |
s3db.configure("req_commit", crud_form=crud_form) |
auth.permitted_organisations(table=r.table, redirect_on_error=False) |
postp(r, output) |
s3_action_buttons(r) |
str(T("Prepare Shipment") |
S3ConfirmClick('.send-btn','%s') |
T("Are you sure you want to send this shipment?") |
s3_rest_controller(rheader=commit_rheader) |
commit_rheader(r) |
T("Edit Details") |
int(record.type) |
tabs.append((T("Items") |
DIV(TABLE(TR(TH("%s: " % table.req_id.label) |
table.req_id.represent(record.req_id) |
TR(TH("%s: " % T("Committing Warehouse") |
s3db.org_site_represent(record.site_id) |
TH("%s: " % T("Commit Date") |
s3_date_represent(record.date) |
TR(TH("%s: " % table.comments.label) |
TD(record.comments or "", _colspan=3) |
A(T("Prepare Shipment") |
A( T("Send Commitment as Shipment") |
SCRIPT("S3ConfirmClick('#send_commit', '%s') |
T("Do you want to send these Committed items?") |
rheader.append(send_btn) |
rheader.append(send_btn_confirm) |
tabs.append((T("People") |
tabs.append((T("People") |
DIV(TABLE(TR(TH("%s: " % table.req_id.label) |
table.req_id.represent(record.req_id) |
TR(TH("%s: " % T("Committing Organization") |
organisation_represent(record.organisation_id) |
TH("%s: " % T("Commit Date") |
s3_date_represent(record.date) |
TR(TH("%s: " % table.comments.label) |
TD(record.comments, _colspan=3) |
Other (& Assets/Shelter) |
DIV(TABLE(TR(TH("%s: " % table.req_id.label) |
table.req_id.represent(record.req_id) |
TR(TH("%s: " % T("Committing Person") |
table.committer_id.represent(record.committer_id) |
TH("%s: " % T("Commit Date") |
s3_date_represent(record.date) |
TR(TH("%s: " % table.comments.label) |
TD(record.comments or "", _colspan=3) |
rheader.append(rheader_tabs) |
send() |
s3db.inv_send_controller() |
send_commit() |
s3db.req_send_commit() |
send_process() |
s3db.inv_send_process() |
commit_item() |
s3_rest_controller() |
commit_req() |
request.vars.get("site_id") |
db(table.id == req_id) |
first() |
sending
(prefix, resourcename, id) |
s3db.get_instance(s3db.org_site, site_id) |
T("You do not have permission to make this commitment.") |
db(query) |
s3mgr.store_session("req", "commit_item", commit_item_id) |
Storage() |
s3db.req_commit_item_onaccept(form) |
send_req() |
request.vars.get("site_id", None) |
s3db.org_site_represent(site_id, show_link=False) |
db(table.id == req_id) |
first() |
sending
(prefix, resourcename, id) |
s3db.get_instance(db.org_site, site_id) |
T("You do not have permission to send this shipment.") |
auth.s3_logged_in_person() |
fulfilled (in transit) |
db(query) |
db(query) |
len(inv_items) |
len(inv_items) |
max(rim.quantity_transit, rim.quantity_fulfil) |
inv_remove(iitem, quantity_needed) |
append(iitem.id) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.