Test case added for Material Issue

This commit is contained in:
Nabin Hait
2011-09-30 18:05:08 +05:30
parent 3cec95ed21
commit a970b11cfb
2 changed files with 135 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
from webnotes.model.doc import Document
# Material Receipt
#-----------------------
mr = [
Document(
fielddata = {
@@ -31,6 +34,8 @@ mr = [
)
]
# Material Transfer
#--------------------
mtn = [
Document(
@@ -63,3 +68,37 @@ mtn = [
}
)
]
# Material Issue
#--------------------
mi = [
Document(
fielddata = {
'doctype': 'Stock Entry',
'posting_date': '2011-09-01',
'transfer_date': '2011-09-01',
'posting_time': '14:00',
'company': 'comp',
'fiscal_year' : '2011-2012',
'purpose': 'Material Issue',
'name': 'mi'
}
),
Document(
fielddata ={
'doctype': 'Stock Entry Detail',
'parenttype': 'Stock Entry',
'parentfield' : 'mtn_details',
'parent' : 'mi',
'item_code' : 'it',
's_warehouse' : 'wh1',
'qty' : 4,
'transfer_qty' : 4,
'incoming_rate': 100,
'stock_uom': 'Nos',
'conversion_factor': 1,
'serial_no': 'srno1, srno2, srno3, srno4'
}
)
]