Browse Source

Merge pull request #2 from nafiesl/analysis-qypyZN

Apply fixes from StyleCI
pull/3/head
Nafies Luthfi 9 years ago
committed by GitHub
parent
commit
fe975ce27a
  1. 1
      app/Cart/TransactionDraft.php
  2. 5
      app/Helpers/helpers.php
  3. 2
      resources/lang/id/cart.php

1
app/Cart/TransactionDraft.php

@ -79,6 +79,7 @@ abstract class TransactionDraft
public function search(Product $product) public function search(Product $product)
{ {
$productItem = $this->items()->where('id', $product->id)->first(); $productItem = $this->items()->where('id', $product->id)->first();
return $productItem; return $productItem;
} }
} }

5
app/Helpers/helpers.php

@ -7,6 +7,9 @@ function formatNo($number)
function formatRp($number) function formatRp($number)
{ {
if ($number == 0) { return '-'; }
if ($number == 0) {
return '-';
}
return 'Rp. '.formatNo($number); return 'Rp. '.formatNo($number);
} }

2
resources/lang/id/cart.php

@ -2,5 +2,5 @@
return [ return [
// Labels // Labels
'product_search' => 'Cari Produk'
'product_search' => 'Cari Produk',
]; ];
Loading…
Cancel
Save