mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:29:03 -05:00 
			
		
		
		
	Update tax_data => tax_info
This commit is contained in:
		
							parent
							
								
									8a4da65b6b
								
							
						
					
					
						commit
						d535b5bbfd
					
				@ -150,7 +150,7 @@ class ClientTransformer extends EntityTransformer
 | 
				
			|||||||
            'has_valid_vat_number' => (bool) $client->has_valid_vat_number,
 | 
					            'has_valid_vat_number' => (bool) $client->has_valid_vat_number,
 | 
				
			||||||
            'is_tax_exempt' => (bool) $client->is_tax_exempt,
 | 
					            'is_tax_exempt' => (bool) $client->is_tax_exempt,
 | 
				
			||||||
            'routing_id' => (string) $client->routing_id,
 | 
					            'routing_id' => (string) $client->routing_id,
 | 
				
			||||||
            'tax_data' => $client->tax_data ?: '',
 | 
					            'tax_info' => $client->tax_data ?: new \stdClass,,
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -149,7 +149,7 @@ class InvoiceTransformer extends EntityTransformer
 | 
				
			|||||||
            'paid_to_date' => (float) $invoice->paid_to_date,
 | 
					            'paid_to_date' => (float) $invoice->paid_to_date,
 | 
				
			||||||
            'subscription_id' => $this->encodePrimaryKey($invoice->subscription_id),
 | 
					            'subscription_id' => $this->encodePrimaryKey($invoice->subscription_id),
 | 
				
			||||||
            'auto_bill_enabled' => (bool) $invoice->auto_bill_enabled,
 | 
					            'auto_bill_enabled' => (bool) $invoice->auto_bill_enabled,
 | 
				
			||||||
            'tax_data' => $invoice->tax_data ?: '',            
 | 
					            'tax_info' => $invoice->tax_data ?: new \stdClass,,
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user