Added myob fields to products table. Are appended to the description for PDF generation with in document_add_edit.js
This commit is contained in:
parent
0c37d1ee3a
commit
14c8d56a37
|
|
@ -258,12 +258,26 @@ $(function() {
|
|||
|
||||
var productID = getSelectedID('#productSelect');
|
||||
|
||||
|
||||
$.get('/documents/getProductDetails/'+productID, function(data) {
|
||||
|
||||
$("#lineItemDetails").show();
|
||||
$("#LineItemProductId").val(data.id);
|
||||
$("#LineItemTitle").val(data.title);
|
||||
$("#LineItemDescription").val(data.description);
|
||||
|
||||
var descText = '';
|
||||
if(data.item_code) {
|
||||
descText = descText + '<b>Item Code:</b> ' + data.item_code;
|
||||
}
|
||||
|
||||
if(data.item_description) {
|
||||
descText = descText + '<br><b>Item Description:</b> ' + data.item_description + '<br>';
|
||||
|
||||
}
|
||||
|
||||
descText = descText + data.description;
|
||||
|
||||
$("#LineItemDescription").val(descText);
|
||||
|
||||
|
||||
}, "json");
|
||||
|
|
|
|||
Loading…
Reference in a new issue