mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:27:31 -05:00 
			
		
		
		
	Hide/show coupon code field if promo code configured in billing tableclear
This commit is contained in:
		
							parent
							
								
									8839bfabd3
								
							
						
					
					
						commit
						8bc4896daa
					
				@ -262,7 +262,7 @@ class BillingPortalPurchase extends Component
 | 
				
			|||||||
                'client_contact_id' => $this->contact->hashed_id,
 | 
					                'client_contact_id' => $this->contact->hashed_id,
 | 
				
			||||||
            ]],
 | 
					            ]],
 | 
				
			||||||
            'user_input_promo_code' => $this->coupon,
 | 
					            'user_input_promo_code' => $this->coupon,
 | 
				
			||||||
            'coupon' => $this->coupon,
 | 
					            'coupon' => empty($this->billing_subscription->promo_code) ? '' : $this->coupon,
 | 
				
			||||||
            'quantity' => $this->quantity,
 | 
					            'quantity' => $this->quantity,
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -139,6 +139,7 @@
 | 
				
			|||||||
                    </form>
 | 
					                    </form>
 | 
				
			||||||
                @endif
 | 
					                @endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                @if(!empty($billing_subscription->promo_code))
 | 
				
			||||||
                    <div class="relative mt-8">
 | 
					                    <div class="relative mt-8">
 | 
				
			||||||
                        <div class="absolute inset-0 flex items-center">
 | 
					                        <div class="absolute inset-0 flex items-center">
 | 
				
			||||||
                            <div class="w-full border-t border-gray-300"></div>
 | 
					                            <div class="w-full border-t border-gray-300"></div>
 | 
				
			||||||
@ -155,6 +156,7 @@
 | 
				
			|||||||
                            <small class="block text-gray-900 mt-2">{{ ctrans('texts.billing_coupon_notice') }}</small>
 | 
					                            <small class="block text-gray-900 mt-2">{{ ctrans('texts.billing_coupon_notice') }}</small>
 | 
				
			||||||
                        </label>
 | 
					                        </label>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
 | 
					                @endif
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user