This commit is contained in:
2018-01-25 21:49:30 +01:00
parent fb19c401fd
commit bc0bd51801
16 changed files with 623 additions and 219 deletions
+2 -2
View File
@@ -10,9 +10,9 @@ class Payment extends BaseModel {
protected $table = "payments";
public function offer()
public function invoice()
{
return $this->belongsTo( 'Offer' );
return $this->belongsTo( 'Invoice' );
}
public static function savePayment( $paymentID, $payment )