mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
change transactions receiver and issuer relationship from companies to company_modules
This commit is contained in:
+1
-1
@@ -187,7 +187,7 @@ class CreateShippingInvoiceTransactionLogic extends AbstractControllerLogic
|
||||
$total_cbm = $price_cbm * ($cbm + $minimum_charge + $over_weight_cbm);
|
||||
|
||||
$billNumber = $this->generatesTransactionBillNumber->execute('SHIP-');
|
||||
dd($order->company_module_id);
|
||||
|
||||
$object = new TransactionObject(
|
||||
$billNumber,
|
||||
TransactionType::SHIPPING_INVOICE,
|
||||
|
||||
@@ -39,8 +39,8 @@ class CreateTransactionsTable extends Migration
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('currency_id')->references('id')->on('currencies');
|
||||
$table->foreign('issuer')->references('id')->on('companies');
|
||||
$table->foreign('receiver')->references('id')->on('companies');
|
||||
$table->foreign('issuer')->references('id')->on('company_modules');
|
||||
$table->foreign('receiver')->references('id')->on('company_modules');
|
||||
$table->foreign('original_currency_id')->references('id')->on('currencies');
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user