- $th = array(_("Date"), _("Type"), _("Amount"), _("Memo"), '');
- table_header($th);
- while($myrow = db_fetch($costs)) {
- start_row();
- label_cell(sql2date($myrow["tran_date"]));
- label_cell($wo_cost_types[$myrow["cost_type"]]);
- amount_cell(-$myrow['amount']);
- label_cell($myrow['memo_']);
- label_cell(get_trans_view_str($myrow['trans_type'],$myrow["trans_no"]));
- end_row();
- }
+
+ $th = array(_("Date"), _("Transaction"), _("Account Code"), _("Account Name"),
+ _("Debit"), _("Credit"), _("Memo"));
+
+ table_header($th);
+
+ $productions = get_gl_wo_productions($prod_id, true);
+ print_gl_rows($productions, _("Finished Product Requirements"));
+
+ $issues = get_gl_wo_issue_trans($prod_id, -1, true);
+ print_gl_rows($issues, _("Additional Material Issues"));
+
+ $costs = get_gl_wo_cost_trans($prod_id, -1, true);
+ print_gl_rows($costs, _("Additional Costs"));
+
+ $wo = get_gl_trans(ST_WORKORDER, $prod_id);
+ print_gl_rows($wo, _("Finished Product Receival"));