Пример #1
0
<?php

$company = new \WeDevs\ERP\Company();
$user = new \WeDevs\ERP\People(intval($transaction->user_id));
// var_dump( $transaction->items->toArray() );
// var_dump( $user );
?>
<div class="wrap">

    <h2><?php 
_e('Invoice', 'erp-accounting');
?>
</h2>

    <div class="invoice-preview-wrap">

        <div class="erp-grid-container">
            <div class="row invoice-buttons">
                <div class="col-6">
                    <a href="#" class="button button-primary button-large add-invoice-payment"><?php 
_e('Add Payment', 'erp-accounting');
?>
</a>
                    <a href="#" class="button button-large"><?php 
_e('Edit Invoice', 'erp-accounting');
?>
</a>
                    <a href="#" class="button button-large print-invoice"><?php 
_e('Print', 'erp-accounting');
?>
</a>
Пример #2
0
<div class="wrap erp erp-company-single">
    <h2><?php 
_e('Company Details', 'wp-erp');
?>
</h2>

    <div class="metabox-holder company-accounts">
        <?php 
$company = new \WeDevs\ERP\Company();
$company->get_locations();
?>
        <div class="postbox account">
            <div class="inside clearfix">
                <div class="logo-area">
                    <?php 
echo $company->get_logo();
?>
                </div><!-- .logo-area -->

                <div class="content-area">
                    <h2><?php 
echo $company->name;
?>
 <a href="<?php 
echo $company->get_edit_url();
?>
">Edit</a></h2>

                    <address class="address">
                        <?php 
echo $company->get_formatted_address();