fix report
							parent
							
								
									50be363ce0
								
							
						
					
					
						commit
						372ddb6c3c
					
				| 
						 | 
				
			
			@ -1,8 +1,14 @@
 | 
			
		|||
dom=[['patient_id.field_bool','=',True]] => not working
 | 
			
		||||
pattern id card: 3 3013 00180 19 0
 | 
			
		||||
 | 
			
		||||
-edit hdcase
 | 
			
		||||
1. description not show because permission
 | 
			
		||||
 | 
			
		||||
--- receipt --
 | 
			
		||||
date should be the same
 | 
			
		||||
size of table should be fix per page
 | 
			
		||||
date should be the same -> ok
 | 
			
		||||
force to print table for 1 page ->ok
 | 
			
		||||
    !!! bug:
 | 
			
		||||
        print multi page
 | 
			
		||||
 | 
			
		||||
---- visit ---
 | 
			
		||||
should check key
 | 
			
		||||
- check duplicate visit
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -964,6 +964,8 @@ class HDCase(Model):
 | 
			
		|||
        cust_addr=''
 | 
			
		||||
        if cust.addresses:
 | 
			
		||||
            cust_addr=cust.addresses[0].address_text
 | 
			
		||||
        if 'your' in cust_addr:
 | 
			
		||||
            cust_addr=''
 | 
			
		||||
        if cust.walkin_cust:
 | 
			
		||||
            cust_name=payment.ref or ''
 | 
			
		||||
        no=1
 | 
			
		||||
| 
						 | 
				
			
			@ -1030,8 +1032,8 @@ class HDCase(Model):
 | 
			
		|||
                context['payment_id']=payment.id
 | 
			
		||||
                data=self.get_report_payment_data(context=context)
 | 
			
		||||
                #XXX
 | 
			
		||||
                count=15-len(data['lines'])
 | 
			
		||||
                for i in  range(count):
 | 
			
		||||
                limit_item=15
 | 
			
		||||
                for i in  range(len(data['lines']),limit_item):
 | 
			
		||||
                    data['lines'].append({
 | 
			
		||||
                        'no': '',
 | 
			
		||||
                        'product_name': '',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -500,6 +500,8 @@ class Shop(Model):
 | 
			
		|||
        cust_addr=''
 | 
			
		||||
        if cust.addresses:
 | 
			
		||||
            cust_addr=cust.addresses[0].address_text
 | 
			
		||||
        if 'your' in cust_addr:
 | 
			
		||||
            cust_addr=''
 | 
			
		||||
        
 | 
			
		||||
        if cust.walkin_cust:
 | 
			
		||||
            cust_name=shop.ref or ''
 | 
			
		||||
| 
						 | 
				
			
			@ -571,8 +573,8 @@ class Shop(Model):
 | 
			
		|||
            context['refer_id']=obj.id
 | 
			
		||||
            data=get_model('clinic.shop').get_page(context=context)
 | 
			
		||||
            #XXX fix 15 per page
 | 
			
		||||
            count=15-len(data['lines'])
 | 
			
		||||
            for i in  range(count):
 | 
			
		||||
            limit_item=15
 | 
			
		||||
            for i in  range(len(data['lines']),limit_item):
 | 
			
		||||
                data['lines'].append({
 | 
			
		||||
                    'no': '',
 | 
			
		||||
                    'product_name': '',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue