實作產品與庫存匯入邏輯 (ProductImport, InventoryImport) 並更新相關 Service 與 Controller
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 56s
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 56s
This commit is contained in:
@@ -38,4 +38,44 @@ interface ProductServiceInterface
|
||||
* @return \Illuminate\Database\Eloquent\Collection
|
||||
*/
|
||||
public function findByCodes(array $codes);
|
||||
|
||||
/**
|
||||
* 建立新商品。
|
||||
*
|
||||
* @param array $data
|
||||
* @return \App\Modules\Inventory\Models\Product
|
||||
*/
|
||||
public function createProduct(array $data);
|
||||
|
||||
/**
|
||||
* 更新現有商品。
|
||||
*
|
||||
* @param \App\Modules\Inventory\Models\Product $product
|
||||
* @param array $data
|
||||
* @return \App\Modules\Inventory\Models\Product
|
||||
*/
|
||||
public function updateProduct(\App\Modules\Inventory\Models\Product $product, array $data);
|
||||
|
||||
/**
|
||||
* 生成隨機 8 碼代號 (大寫英文+數字)。
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function generateRandomCode();
|
||||
|
||||
/**
|
||||
* 生成隨機 13 碼條碼 (純數字)。
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function generateRandomBarcode();
|
||||
|
||||
/**
|
||||
* 根據條碼或代號查找商品。
|
||||
*
|
||||
* @param string|null $barcode
|
||||
* @param string|null $code
|
||||
* @return \App\Modules\Inventory\Models\Product|null
|
||||
*/
|
||||
public function findByBarcodeOrCode(?string $barcode, ?string $code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user