voucher date removal issue fixed
This commit is contained in:
		
							parent
							
								
									7807c6f173
								
							
						
					
					
						commit
						be0b090d27
					
				| @ -536,7 +536,6 @@ def create_new_invoice(prev_rv): | ||||
| 
 | ||||
| 	# update new rv  | ||||
| 
 | ||||
| 	new_rv.doc.voucher_date = new_rv.doc.next_date | ||||
| 	new_rv.doc.posting_date = new_rv.doc.next_date | ||||
| 	new_rv.doc.aging_date = new_rv.doc.next_date | ||||
| 	new_rv.doc.due_date = add_days(new_rv.doc.next_date, cint(date_diff(prev_rv.doc.due_date, prev_rv.doc.posting_date))) | ||||
|  | ||||
| @ -533,7 +533,7 @@ class DocType(TransactionBase): | ||||
| 		self.values.append({ | ||||
| 			'item_code'					 : d.item_code, | ||||
| 			'warehouse'					 : wh, | ||||
| 			'transaction_date'		: self.doc.voucher_date, | ||||
| 			'transaction_date'			: getdate(self.doc.modified).strftime('%Y-%m-%d'), | ||||
| 			'posting_date'				: self.doc.posting_date, | ||||
| 			'posting_time'				: self.doc.posting_time, | ||||
| 			'voucher_type'				: 'Receivable Voucher', | ||||
|  | ||||
| @ -66,7 +66,7 @@ for r in row_list: | ||||
| 
 | ||||
| for r in res: | ||||
|   if r[col_idx['Against Receivable']]: | ||||
|     dt=sql("select voucher_date, Aging_date from `tabReceivable Voucher` where name='%s'"%r[col_idx['Against Receivable']]) | ||||
|     dt=sql("select date(modified), Aging_date from `tabReceivable Voucher` where name='%s'"%r[col_idx['Against Receivable']]) | ||||
|     r.append('') | ||||
|     r.append(dt and cstr(dt[0][0]) or '') | ||||
|     r.append(dt and cstr(dt[0][1]) or '') | ||||
|  | ||||
| @ -66,7 +66,7 @@ for r in row_list: | ||||
| 
 | ||||
| for r in res: | ||||
|   if r[col_idx['Against Payable']]: | ||||
|     dt=sql("select voucher_date, aging_date from `tabPayable Voucher` where name='%s'"%r[col_idx['Against Payable']]) | ||||
|     dt=sql("select date(modified), aging_date from `tabPayable Voucher` where name='%s'"%r[col_idx['Against Payable']]) | ||||
|     r.append('') | ||||
|     r.append(dt and cstr(dt[0][0]) or '') | ||||
|     r.append(dt and cstr(dt[0][1]) or '') | ||||
|  | ||||
| @ -60,7 +60,7 @@ elif based_on == 'Sales Partner': | ||||
| 
 | ||||
| if under == 'Receivable Voucher': | ||||
|   under_detail = 'RV' | ||||
|   dt = 'voucher_date' | ||||
|   dt = 'posting_date' | ||||
| else: | ||||
|   under_detail = under | ||||
|   dt = "transaction_date" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user