Work to invoice
This commit is contained in:
parent
224bf9e951
commit
02e78e7255
101 changed files with 23483 additions and 154 deletions
|
|
@ -44,6 +44,8 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|Setting whereType($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Setting whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
* @property int|null $int
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Setting whereInt($value)
|
||||
*/
|
||||
class Setting extends Model
|
||||
{
|
||||
|
|
@ -54,6 +56,7 @@ class Setting extends Model
|
|||
protected $casts = [
|
||||
'referenz' => 'int',
|
||||
'status' => 'int',
|
||||
'int' => 'int',
|
||||
'object' => 'array'
|
||||
];
|
||||
|
||||
|
|
@ -65,6 +68,7 @@ class Setting extends Model
|
|||
'object',
|
||||
'full_text',
|
||||
'text',
|
||||
'int',
|
||||
'status',
|
||||
'type'
|
||||
];
|
||||
|
|
@ -96,6 +100,9 @@ class Setting extends Model
|
|||
case 'text':
|
||||
return $content->text;
|
||||
break;
|
||||
case 'int':
|
||||
return $content->int;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
@ -121,6 +128,9 @@ class Setting extends Model
|
|||
case 'text':
|
||||
$content->text = $value;
|
||||
break;
|
||||
case 'int':
|
||||
$content->int = (int) $value;
|
||||
break;
|
||||
}
|
||||
|
||||
$content->save();
|
||||
|
|
|
|||
|
|
@ -91,6 +91,8 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingOrder whereDiscount($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingOrder wherePaymentCredit($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingOrder whereSubtotalShipping($value)
|
||||
* @property string|null $total_without_credit
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingOrder whereTotalWithoutCredit($value)
|
||||
*/
|
||||
class ShoppingOrder extends Model
|
||||
{
|
||||
|
|
@ -119,6 +121,7 @@ class ShoppingOrder extends Model
|
|||
'points',
|
||||
'weight',
|
||||
'paid',
|
||||
'invoice',
|
||||
'txaction',
|
||||
'wp_invoice_path',
|
||||
'wp_notice',
|
||||
|
|
@ -129,6 +132,7 @@ class ShoppingOrder extends Model
|
|||
|
||||
protected $casts = [
|
||||
'wp_notice' => 'array',
|
||||
'invoice' => 'array',
|
||||
];
|
||||
|
||||
public static $shippedTypes = [
|
||||
|
|
|
|||
|
|
@ -177,6 +177,9 @@ class UserAccount extends Model
|
|||
return Carbon::parse($value)->format(\Util::formatDateDB());
|
||||
}
|
||||
|
||||
public function getBirthdayRaw(){
|
||||
return isset($this->attributes['birthday']) ? $this->attributes['birthday'] : NULL;
|
||||
}
|
||||
public function setBirthdayAttribute( $value ) {
|
||||
$this->attributes['birthday'] = isset($value) ? (new Carbon($value))->format('Y-m-d') : NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue