BOM Related changes (1.Unset as Default BOM, 2.Flat BOM Repair 3.delete_doc issue)

This commit is contained in:
Brahma K
2011-08-16 12:10:51 +05:30
parent 7cd48f1d59
commit b77bfdb990
6 changed files with 152 additions and 115 deletions

View File

@@ -36,7 +36,7 @@ class DocType:
# result initiatlization
header = 'Ledger Balances Between ' + getdate(self.doc.from_date).strftime('%d-%m-%Y') + ' and ' + getdate(self.doc.to_date).strftime('%d-%m-%Y')
res = [[header], ['Account', 'Posting Date', 'Voucher Type', 'Voucher No', 'Debit', 'Credit', 'Remarks']]
glc = get_obj('GL Control')
glc = get_obj('GL Control')
for d in getlist(self.doclist, 'ledger_details'):
# Fetch acc details
@@ -59,5 +59,5 @@ class DocType:
res.append(['', '', '', 'Total Debit/Credit', debit, credit])
res.append(['', '', '', 'Opening Balance', opening])
res.append(['', '', '', 'Closing Balance', closing])
return res

View File

@@ -19,9 +19,9 @@ $.extend(cur_frm.cscript, {
},
hide_show_buttons: function(doc) {
if(doc.docstatus==0) {
hide_field('Installment Reciept'); show_field('Generate');
hide_field('Installment Reciept'); unhide_field('Generate');
} else if (doc.docstatus==1) {
show_field('Installment Reciept');hide_field('Generate');
unhide_field('Installment Reciept');hide_field('Generate');
}
},
clear_installments: function(doc) {